mirror of
https://github.com/python/cpython.git
synced 2025-08-29 05:05:03 +00:00
bpo-46528: Simplify the VM's stack manipulations (GH-30902)
This commit is contained in:
parent
d4a85f104b
commit
8548366864
12 changed files with 288 additions and 323 deletions
|
@ -55,11 +55,6 @@ def jabs_op(name, op):
|
|||
# Blank lines correspond to available opcodes
|
||||
|
||||
def_op('POP_TOP', 1)
|
||||
def_op('ROT_TWO', 2)
|
||||
def_op('ROT_THREE', 3)
|
||||
def_op('DUP_TOP', 4)
|
||||
def_op('DUP_TOP_TWO', 5)
|
||||
def_op('ROT_FOUR', 6)
|
||||
|
||||
def_op('NOP', 9)
|
||||
def_op('UNARY_POSITIVE', 10)
|
||||
|
@ -116,7 +111,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) # ""
|
||||
def_op('ROT_N', 99)
|
||||
def_op('SWAP', 99)
|
||||
def_op('LOAD_CONST', 100) # Index in const list
|
||||
hasconst.append(100)
|
||||
name_op('LOAD_NAME', 101) # Index in name list
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue