Skip to content

Commit e9c43a0

Browse files
committed
remove deubgging loop
1 parent e2d9b28 commit e9c43a0

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

Python/ceval_macros.h

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,14 @@
7777
// next_op_f = INSTRUCTION_TABLE[next_instr->op.code];
7878
// 2nd version is like NEXTOPARG which does this atomic thing
7979
// 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+
/*} \*/
8088
#ifdef Py_TAIL_CALL_INTERP
8189
# define LOAD_NEXT_OP_F() \
8290
do { \
@@ -95,13 +103,6 @@
95103
# define TARGET(op) Py_PRESERVE_NONE_CC PyObject *_TAIL_CALL_##op(TAIL_CALL_PARAMS)
96104
# define DISPATCH_GOTO() \
97105
do { \
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-
} \
103-
printf("yo expected %p but got %p used opcode=%d but is really opcode=%d\n", INSTRUCTION_TABLE[opcode], next_op_f, myopcode, opcode); \
104-
} \
105106
assert(next_op_f == INSTRUCTION_TABLE[opcode]); \
106107
Py_MUSTTAIL return next_op_f(TAIL_CALL_ARGS); \
107108
} while (0)

0 commit comments

Comments
 (0)