diff options
author | Mark Shannon <mark@hotpy.org> | 2022-02-28 12:56:29 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-28 12:56:29 +0000 |
commit | 4558af5a8f8e56a9b0dc11f6e834c47e0fd05f9e (patch) | |
tree | 32365218607a600a23378350b533a307474cb628 /Lib/opcode.py | |
parent | da7d99a4de72aac8d436cecedf16ab2676f9b785 (diff) | |
download | cpython-4558af5a8f8e56a9b0dc11f6e834c47e0fd05f9e.tar.gz cpython-4558af5a8f8e56a9b0dc11f6e834c47e0fd05f9e.zip |
bpo-46841: Move the cache for `LOAD_GLOBAL` inline. (GH-31575)
Diffstat (limited to 'Lib/opcode.py')
-rw-r--r-- | Lib/opcode.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/opcode.py b/Lib/opcode.py index 8fa71bf4d18..fb2d24fd1f0 100644 --- a/Lib/opcode.py +++ b/Lib/opcode.py @@ -135,7 +135,7 @@ jabs_op('JUMP_IF_TRUE_OR_POP', 112) # "" jabs_op('JUMP_ABSOLUTE', 113) # "" jabs_op('POP_JUMP_IF_FALSE', 114) # "" jabs_op('POP_JUMP_IF_TRUE', 115) # "" -name_op('LOAD_GLOBAL', 116) # Index in name list +name_op('LOAD_GLOBAL', 116, 5) # Index in name list def_op('IS_OP', 117) def_op('CONTAINS_OP', 118) def_op('RERAISE', 119) @@ -198,6 +198,7 @@ def_op('CALL', 171) def_op('KW_NAMES', 172) hasconst.append(172) + del def_op, name_op, jrel_op, jabs_op _nb_ops = [ |