New opcodes: UNPACK_ARG, STORE_GLOBAL, DELETE_GLOBAL, LOAD_LOCAL, LOAD_GLOBAL
This commit is contained in:
parent
750bf14c32
commit
a594fabbfa
|
@ -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('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) # ""
|
||||
|
|
Loading…
Reference in New Issue