LEFT | RIGHT |
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 enum _Py_opcode { | 10 enum _Py_opcode { |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 SETUP_EXCEPT = 121, /* "" */ | 132 SETUP_EXCEPT = 121, /* "" */ |
133 SETUP_FINALLY = 122, /* "" */ | 133 SETUP_FINALLY = 122, /* "" */ |
134 | 134 |
135 LOAD_FAST = 124, /* Local variable number */ | 135 LOAD_FAST = 124, /* Local variable number */ |
136 STORE_FAST = 125, /* Local variable number */ | 136 STORE_FAST = 125, /* Local variable number */ |
137 DELETE_FAST = 126, /* Local variable number */ | 137 DELETE_FAST = 126, /* Local variable number */ |
138 | 138 |
139 /* CALL_FUNCTION_XXX opcodes defined below depend on this definition */ | 139 /* CALL_FUNCTION_XXX opcodes defined below depend on this definition */ |
140 CALL_FUNCTION = 131, /* #args + (#kwargs<<8) */ | 140 CALL_FUNCTION = 131, /* #args + (#kwargs<<8) */ |
141 /* MAKE_FUNCTION = 132, Replaced by #@make_function() builtin. */ | 141 /* MAKE_FUNCTION = 132, Replaced by #@make_function() builtin. */ |
142 CALL_METHOD = 133, /* #args + (#kwargs<<8) */ | 142 CALL_METHOD =» 133,» /* #args + (#kwargs<<8) */ |
143 MAKE_CLOSURE = 134, /* #free vars */ | 143 MAKE_CLOSURE = 134, /* #free vars */ |
144 LOAD_CLOSURE = 135, /* Load free variable from closure */ | 144 LOAD_CLOSURE = 135, /* Load free variable from closure */ |
145 LOAD_DEREF = 136, /* Load and dereference from closure cell */ | 145 LOAD_DEREF = 136, /* Load and dereference from closure cell */ |
146 STORE_DEREF = 137, /* Store into cell */ | 146 STORE_DEREF = 137, /* Store into cell */ |
147 | 147 |
148 /* The next 3 opcodes must be contiguous and satisfy | 148 /* The next 3 opcodes must be contiguous and satisfy |
149 (CALL_FUNCTION_VAR - CALL_FUNCTION) & 3 == 1 */ | 149 (CALL_FUNCTION_VAR - CALL_FUNCTION) & 3 == 1 */ |
150 CALL_FUNCTION_VAR = 140, /* #args + (#kwargs<<8) */ | 150 CALL_FUNCTION_VAR = 140, /* #args + (#kwargs<<8) */ |
151 CALL_FUNCTION_KW = 141, /* #args + (#kwargs<<8) */ | 151 CALL_FUNCTION_KW = 141, /* #args + (#kwargs<<8) */ |
152 CALL_FUNCTION_VAR_KW = 142, /* #args + (#kwargs<<8) */ | 152 CALL_FUNCTION_VAR_KW = 142, /* #args + (#kwargs<<8) */ |
153 | 153 |
154 /* Support for opargs more than 16 bits long */ | 154 /* Support for opargs more than 16 bits long */ |
155 EXTENDED_ARG = 143, | 155 EXTENDED_ARG = 143, |
156 }; | 156 }; |
157 | 157 |
158 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, | 158 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, |
159 PyCmp_IN, PyCmp_NOT_IN, PyCmp_IS, PyCmp_IS_NOT, PyCmp_EXC_MATCH, Py
Cmp_BAD}; | 159 PyCmp_IN, PyCmp_NOT_IN, PyCmp_IS, PyCmp_IS_NOT, PyCmp_EXC_MATCH, Py
Cmp_BAD}; |
160 | 160 |
161 #define HAS_ARG(op) ((op) >= HAVE_ARGUMENT) | 161 #define HAS_ARG(op) ((op) >= HAVE_ARGUMENT) |
162 | 162 |
163 #ifdef __cplusplus | 163 #ifdef __cplusplus |
164 } | 164 } |
165 #endif | 165 #endif |
166 #endif /* !Py_OPCODE_H */ | 166 #endif /* !Py_OPCODE_H */ |
LEFT | RIGHT |