summaryrefslogtreecommitdiffstats
path: root/Lib/opcode.py
diff options
context:
space:
mode:
authorMark Shannon <mark@hotpy.org>2022-02-22 14:57:01 (GMT)
committerGitHub <noreply@github.com>2022-02-22 14:57:01 (GMT)
commit9058a35558422810061989f41571fdfea7ea8cbe (patch)
tree28e96f82e115b8447c12dbb4834eb11229241332 /Lib/opcode.py
parent1e344684d8d42206858c4eca8ec7950e644f4220 (diff)
downloadcpython-9058a35558422810061989f41571fdfea7ea8cbe.zip
cpython-9058a35558422810061989f41571fdfea7ea8cbe.tar.gz
cpython-9058a35558422810061989f41571fdfea7ea8cbe.tar.bz2
Move call specializations from CALL to PRECALL. (GH-31496)
Diffstat (limited to 'Lib/opcode.py')
-rw-r--r--Lib/opcode.py29
1 files changed, 16 insertions, 13 deletions
diff --git a/Lib/opcode.py b/Lib/opcode.py
index 9579245..0c859c1 100644
--- a/Lib/opcode.py
+++ b/Lib/opcode.py
@@ -248,21 +248,8 @@ _specialized_instructions = [
"STORE_SUBSCR_LIST_INT",
"STORE_SUBSCR_DICT",
"CALL_ADAPTIVE",
- "CALL_BUILTIN_CLASS",
- "CALL_NO_KW_BUILTIN_O",
- "CALL_NO_KW_BUILTIN_FAST",
- "CALL_BUILTIN_FAST_WITH_KEYWORDS",
- "CALL_NO_KW_LEN",
- "CALL_NO_KW_ISINSTANCE",
"CALL_PY_EXACT_ARGS",
"CALL_PY_WITH_DEFAULTS",
- "CALL_NO_KW_LIST_APPEND",
- "CALL_NO_KW_METHOD_DESCRIPTOR_O",
- "CALL_NO_KW_METHOD_DESCRIPTOR_NOARGS",
- "CALL_NO_KW_STR_1",
- "CALL_NO_KW_TUPLE_1",
- "CALL_NO_KW_TYPE_1",
- "CALL_NO_KW_METHOD_DESCRIPTOR_FAST",
"JUMP_ABSOLUTE_QUICK",
"LOAD_ATTR_ADAPTIVE",
"LOAD_ATTR_INSTANCE_VALUE",
@@ -277,6 +264,22 @@ _specialized_instructions = [
"LOAD_METHOD_CLASS",
"LOAD_METHOD_MODULE",
"LOAD_METHOD_NO_DICT",
+ "PRECALL_ADAPTIVE",
+ "PRECALL_BUILTIN_CLASS",
+ "PRECALL_NO_KW_BUILTIN_O",
+ "PRECALL_NO_KW_BUILTIN_FAST",
+ "PRECALL_BUILTIN_FAST_WITH_KEYWORDS",
+ "PRECALL_NO_KW_LEN",
+ "PRECALL_NO_KW_ISINSTANCE",
+ "PRECALL_NO_KW_LIST_APPEND",
+ "PRECALL_NO_KW_METHOD_DESCRIPTOR_O",
+ "PRECALL_NO_KW_METHOD_DESCRIPTOR_NOARGS",
+ "PRECALL_NO_KW_STR_1",
+ "PRECALL_NO_KW_TUPLE_1",
+ "PRECALL_NO_KW_TYPE_1",
+ "PRECALL_NO_KW_METHOD_DESCRIPTOR_FAST",
+ "PRECALL_BOUND_METHOD",
+ "PRECALL_PYFUNC",
"RESUME_QUICK",
"STORE_ATTR_ADAPTIVE",
"STORE_ATTR_INSTANCE_VALUE",