| OLD | NEW |
| 1 #ifndef Py_OPCODE_H | 1 #ifndef Py_OPCODE_H |
| 2 #define Py_OPCODE_H | 2 #define Py_OPCODE_H |
| 3 #ifdef __cplusplus | 3 #ifdef __cplusplus |
| 4 extern "C" { | 4 extern "C" { |
| 5 #endif | 5 #endif |
| 6 | 6 |
| 7 | 7 |
| 8 /* Instruction opcodes for compiled code */ | 8 /* Instruction opcodes for compiled code */ |
| 9 | 9 |
| 10 #define STOP_CODE 0 | 10 #define STOP_CODE 0 |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 #define YIELD_VALUE 86 | 80 #define YIELD_VALUE 86 |
| 81 #define POP_BLOCK 87 | 81 #define POP_BLOCK 87 |
| 82 #define END_FINALLY 88 | 82 #define END_FINALLY 88 |
| 83 #define BUILD_CLASS 89 | 83 #define BUILD_CLASS 89 |
| 84 | 84 |
| 85 #define HAVE_ARGUMENT 90 /* Opcodes from here have an argument: */ | 85 #define HAVE_ARGUMENT 90 /* Opcodes from here have an argument: */ |
| 86 | 86 |
| 87 #define STORE_NAME 90 /* Index in name list */ | 87 #define STORE_NAME 90 /* Index in name list */ |
| 88 #define DELETE_NAME 91 /* "" */ | 88 #define DELETE_NAME 91 /* "" */ |
| 89 #define UNPACK_SEQUENCE 92 /* Number of sequence items */ | 89 #define UNPACK_SEQUENCE 92 /* Number of sequence items */ |
| 90 #define FOR_ITER» 93 | 90 #define FOR_ITER» 93 /* Byte index of beginning of loop body */ |
| 91 #define LIST_APPEND 94 | 91 #define LIST_APPEND 94 |
| 92 | 92 |
| 93 #define STORE_ATTR 95 /* Index in name list */ | 93 #define STORE_ATTR 95 /* Index in name list */ |
| 94 #define DELETE_ATTR 96 /* "" */ | 94 #define DELETE_ATTR 96 /* "" */ |
| 95 #define STORE_GLOBAL 97 /* "" */ | 95 #define STORE_GLOBAL 97 /* "" */ |
| 96 #define DELETE_GLOBAL 98 /* "" */ | 96 #define DELETE_GLOBAL 98 /* "" */ |
| 97 #define DUP_TOPX 99 /* number of items to duplicate */ | 97 #define DUP_TOPX 99 /* number of items to duplicate */ |
| 98 #define LOAD_CONST 100 /* Index in const list */ | 98 #define LOAD_CONST 100 /* Index in const list */ |
| 99 #define LOAD_NAME 101 /* Index in name list */ | 99 #define LOAD_NAME 101 /* Index in name list */ |
| 100 #define BUILD_TUPLE 102 /* Number of tuple items */ | 100 #define BUILD_TUPLE 102 /* Number of tuple items */ |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 | 147 |
| 148 enum cmp_op {PyCmp_LT=Py_LT, PyCmp_LE=Py_LE, PyCmp_EQ=Py_EQ, PyCmp_NE=Py_NE, PyC
mp_GT=Py_GT, PyCmp_GE=Py_GE, | 148 enum cmp_op {PyCmp_LT=Py_LT, PyCmp_LE=Py_LE, PyCmp_EQ=Py_EQ, PyCmp_NE=Py_NE, PyC
mp_GT=Py_GT, PyCmp_GE=Py_GE, |
| 149 PyCmp_IN, PyCmp_NOT_IN, PyCmp_IS, PyCmp_IS_NOT, PyCmp_EXC_MATCH, Py
Cmp_BAD}; | 149 PyCmp_IN, PyCmp_NOT_IN, PyCmp_IS, PyCmp_IS_NOT, PyCmp_EXC_MATCH, Py
Cmp_BAD}; |
| 150 | 150 |
| 151 #define HAS_ARG(op) ((op) >= HAVE_ARGUMENT) | 151 #define HAS_ARG(op) ((op) >= HAVE_ARGUMENT) |
| 152 | 152 |
| 153 #ifdef __cplusplus | 153 #ifdef __cplusplus |
| 154 } | 154 } |
| 155 #endif | 155 #endif |
| 156 #endif /* !Py_OPCODE_H */ | 156 #endif /* !Py_OPCODE_H */ |
| OLD | NEW |