2022-10-17 12:01:00 +02:00
|
|
|
// Auto-generated by Tools/build/generate_opcode_h.py from Lib/opcode.py
|
2022-04-26 00:14:30 +02:00
|
|
|
|
|
|
|
|
#ifndef Py_INTERNAL_OPCODE_H
|
|
|
|
|
#define Py_INTERNAL_OPCODE_H
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
extern "C" {
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#ifndef Py_BUILD_CORE
|
|
|
|
|
# error "this header requires Py_BUILD_CORE define"
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#include "opcode.h"
|
|
|
|
|
|
|
|
|
|
extern const uint8_t _PyOpcode_Caches[256];
|
|
|
|
|
|
|
|
|
|
#ifdef NEED_OPCODE_TABLES
|
|
|
|
|
|
|
|
|
|
const uint8_t _PyOpcode_Caches[256] = {
|
2023-07-27 14:15:25 +01:00
|
|
|
[LOAD_GLOBAL] = 4,
|
|
|
|
|
[BINARY_OP] = 1,
|
2022-04-26 00:14:30 +02:00
|
|
|
[UNPACK_SEQUENCE] = 1,
|
2023-07-27 14:15:25 +01:00
|
|
|
[COMPARE_OP] = 1,
|
|
|
|
|
[BINARY_SUBSCR] = 1,
|
2022-06-21 06:19:26 -04:00
|
|
|
[FOR_ITER] = 1,
|
2023-07-27 14:15:25 +01:00
|
|
|
[LOAD_SUPER_ATTR] = 1,
|
2022-06-14 18:36:22 +08:00
|
|
|
[LOAD_ATTR] = 9,
|
2023-07-27 14:15:25 +01:00
|
|
|
[STORE_ATTR] = 4,
|
|
|
|
|
[CALL] = 3,
|
|
|
|
|
[STORE_SUBSCR] = 1,
|
2023-02-13 11:24:55 +00:00
|
|
|
[SEND] = 1,
|
2023-06-02 11:46:18 +01:00
|
|
|
[JUMP_BACKWARD] = 1,
|
2023-07-27 14:15:25 +01:00
|
|
|
[TO_BOOL] = 3,
|
2022-04-26 00:14:30 +02:00
|
|
|
};
|
2023-07-04 17:23:00 +01:00
|
|
|
#endif // NEED_OPCODE_TABLES
|
2022-04-26 00:14:30 +02:00
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
#endif // !Py_INTERNAL_OPCODE_H
|