summaryrefslogtreecommitdiffstats
path: root/Lib/opcode.py
diff options
context:
space:
mode:
authorCarl Meyer <carl@oddbird.net>2023-04-25 17:45:51 (GMT)
committerGitHub <noreply@github.com>2023-04-25 17:45:51 (GMT)
commitef25febcf2ede92a03c5ea00a13e167e0b5cb274 (patch)
tree6ce38cd3aa3d653d931df5250b02b5cb6b46bb69 /Lib/opcode.py
parentcef542ca572fdd402ff0e10093a0c1b459e5dcd6 (diff)
downloadcpython-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.py9
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,