summaryrefslogtreecommitdiffstats
path: root/Lib/opcode.py
diff options
context:
space:
mode:
authorpenguin_wwy <940375606@qq.com>2023-02-07 22:32:21 (GMT)
committerGitHub <noreply@github.com>2023-02-07 22:32:21 (GMT)
commit753fc8a5d64369cd228c3e43fef1811ac3cfde83 (patch)
treea71d295db633dbe497aa5461d0a410e2792c0e22 /Lib/opcode.py
parent0d3d5007b136ff1bc0faa960d6526e047dd92396 (diff)
downloadcpython-753fc8a5d64369cd228c3e43fef1811ac3cfde83.zip
cpython-753fc8a5d64369cd228c3e43fef1811ac3cfde83.tar.gz
cpython-753fc8a5d64369cd228c3e43fef1811ac3cfde83.tar.bz2
gh-101632: Add the new RETURN_CONST opcode (#101633)
Diffstat (limited to 'Lib/opcode.py')
-rw-r--r--Lib/opcode.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/opcode.py b/Lib/opcode.py
index c317e23..5f163d2 100644
--- a/Lib/opcode.py
+++ b/Lib/opcode.py
@@ -164,6 +164,8 @@ def_op('IS_OP', 117)
def_op('CONTAINS_OP', 118)
def_op('RERAISE', 119)
def_op('COPY', 120)
+def_op('RETURN_CONST', 121)
+hasconst.append(121)
def_op('BINARY_OP', 122)
jrel_op('SEND', 123) # Number of bytes to skip
def_op('LOAD_FAST', 124) # Local variable number, no null check