2023-12-08 07:48:30 -04:00
|
|
|
// This file is generated by Tools/cases_generator/opcode_id_generator.py
|
2023-08-16 19:25:18 -03:00
|
|
|
// from:
|
2023-12-12 08:12:17 -04:00
|
|
|
// Python/bytecodes.c
|
2023-08-16 19:25:18 -03:00
|
|
|
// Do not edit!
|
2023-08-11 13:42:01 -03:00
|
|
|
|
|
|
|
#ifndef Py_OPCODE_IDS_H
|
|
|
|
#define Py_OPCODE_IDS_H
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* Instruction opcodes for compiled code */
|
|
|
|
#define CACHE 0
|
2024-06-18 08:17:46 -03:00
|
|
|
#define BINARY_SLICE 1
|
|
|
|
#define BINARY_SUBSCR 2
|
2023-09-12 07:36:17 -03:00
|
|
|
#define BINARY_OP_INPLACE_ADD_UNICODE 3
|
2024-06-18 08:17:46 -03:00
|
|
|
#define CHECK_EG_MATCH 4
|
|
|
|
#define CHECK_EXC_MATCH 5
|
|
|
|
#define CLEANUP_THROW 6
|
|
|
|
#define DELETE_SUBSCR 7
|
|
|
|
#define END_ASYNC_FOR 8
|
|
|
|
#define END_FOR 9
|
|
|
|
#define END_SEND 10
|
|
|
|
#define EXIT_INIT_CHECK 11
|
|
|
|
#define FORMAT_SIMPLE 12
|
|
|
|
#define FORMAT_WITH_SPEC 13
|
|
|
|
#define GET_AITER 14
|
|
|
|
#define GET_ANEXT 15
|
|
|
|
#define GET_ITER 16
|
2023-08-11 13:42:01 -03:00
|
|
|
#define RESERVED 17
|
2024-06-18 08:17:46 -03:00
|
|
|
#define GET_LEN 18
|
|
|
|
#define GET_YIELD_FROM_ITER 19
|
|
|
|
#define INTERPRETER_EXIT 20
|
|
|
|
#define LOAD_BUILD_CLASS 21
|
|
|
|
#define LOAD_LOCALS 22
|
|
|
|
#define MAKE_FUNCTION 23
|
|
|
|
#define MATCH_KEYS 24
|
|
|
|
#define MATCH_MAPPING 25
|
|
|
|
#define MATCH_SEQUENCE 26
|
|
|
|
#define NOP 27
|
|
|
|
#define POP_EXCEPT 28
|
|
|
|
#define POP_TOP 29
|
|
|
|
#define PUSH_EXC_INFO 30
|
|
|
|
#define PUSH_NULL 31
|
|
|
|
#define RETURN_GENERATOR 32
|
|
|
|
#define RETURN_VALUE 33
|
|
|
|
#define SETUP_ANNOTATIONS 34
|
|
|
|
#define STORE_SLICE 35
|
|
|
|
#define STORE_SUBSCR 36
|
|
|
|
#define TO_BOOL 37
|
|
|
|
#define UNARY_INVERT 38
|
|
|
|
#define UNARY_NEGATIVE 39
|
|
|
|
#define UNARY_NOT 40
|
|
|
|
#define WITH_EXCEPT_START 41
|
|
|
|
#define BINARY_OP 42
|
2024-07-25 12:24:29 -03:00
|
|
|
#define BUILD_LIST 43
|
|
|
|
#define BUILD_MAP 44
|
|
|
|
#define BUILD_SET 45
|
|
|
|
#define BUILD_SLICE 46
|
|
|
|
#define BUILD_STRING 47
|
|
|
|
#define BUILD_TUPLE 48
|
|
|
|
#define CALL 49
|
|
|
|
#define CALL_FUNCTION_EX 50
|
|
|
|
#define CALL_INTRINSIC_1 51
|
|
|
|
#define CALL_INTRINSIC_2 52
|
|
|
|
#define CALL_KW 53
|
|
|
|
#define COMPARE_OP 54
|
|
|
|
#define CONTAINS_OP 55
|
|
|
|
#define CONVERT_VALUE 56
|
|
|
|
#define COPY 57
|
|
|
|
#define COPY_FREE_VARS 58
|
|
|
|
#define DELETE_ATTR 59
|
|
|
|
#define DELETE_DEREF 60
|
|
|
|
#define DELETE_FAST 61
|
|
|
|
#define DELETE_GLOBAL 62
|
|
|
|
#define DELETE_NAME 63
|
|
|
|
#define DICT_MERGE 64
|
|
|
|
#define DICT_UPDATE 65
|
|
|
|
#define ENTER_EXECUTOR 66
|
|
|
|
#define EXTENDED_ARG 67
|
|
|
|
#define FOR_ITER 68
|
|
|
|
#define GET_AWAITABLE 69
|
|
|
|
#define IMPORT_FROM 70
|
|
|
|
#define IMPORT_NAME 71
|
|
|
|
#define IS_OP 72
|
|
|
|
#define JUMP_BACKWARD 73
|
|
|
|
#define JUMP_BACKWARD_NO_INTERRUPT 74
|
|
|
|
#define JUMP_FORWARD 75
|
|
|
|
#define LIST_APPEND 76
|
|
|
|
#define LIST_EXTEND 77
|
|
|
|
#define LOAD_ATTR 78
|
|
|
|
#define LOAD_COMMON_CONSTANT 79
|
|
|
|
#define LOAD_CONST 80
|
|
|
|
#define LOAD_DEREF 81
|
|
|
|
#define LOAD_FAST 82
|
|
|
|
#define LOAD_FAST_AND_CLEAR 83
|
|
|
|
#define LOAD_FAST_CHECK 84
|
|
|
|
#define LOAD_FAST_LOAD_FAST 85
|
|
|
|
#define LOAD_FROM_DICT_OR_DEREF 86
|
|
|
|
#define LOAD_FROM_DICT_OR_GLOBALS 87
|
|
|
|
#define LOAD_GLOBAL 88
|
|
|
|
#define LOAD_NAME 89
|
|
|
|
#define LOAD_SPECIAL 90
|
|
|
|
#define LOAD_SUPER_ATTR 91
|
|
|
|
#define MAKE_CELL 92
|
|
|
|
#define MAP_ADD 93
|
|
|
|
#define MATCH_CLASS 94
|
|
|
|
#define POP_JUMP_IF_FALSE 95
|
|
|
|
#define POP_JUMP_IF_NONE 96
|
|
|
|
#define POP_JUMP_IF_NOT_NONE 97
|
|
|
|
#define POP_JUMP_IF_TRUE 98
|
|
|
|
#define RAISE_VARARGS 99
|
|
|
|
#define RERAISE 100
|
|
|
|
#define RETURN_CONST 101
|
|
|
|
#define SEND 102
|
|
|
|
#define SET_ADD 103
|
|
|
|
#define SET_FUNCTION_ATTRIBUTE 104
|
|
|
|
#define SET_UPDATE 105
|
|
|
|
#define STORE_ATTR 106
|
|
|
|
#define STORE_DEREF 107
|
|
|
|
#define STORE_FAST 108
|
|
|
|
#define STORE_FAST_LOAD_FAST 109
|
|
|
|
#define STORE_FAST_STORE_FAST 110
|
|
|
|
#define STORE_GLOBAL 111
|
|
|
|
#define STORE_NAME 112
|
|
|
|
#define SWAP 113
|
|
|
|
#define UNPACK_EX 114
|
|
|
|
#define UNPACK_SEQUENCE 115
|
|
|
|
#define YIELD_VALUE 116
|
2023-09-12 07:36:17 -03:00
|
|
|
#define RESUME 149
|
|
|
|
#define BINARY_OP_ADD_FLOAT 150
|
|
|
|
#define BINARY_OP_ADD_INT 151
|
|
|
|
#define BINARY_OP_ADD_UNICODE 152
|
|
|
|
#define BINARY_OP_MULTIPLY_FLOAT 153
|
|
|
|
#define BINARY_OP_MULTIPLY_INT 154
|
|
|
|
#define BINARY_OP_SUBTRACT_FLOAT 155
|
|
|
|
#define BINARY_OP_SUBTRACT_INT 156
|
|
|
|
#define BINARY_SUBSCR_DICT 157
|
|
|
|
#define BINARY_SUBSCR_GETITEM 158
|
|
|
|
#define BINARY_SUBSCR_LIST_INT 159
|
|
|
|
#define BINARY_SUBSCR_STR_INT 160
|
|
|
|
#define BINARY_SUBSCR_TUPLE_INT 161
|
2023-09-13 14:25:45 -03:00
|
|
|
#define CALL_ALLOC_AND_ENTER_INIT 162
|
|
|
|
#define CALL_BOUND_METHOD_EXACT_ARGS 163
|
2024-05-04 08:11:11 -03:00
|
|
|
#define CALL_BOUND_METHOD_GENERAL 164
|
|
|
|
#define CALL_BUILTIN_CLASS 165
|
|
|
|
#define CALL_BUILTIN_FAST 166
|
|
|
|
#define CALL_BUILTIN_FAST_WITH_KEYWORDS 167
|
|
|
|
#define CALL_BUILTIN_O 168
|
|
|
|
#define CALL_ISINSTANCE 169
|
|
|
|
#define CALL_LEN 170
|
|
|
|
#define CALL_LIST_APPEND 171
|
|
|
|
#define CALL_METHOD_DESCRIPTOR_FAST 172
|
|
|
|
#define CALL_METHOD_DESCRIPTOR_FAST_WITH_KEYWORDS 173
|
|
|
|
#define CALL_METHOD_DESCRIPTOR_NOARGS 174
|
|
|
|
#define CALL_METHOD_DESCRIPTOR_O 175
|
|
|
|
#define CALL_NON_PY_GENERAL 176
|
|
|
|
#define CALL_PY_EXACT_ARGS 177
|
|
|
|
#define CALL_PY_GENERAL 178
|
|
|
|
#define CALL_STR_1 179
|
|
|
|
#define CALL_TUPLE_1 180
|
|
|
|
#define CALL_TYPE_1 181
|
|
|
|
#define COMPARE_OP_FLOAT 182
|
|
|
|
#define COMPARE_OP_INT 183
|
|
|
|
#define COMPARE_OP_STR 184
|
|
|
|
#define CONTAINS_OP_DICT 185
|
|
|
|
#define CONTAINS_OP_SET 186
|
|
|
|
#define FOR_ITER_GEN 187
|
|
|
|
#define FOR_ITER_LIST 188
|
|
|
|
#define FOR_ITER_RANGE 189
|
|
|
|
#define FOR_ITER_TUPLE 190
|
|
|
|
#define LOAD_ATTR_CLASS 191
|
|
|
|
#define LOAD_ATTR_GETATTRIBUTE_OVERRIDDEN 192
|
|
|
|
#define LOAD_ATTR_INSTANCE_VALUE 193
|
|
|
|
#define LOAD_ATTR_METHOD_LAZY_DICT 194
|
|
|
|
#define LOAD_ATTR_METHOD_NO_DICT 195
|
|
|
|
#define LOAD_ATTR_METHOD_WITH_VALUES 196
|
|
|
|
#define LOAD_ATTR_MODULE 197
|
|
|
|
#define LOAD_ATTR_NONDESCRIPTOR_NO_DICT 198
|
|
|
|
#define LOAD_ATTR_NONDESCRIPTOR_WITH_VALUES 199
|
|
|
|
#define LOAD_ATTR_PROPERTY 200
|
|
|
|
#define LOAD_ATTR_SLOT 201
|
|
|
|
#define LOAD_ATTR_WITH_HINT 202
|
|
|
|
#define LOAD_GLOBAL_BUILTIN 203
|
|
|
|
#define LOAD_GLOBAL_MODULE 204
|
|
|
|
#define LOAD_SUPER_ATTR_ATTR 205
|
|
|
|
#define LOAD_SUPER_ATTR_METHOD 206
|
|
|
|
#define RESUME_CHECK 207
|
|
|
|
#define SEND_GEN 208
|
|
|
|
#define STORE_ATTR_INSTANCE_VALUE 209
|
|
|
|
#define STORE_ATTR_SLOT 210
|
|
|
|
#define STORE_ATTR_WITH_HINT 211
|
|
|
|
#define STORE_SUBSCR_DICT 212
|
|
|
|
#define STORE_SUBSCR_LIST_INT 213
|
|
|
|
#define TO_BOOL_ALWAYS_TRUE 214
|
|
|
|
#define TO_BOOL_BOOL 215
|
|
|
|
#define TO_BOOL_INT 216
|
|
|
|
#define TO_BOOL_LIST 217
|
|
|
|
#define TO_BOOL_NONE 218
|
|
|
|
#define TO_BOOL_STR 219
|
|
|
|
#define UNPACK_SEQUENCE_LIST 220
|
|
|
|
#define UNPACK_SEQUENCE_TUPLE 221
|
|
|
|
#define UNPACK_SEQUENCE_TWO_TUPLE 222
|
2023-09-13 14:25:45 -03:00
|
|
|
#define INSTRUMENTED_RESUME 236
|
|
|
|
#define INSTRUMENTED_END_FOR 237
|
|
|
|
#define INSTRUMENTED_END_SEND 238
|
2024-07-26 08:24:12 -03:00
|
|
|
#define INSTRUMENTED_LOAD_SUPER_ATTR 239
|
|
|
|
#define INSTRUMENTED_FOR_ITER 240
|
2024-07-26 10:35:57 -03:00
|
|
|
#define INSTRUMENTED_CALL_KW 241
|
|
|
|
#define INSTRUMENTED_CALL_FUNCTION_EX 242
|
|
|
|
#define INSTRUMENTED_INSTRUCTION 243
|
|
|
|
#define INSTRUMENTED_JUMP_FORWARD 244
|
|
|
|
#define INSTRUMENTED_JUMP_BACKWARD 245
|
|
|
|
#define INSTRUMENTED_POP_JUMP_IF_TRUE 246
|
|
|
|
#define INSTRUMENTED_POP_JUMP_IF_FALSE 247
|
|
|
|
#define INSTRUMENTED_POP_JUMP_IF_NONE 248
|
|
|
|
#define INSTRUMENTED_POP_JUMP_IF_NOT_NONE 249
|
|
|
|
#define INSTRUMENTED_RETURN_VALUE 250
|
|
|
|
#define INSTRUMENTED_RETURN_CONST 251
|
|
|
|
#define INSTRUMENTED_YIELD_VALUE 252
|
|
|
|
#define INSTRUMENTED_CALL 253
|
2023-08-11 13:42:01 -03:00
|
|
|
#define INSTRUMENTED_LINE 254
|
2023-08-16 19:25:18 -03:00
|
|
|
#define JUMP 256
|
|
|
|
#define JUMP_NO_INTERRUPT 257
|
|
|
|
#define LOAD_CLOSURE 258
|
2024-05-28 16:05:38 -03:00
|
|
|
#define POP_BLOCK 259
|
|
|
|
#define SETUP_CLEANUP 260
|
|
|
|
#define SETUP_FINALLY 261
|
|
|
|
#define SETUP_WITH 262
|
|
|
|
#define STORE_FAST_MAYBE_NULL 263
|
2023-08-11 13:42:01 -03:00
|
|
|
|
2024-06-18 08:17:46 -03:00
|
|
|
#define HAVE_ARGUMENT 41
|
2023-12-08 07:48:30 -04:00
|
|
|
#define MIN_INSTRUMENTED_OPCODE 236
|
|
|
|
|
2023-08-11 13:42:01 -03:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif /* !Py_OPCODE_IDS_H */
|