]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
New opcodes: UNPACK_ARG, STORE_GLOBAL, DELETE_GLOBAL, LOAD_LOCAL, LOAD_GLOBAL
authorGuido van Rossum <guido@python.org>
Mon, 16 Dec 1991 13:09:28 +0000 (13:09 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 16 Dec 1991 13:09:28 +0000 (13:09 +0000)
Lib/dis.py

index fe57fb954cf652e571a1aeb7dc2ef3660bb14f90..7eaaeaf260521a17b999f44f02b3a3303050755a 100644 (file)
@@ -147,9 +147,11 @@ name_op('STORE_NAME', 90)  # Index in name list
 name_op('DELETE_NAME', 91)     # "" 
 def_op('UNPACK_TUPLE', 92)     # Number of tuple items 
 def_op('UNPACK_LIST', 93)      # Number of list items 
-# unused:              94
+def_op('UNPACK_ARG', 94)       # Number of arguments expected
 name_op('STORE_ATTR', 95)      # Index in name list 
-name_op('DELETE_ATTR', 96)     # "" 
+name_op('DELETE_ATTR', 96)     # ""
+name_op('STORE_GLOBAL', 97)    # ""
+name_op('DELETE_GLOBAL', 98)   # ""
 
 def_op('LOAD_CONST', 100)      # Index in const list 
 hasconst.append(100)
@@ -168,6 +170,9 @@ jrel_op('JUMP_IF_TRUE', 112)        # ""
 jabs_op('JUMP_ABSOLUTE', 113)  # Target byte offset from beginning of code 
 jrel_op('FOR_LOOP', 114)       # Number of bytes to skip 
 
+name_op('LOAD_LOCAL', 115)     # Index in name list
+name_op('LOAD_GLOBAL', 116)    # Index in name list
+
 jrel_op('SETUP_LOOP', 120)     # Distance to target address
 jrel_op('SETUP_EXCEPT', 121)   # ""
 jrel_op('SETUP_FINALLY', 122)  # ""