diff options
author | Carl Meyer <carl@oddbird.net> | 2023-04-25 17:45:51 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-25 17:45:51 (GMT) |
commit | ef25febcf2ede92a03c5ea00a13e167e0b5cb274 (patch) | |
tree | 6ce38cd3aa3d653d931df5250b02b5cb6b46bb69 /Lib/opcode.py | |
parent | cef542ca572fdd402ff0e10093a0c1b459e5dcd6 (diff) | |
download | cpython-ef25febcf2ede92a03c5ea00a13e167e0b5cb274.zip cpython-ef25febcf2ede92a03c5ea00a13e167e0b5cb274.tar.gz cpython-ef25febcf2ede92a03c5ea00a13e167e0b5cb274.tar.bz2 |
gh-87729: specialize LOAD_SUPER_ATTR_METHOD (#103809)
Diffstat (limited to 'Lib/opcode.py')
-rw-r--r-- | Lib/opcode.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Lib/opcode.py b/Lib/opcode.py index e7b346e..aef8407 100644 --- a/Lib/opcode.py +++ b/Lib/opcode.py @@ -353,6 +353,9 @@ _specializations = { "FOR_ITER_RANGE", "FOR_ITER_GEN", ], + "LOAD_SUPER_ATTR": [ + "LOAD_SUPER_ATTR_METHOD", + ], "LOAD_ATTR": [ # These potentially push [NULL, bound method] onto the stack. "LOAD_ATTR_CLASS", @@ -426,6 +429,12 @@ _cache_format = { "FOR_ITER": { "counter": 1, }, + "LOAD_SUPER_ATTR": { + "counter": 1, + "class_version": 2, + "self_type_version": 2, + "method": 4, + }, "LOAD_ATTR": { "counter": 1, "version": 2, |