diff options
author | Mark Shannon <mark@hotpy.org> | 2023-06-05 11:07:04 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-05 11:07:04 +0100 |
commit | 06893403668961fdbd5d9ece18162eb3470fc8dd (patch) | |
tree | b7aeda20407a014944b7044b81e451a50e9f6924 /Lib/opcode.py | |
parent | e8ecb9ee6bec03d0c4490f3e7f1524e56e2f6a0f (diff) | |
download | cpython-06893403668961fdbd5d9ece18162eb3470fc8dd.tar.gz cpython-06893403668961fdbd5d9ece18162eb3470fc8dd.zip |
GH-105229: Replace some superinstructions with single instruction equivalent. (GH-105230)
Diffstat (limited to 'Lib/opcode.py')
-rw-r--r-- | Lib/opcode.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/Lib/opcode.py b/Lib/opcode.py index b33302949f2..27d55b0a905 100644 --- a/Lib/opcode.py +++ b/Lib/opcode.py @@ -222,6 +222,9 @@ def_op('SET_UPDATE', 163) def_op('DICT_MERGE', 164) def_op('DICT_UPDATE', 165) +def_op('LOAD_FAST_LOAD_FAST', 168) +def_op('STORE_FAST_LOAD_FAST', 169) +def_op('STORE_FAST_STORE_FAST', 170) def_op('CALL', 171) def_op('KW_NAMES', 172) hasconst.append(172) @@ -411,7 +414,6 @@ _specializations = { ], "LOAD_FAST": [ "LOAD_FAST__LOAD_CONST", - "LOAD_FAST__LOAD_FAST", ], "LOAD_GLOBAL": [ "LOAD_GLOBAL_BUILTIN", @@ -422,10 +424,6 @@ _specializations = { "STORE_ATTR_SLOT", "STORE_ATTR_WITH_HINT", ], - "STORE_FAST": [ - "STORE_FAST__LOAD_FAST", - "STORE_FAST__STORE_FAST", - ], "STORE_SUBSCR": [ "STORE_SUBSCR_DICT", "STORE_SUBSCR_LIST_INT", |