Skip to content

Commit 2b5fe3a

Browse files
debug changes
1 parent eb73378 commit 2b5fe3a

File tree

1 file changed

+10
-17
lines changed

1 file changed

+10
-17
lines changed

Python/ceval.c

Lines changed: 10 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1222,27 +1222,20 @@ _PyTier2Interpreter(
12221222
uopcode = next_uop->opcode;
12231223
#ifdef Py_DEBUG
12241224
if (frame->lltrace >= 4) {
1225-
if (next_uop->opcode != _YIELD_VALUE &&
1226-
next_uop->opcode != _FOR_ITER_GEN_FRAME &&
1227-
next_uop->opcode != _PUSH_FRAME &&
1228-
next_uop->opcode != _PY_FRAME_KW &&
1229-
next_uop->opcode != _SAVE_RETURN_OFFSET &&
1230-
next_uop->opcode != _SAVE_RETURN_OFFSET) {
1231-
if (next_uop->opcode != _START_EXECUTOR) {
1232-
if (next_uop->format == UOP_FORMAT_TARGET) {
1233-
_Py_CODEUNIT *aim = _PyFrame_GetBytecode(frame) + next_uop->target;
1225+
if (next_uop->opcode != _START_EXECUTOR) {
1226+
if (next_uop->format == UOP_FORMAT_TARGET) {
1227+
_Py_CODEUNIT *aim = _PyFrame_GetBytecode(frame) + next_uop->target;
1228+
printf(" aim=[%s]\n", _PyOpcode_OpName[aim->op.code]);
1229+
}
1230+
else if (next_uop->format == UOP_FORMAT_JUMP) {
1231+
_PyUOpInstruction *aim_uop = current_executor->trace + next_uop->jump_target;
1232+
if (aim_uop->format == UOP_FORMAT_TARGET) {
1233+
_Py_CODEUNIT *aim = _PyFrame_GetBytecode(frame) + aim_uop->target;
12341234
printf(" aim=[%s]\n", _PyOpcode_OpName[aim->op.code]);
12351235
}
1236-
else if (next_uop->format == UOP_FORMAT_JUMP) {
1237-
_PyUOpInstruction *aim_uop = current_executor->trace + next_uop->jump_target;
1238-
if (aim_uop->format == UOP_FORMAT_TARGET) {
1239-
_Py_CODEUNIT *aim = _PyFrame_GetBytecode(frame) + aim_uop->target;
1240-
printf(" aim=[%s]\n", _PyOpcode_OpName[aim->op.code]);
1241-
}
1242-
}
12431236
}
1244-
dump_stack(frame, stack_pointer);
12451237
}
1238+
dump_stack(frame, stack_pointer);
12461239
if (next_uop->opcode == _START_EXECUTOR) {
12471240
printf("%4d uop: ", 0);
12481241
}

0 commit comments

Comments
 (0)