summaryrefslogtreecommitdiffstats
path: root/Lib/opcode.py
diff options
context:
space:
mode:
authorBrandt Bucher <brandtbucher@microsoft.com>2023-03-23 22:25:09 (GMT)
committerGitHub <noreply@github.com>2023-03-23 22:25:09 (GMT)
commit0444ae24875489dc290d8efdb9ee6440ee60dac8 (patch)
treeaaea58348a957d6612899965f7e78256ec1cdc64 /Lib/opcode.py
parentbd063756b34003c1bc7cacf5b1bd90a409180fb6 (diff)
downloadcpython-0444ae24875489dc290d8efdb9ee6440ee60dac8.zip
cpython-0444ae24875489dc290d8efdb9ee6440ee60dac8.tar.gz
cpython-0444ae24875489dc290d8efdb9ee6440ee60dac8.tar.bz2
GH-100982: Break up COMPARE_AND_BRANCH (GH-102801)
Diffstat (limited to 'Lib/opcode.py')
-rw-r--r--Lib/opcode.py13
1 files changed, 4 insertions, 9 deletions
diff --git a/Lib/opcode.py b/Lib/opcode.py
index f37d00e..60670f5 100644
--- a/Lib/opcode.py
+++ b/Lib/opcode.py
@@ -191,8 +191,6 @@ hasfree.append(138)
def_op('DELETE_DEREF', 139)
hasfree.append(139)
jrel_op('JUMP_BACKWARD', 140) # Number of words to skip (backwards)
-def_op('COMPARE_AND_BRANCH', 141) # Comparison and jump
-hascompare.append(141)
def_op('CALL_FUNCTION_EX', 142) # Flags
@@ -314,10 +312,10 @@ _specializations = {
"CALL_NO_KW_TUPLE_1",
"CALL_NO_KW_TYPE_1",
],
- "COMPARE_AND_BRANCH": [
- "COMPARE_AND_BRANCH_FLOAT",
- "COMPARE_AND_BRANCH_INT",
- "COMPARE_AND_BRANCH_STR",
+ "COMPARE_OP": [
+ "COMPARE_OP_FLOAT",
+ "COMPARE_OP_INT",
+ "COMPARE_OP_STR",
],
"FOR_ITER": [
"FOR_ITER_LIST",
@@ -392,9 +390,6 @@ _cache_format = {
"COMPARE_OP": {
"counter": 1,
},
- "COMPARE_AND_BRANCH": {
- "counter": 1,
- },
"BINARY_SUBSCR": {
"counter": 1,
"type_version": 2,