mirror of
https://github.com/python/cpython.git
synced 2026-01-06 07:22:09 +00:00
Updated because of new opcodes introduced for "fast" local variables.
This commit is contained in:
parent
5b7221849e
commit
8379ed5f02
1 changed files with 9 additions and 2 deletions
11
Lib/dis.py
11
Lib/dis.py
|
|
@ -99,6 +99,7 @@ def jabs_op(name, op):
|
|||
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 jabs_op(name, op):
|
|||
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 @@ def jabs_op(name, op):
|
|||
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 @@ def jabs_op(name, op):
|
|||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue