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

Side by Side Diff: Include/opcode.h

Issue 11682: PEP 380 reference implementation for 3.3
Patch Set: Created 7 years, 4 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:
View unified diff | Download patch
OLDNEW
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 POP_TOP 1 10 #define POP_TOP 1
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 #define BINARY_LSHIFT 62 45 #define BINARY_LSHIFT 62
46 #define BINARY_RSHIFT 63 46 #define BINARY_RSHIFT 63
47 #define BINARY_AND 64 47 #define BINARY_AND 64
48 #define BINARY_XOR 65 48 #define BINARY_XOR 65
49 #define BINARY_OR 66 49 #define BINARY_OR 66
50 #define INPLACE_POWER 67 50 #define INPLACE_POWER 67
51 #define GET_ITER 68 51 #define GET_ITER 68
52 #define STORE_LOCALS 69 52 #define STORE_LOCALS 69
53 #define PRINT_EXPR 70 53 #define PRINT_EXPR 70
54 #define LOAD_BUILD_CLASS 71 54 #define LOAD_BUILD_CLASS 71
55 #define YIELD_FROM 72
55 56
56 #define INPLACE_LSHIFT 75 57 #define INPLACE_LSHIFT 75
57 #define INPLACE_RSHIFT 76 58 #define INPLACE_RSHIFT 76
58 #define INPLACE_AND 77 59 #define INPLACE_AND 77
59 #define INPLACE_XOR 78 60 #define INPLACE_XOR 78
60 #define INPLACE_OR 79 61 #define INPLACE_OR 79
61 #define BREAK_LOOP 80 62 #define BREAK_LOOP 80
62 #define WITH_CLEANUP 81 63 #define WITH_CLEANUP 81
63 64
64 #define RETURN_VALUE 83 65 #define RETURN_VALUE 83
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 150
150 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,
151 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};
152 153
153 #define HAS_ARG(op) ((op) >= HAVE_ARGUMENT) 154 #define HAS_ARG(op) ((op) >= HAVE_ARGUMENT)
154 155
155 #ifdef __cplusplus 156 #ifdef __cplusplus
156 } 157 }
157 #endif 158 #endif
158 #endif /* !Py_OPCODE_H */ 159 #endif /* !Py_OPCODE_H */
OLDNEW
« no previous file with comments | « Include/graminit.h ('k') | Include/pyerrors.h » ('j') | Modules/parsermodule.c » ('J')

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