Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(275292)

Delta Between Two Patch Sets: Include/opcode.h

Issue 11682: PEP 380 reference implementation for 3.3
Left Patch Set: Created 8 years, 1 month ago
Right Patch Set: Created 7 years, 7 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
LEFTRIGHT
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
11 #define POP_TOP 1 10 #define POP_TOP 1
12 #define ROT_TWO 2 11 #define ROT_TWO 2
13 #define ROT_THREE 3 12 #define ROT_THREE 3
14 #define DUP_TOP 4 13 #define DUP_TOP 4
15 #define DUP_TOP_TWO 5 14 #define DUP_TOP_TWO 5
16 #define NOP 9 15 #define NOP 9
17 16
18 #define UNARY_POSITIVE 10 17 #define UNARY_POSITIVE 10
19 #define UNARY_NEGATIVE 11 18 #define UNARY_NEGATIVE 11
20 #define UNARY_NOT 12 19 #define UNARY_NOT 12
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 150
152 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, 151 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,
153 PyCmp_IN, PyCmp_NOT_IN, PyCmp_IS, PyCmp_IS_NOT, PyCmp_EXC_MATCH, Py Cmp_BAD}; 152 PyCmp_IN, PyCmp_NOT_IN, PyCmp_IS, PyCmp_IS_NOT, PyCmp_EXC_MATCH, Py Cmp_BAD};
154 153
155 #define HAS_ARG(op) ((op) >= HAVE_ARGUMENT) 154 #define HAS_ARG(op) ((op) >= HAVE_ARGUMENT)
156 155
157 #ifdef __cplusplus 156 #ifdef __cplusplus
158 } 157 }
159 #endif 158 #endif
160 #endif /* !Py_OPCODE_H */ 159 #endif /* !Py_OPCODE_H */
LEFTRIGHT

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+