summaryrefslogtreecommitdiffstats
path: root/Lib/dis.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1993-03-30 19:13:03 (GMT)
committerGuido van Rossum <guido@python.org>1993-03-30 19:13:03 (GMT)
commit8379ed5f0277c4f0e7d6440b48ca3f67636a42e9 (patch)
treeaf8e2748d49946e4ede19f1ae2f4fd890ab29050 /Lib/dis.py
parent5b7221849e240c2a62ebbc48d58607417b42ef44 (diff)
downloadcpython-8379ed5f0277c4f0e7d6440b48ca3f67636a42e9.zip
cpython-8379ed5f0277c4f0e7d6440b48ca3f67636a42e9.tar.gz
cpython-8379ed5f0277c4f0e7d6440b48ca3f67636a42e9.tar.bz2
Updated because of new opcodes introduced for "fast" local variables.
Diffstat (limited to 'Lib/dis.py')
-rw-r--r--Lib/dis.py11
1 files changed, 9 insertions, 2 deletions
diff --git a/Lib/dis.py b/Lib/dis.py
index 28faee0..b79df47 100644
--- a/Lib/dis.py
+++ b/Lib/dis.py
@@ -99,6 +99,7 @@ def_op('UNARY_NEGATIVE', 11)
def_op('UNARY_NOT', 12)
def_op('UNARY_CONVERT', 13)
def_op('UNARY_CALL', 14)
+def_op('UNARY_INVERT', 15)
def_op('BINARY_MULTIPLY', 20)
def_op('BINARY_DIVIDE', 21)
@@ -134,8 +135,7 @@ def_op('BREAK_LOOP', 80)
def_op('RAISE_EXCEPTION', 81)
def_op('LOAD_LOCALS', 82)
def_op('RETURN_VALUE', 83)
-def_op('REQUIRE_ARGS', 84)
-def_op('REFUSE_ARGS', 85)
+
def_op('BUILD_FUNCTION', 86)
def_op('POP_BLOCK', 87)
def_op('END_FINALLY', 88)
@@ -152,6 +152,7 @@ name_op('STORE_ATTR', 95) # Index in name list
name_op('DELETE_ATTR', 96) # ""
name_op('STORE_GLOBAL', 97) # ""
name_op('DELETE_GLOBAL', 98) # ""
+name_op('UNPACK_VARARG', 99) # Minimal number of arguments
def_op('LOAD_CONST', 100) # Index in const list
hasconst.append(100)
@@ -177,5 +178,11 @@ jrel_op('SETUP_LOOP', 120) # Distance to target address
jrel_op('SETUP_EXCEPT', 121) # ""
jrel_op('SETUP_FINALLY', 122) # ""
+def_op('RESERVE_FAST', 123) # Number of local variables
+hasconst.append(123)
+def_op('LOAD_FAST', 124) # Local variable number
+def_op('STORE_FAST', 125) # Local variable number
+def_op('DELETE_FAST', 126) # Local variable number
+
def_op('SET_LINENO', 127) # Current line number
SET_LINENO = 127