aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/opcode.py
diff options
context:
space:
mode:
authorBrandt Bucher <brandtbucher@microsoft.com>2022-03-01 05:53:13 -0800
committerGitHub <noreply@github.com>2022-03-01 13:53:13 +0000
commit7820a5897e7762df23bff1cbe749652130654a08 (patch)
treed4040cce6aa8a7f0ee8a3edf6bb644e1b0d8a6f4 /Lib/opcode.py
parentdf9f7597559b6256924fcd3a1c3dc24cd5c5edaf (diff)
downloadcpython-7820a5897e7762df23bff1cbe749652130654a08.tar.gz
cpython-7820a5897e7762df23bff1cbe749652130654a08.zip
bpo-46841: Use inline caching for `COMPARE_OP` (GH-31622)
Diffstat (limited to 'Lib/opcode.py')
-rw-r--r--Lib/opcode.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/opcode.py b/Lib/opcode.py
index fb2d24fd1f0..dc45cff3017 100644
--- a/Lib/opcode.py
+++ b/Lib/opcode.py
@@ -125,7 +125,7 @@ def_op('BUILD_LIST', 103) # Number of list items
def_op('BUILD_SET', 104) # Number of set items
def_op('BUILD_MAP', 105) # Number of dict entries
name_op('LOAD_ATTR', 106) # Index in name list
-def_op('COMPARE_OP', 107) # Comparison operator
+def_op('COMPARE_OP', 107, 2) # Comparison operator
hascompare.append(107)
name_op('IMPORT_NAME', 108) # Index in name list
name_op('IMPORT_FROM', 109) # Index in name list