mirror of
https://github.com/python/cpython.git
synced 2025-10-10 00:43:41 +00:00
GH-91095: Specialize calls to normal Python classes. (GH-99331)
This commit is contained in:
parent
c01da2896a
commit
04492cbc9a
20 changed files with 511 additions and 189 deletions
108
Include/opcode.h
generated
108
Include/opcode.h
generated
|
@ -18,6 +18,7 @@ extern "C" {
|
|||
#define UNARY_NEGATIVE 11
|
||||
#define UNARY_NOT 12
|
||||
#define UNARY_INVERT 15
|
||||
#define EXIT_INIT_CHECK 16
|
||||
#define RESERVED 17
|
||||
#define MAKE_FUNCTION 24
|
||||
#define BINARY_SUBSCR 25
|
||||
|
@ -164,59 +165,60 @@ extern "C" {
|
|||
#define BINARY_OP_MULTIPLY_FLOAT 10
|
||||
#define BINARY_OP_ADD_FLOAT 13
|
||||
#define BINARY_OP_SUBTRACT_FLOAT 14
|
||||
#define BINARY_OP_ADD_UNICODE 16
|
||||
#define BINARY_OP_INPLACE_ADD_UNICODE 18
|
||||
#define BINARY_SUBSCR_DICT 19
|
||||
#define BINARY_SUBSCR_GETITEM 20
|
||||
#define BINARY_SUBSCR_LIST_INT 21
|
||||
#define BINARY_SUBSCR_TUPLE_INT 22
|
||||
#define STORE_SUBSCR_DICT 23
|
||||
#define STORE_SUBSCR_LIST_INT 28
|
||||
#define SEND_GEN 29
|
||||
#define UNPACK_SEQUENCE_TWO_TUPLE 34
|
||||
#define UNPACK_SEQUENCE_TUPLE 38
|
||||
#define UNPACK_SEQUENCE_LIST 39
|
||||
#define STORE_ATTR_INSTANCE_VALUE 42
|
||||
#define STORE_ATTR_SLOT 43
|
||||
#define STORE_ATTR_WITH_HINT 44
|
||||
#define LOAD_GLOBAL_MODULE 45
|
||||
#define LOAD_GLOBAL_BUILTIN 46
|
||||
#define LOAD_SUPER_ATTR_ATTR 47
|
||||
#define LOAD_SUPER_ATTR_METHOD 48
|
||||
#define LOAD_ATTR_INSTANCE_VALUE 56
|
||||
#define LOAD_ATTR_MODULE 57
|
||||
#define LOAD_ATTR_WITH_HINT 58
|
||||
#define LOAD_ATTR_SLOT 59
|
||||
#define LOAD_ATTR_CLASS 62
|
||||
#define LOAD_ATTR_PROPERTY 63
|
||||
#define LOAD_ATTR_GETATTRIBUTE_OVERRIDDEN 64
|
||||
#define LOAD_ATTR_METHOD_WITH_VALUES 65
|
||||
#define LOAD_ATTR_METHOD_NO_DICT 66
|
||||
#define LOAD_ATTR_METHOD_LAZY_DICT 67
|
||||
#define COMPARE_OP_FLOAT 70
|
||||
#define COMPARE_OP_INT 72
|
||||
#define COMPARE_OP_STR 73
|
||||
#define FOR_ITER_LIST 76
|
||||
#define FOR_ITER_TUPLE 77
|
||||
#define FOR_ITER_RANGE 78
|
||||
#define FOR_ITER_GEN 79
|
||||
#define CALL_BOUND_METHOD_EXACT_ARGS 80
|
||||
#define CALL_PY_EXACT_ARGS 81
|
||||
#define CALL_PY_WITH_DEFAULTS 82
|
||||
#define CALL_NO_KW_TYPE_1 84
|
||||
#define CALL_NO_KW_STR_1 86
|
||||
#define CALL_NO_KW_TUPLE_1 88
|
||||
#define CALL_BUILTIN_CLASS 111
|
||||
#define CALL_NO_KW_BUILTIN_O 112
|
||||
#define CALL_NO_KW_BUILTIN_FAST 113
|
||||
#define CALL_BUILTIN_FAST_WITH_KEYWORDS 132
|
||||
#define CALL_NO_KW_LEN 148
|
||||
#define CALL_NO_KW_ISINSTANCE 153
|
||||
#define CALL_NO_KW_LIST_APPEND 154
|
||||
#define CALL_NO_KW_METHOD_DESCRIPTOR_O 155
|
||||
#define CALL_METHOD_DESCRIPTOR_FAST_WITH_KEYWORDS 159
|
||||
#define CALL_NO_KW_METHOD_DESCRIPTOR_NOARGS 160
|
||||
#define CALL_NO_KW_METHOD_DESCRIPTOR_FAST 161
|
||||
#define BINARY_OP_ADD_UNICODE 18
|
||||
#define BINARY_OP_INPLACE_ADD_UNICODE 19
|
||||
#define BINARY_SUBSCR_DICT 20
|
||||
#define BINARY_SUBSCR_GETITEM 21
|
||||
#define BINARY_SUBSCR_LIST_INT 22
|
||||
#define BINARY_SUBSCR_TUPLE_INT 23
|
||||
#define STORE_SUBSCR_DICT 28
|
||||
#define STORE_SUBSCR_LIST_INT 29
|
||||
#define SEND_GEN 34
|
||||
#define UNPACK_SEQUENCE_TWO_TUPLE 38
|
||||
#define UNPACK_SEQUENCE_TUPLE 39
|
||||
#define UNPACK_SEQUENCE_LIST 42
|
||||
#define STORE_ATTR_INSTANCE_VALUE 43
|
||||
#define STORE_ATTR_SLOT 44
|
||||
#define STORE_ATTR_WITH_HINT 45
|
||||
#define LOAD_GLOBAL_MODULE 46
|
||||
#define LOAD_GLOBAL_BUILTIN 47
|
||||
#define LOAD_SUPER_ATTR_ATTR 48
|
||||
#define LOAD_SUPER_ATTR_METHOD 56
|
||||
#define LOAD_ATTR_INSTANCE_VALUE 57
|
||||
#define LOAD_ATTR_MODULE 58
|
||||
#define LOAD_ATTR_WITH_HINT 59
|
||||
#define LOAD_ATTR_SLOT 62
|
||||
#define LOAD_ATTR_CLASS 63
|
||||
#define LOAD_ATTR_PROPERTY 64
|
||||
#define LOAD_ATTR_GETATTRIBUTE_OVERRIDDEN 65
|
||||
#define LOAD_ATTR_METHOD_WITH_VALUES 66
|
||||
#define LOAD_ATTR_METHOD_NO_DICT 67
|
||||
#define LOAD_ATTR_METHOD_LAZY_DICT 70
|
||||
#define COMPARE_OP_FLOAT 72
|
||||
#define COMPARE_OP_INT 73
|
||||
#define COMPARE_OP_STR 76
|
||||
#define FOR_ITER_LIST 77
|
||||
#define FOR_ITER_TUPLE 78
|
||||
#define FOR_ITER_RANGE 79
|
||||
#define FOR_ITER_GEN 80
|
||||
#define CALL_BOUND_METHOD_EXACT_ARGS 81
|
||||
#define CALL_PY_EXACT_ARGS 82
|
||||
#define CALL_PY_WITH_DEFAULTS 84
|
||||
#define CALL_NO_KW_TYPE_1 86
|
||||
#define CALL_NO_KW_STR_1 88
|
||||
#define CALL_NO_KW_TUPLE_1 111
|
||||
#define CALL_BUILTIN_CLASS 112
|
||||
#define CALL_NO_KW_BUILTIN_O 113
|
||||
#define CALL_NO_KW_BUILTIN_FAST 132
|
||||
#define CALL_BUILTIN_FAST_WITH_KEYWORDS 148
|
||||
#define CALL_NO_KW_LEN 153
|
||||
#define CALL_NO_KW_ISINSTANCE 154
|
||||
#define CALL_NO_KW_LIST_APPEND 155
|
||||
#define CALL_NO_KW_METHOD_DESCRIPTOR_O 159
|
||||
#define CALL_METHOD_DESCRIPTOR_FAST_WITH_KEYWORDS 160
|
||||
#define CALL_NO_KW_METHOD_DESCRIPTOR_NOARGS 161
|
||||
#define CALL_NO_KW_METHOD_DESCRIPTOR_FAST 166
|
||||
#define CALL_NO_KW_ALLOC_AND_ENTER_INIT 167
|
||||
|
||||
#define NB_ADD 0
|
||||
#define NB_AND 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue