There was an error while loading. Please reload this page.
1 parent e2d9b28 commit e9c43a0Copy full SHA for e9c43a0
1 file changed
Python/ceval_macros.h
@@ -77,6 +77,14 @@
77
// next_op_f = INSTRUCTION_TABLE[next_instr->op.code];
78
// 2nd version is like NEXTOPARG which does this atomic thing
79
// we also need a version that loads from opcode directly b/c a few things write to it directly
80
+
81
+ /*if (next_op_f != INSTRUCTION_TABLE[opcode]) { \*/
82
+ /* int myopcode=-1; \*/
83
+ /* for (int i = 0; i < 256; i++) { \*/
84
+ /* if (next_op_f == INSTRUCTION_TABLE[i]) { myopcode = i; break; } \*/
85
+ /* } \*/
86
+ /* printf("yo expected %p but got %p used opcode=%d but is really opcode=%d\n", INSTRUCTION_TABLE[opcode], next_op_f, myopcode, opcode); \*/
87
+ /*} \*/
88
#ifdef Py_TAIL_CALL_INTERP
89
# define LOAD_NEXT_OP_F() \
90
do { \
@@ -95,13 +103,6 @@
95
103
# define TARGET(op) Py_PRESERVE_NONE_CC PyObject *_TAIL_CALL_##op(TAIL_CALL_PARAMS)
96
104
# define DISPATCH_GOTO() \
97
105
98
- if (next_op_f != INSTRUCTION_TABLE[opcode]) { \
99
- int myopcode=-1; \
100
- for (int i = 0; i < 256; i++) { \
101
- if (next_op_f == INSTRUCTION_TABLE[i]) { myopcode = i; break; } \
102
- } \
- printf("yo expected %p but got %p used opcode=%d but is really opcode=%d\n", INSTRUCTION_TABLE[opcode], next_op_f, myopcode, opcode); \
106
assert(next_op_f == INSTRUCTION_TABLE[opcode]); \
107
Py_MUSTTAIL return next_op_f(TAIL_CALL_ARGS); \
108
} while (0)
0 commit comments