@@ -994,21 +994,18 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, _PyInterpreterFrame *frame, int
994994
995995 OPT_STAT_INC (traces_executed );
996996 _PyUOpInstruction * next_uop = current_executor -> trace ;
997- uint64_t operand ;
998997#ifdef Py_STATS
999998 uint64_t trace_uop_execution_counter = 0 ;
1000999#endif
10011000
10021001 for (;;) {
10031002 opcode = next_uop -> opcode ;
1004- oparg = next_uop -> oparg ;
1005- operand = next_uop -> operand ;
10061003 DPRINTF (3 ,
10071004 "%4d: uop %s, oparg %d, operand %" PRIu64 ", target %d, stack_level %d\n" ,
10081005 (int )(next_uop - current_executor -> trace ),
10091006 _PyUopName (opcode ),
1010- oparg ,
1011- operand ,
1007+ next_uop -> oparg ,
1008+ next_uop -> operand ,
10121009 next_uop -> target ,
10131010 (int )(stack_pointer - _PyFrame_Stackbase (frame )));
10141011 next_uop ++ ;
@@ -1025,8 +1022,9 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, _PyInterpreterFrame *frame, int
10251022 default :
10261023#ifdef Py_DEBUG
10271024 {
1028- fprintf (stderr , "Unknown uop %d, oparg %d, operand %" PRIu64 "\n" ,
1029- opcode , oparg , operand );
1025+ fprintf (stderr , "Unknown uop %d, oparg %d, operand %" PRIu64 " @ %d\n" ,
1026+ opcode , next_uop [-1 ].oparg , next_uop [-1 ].operand ,
1027+ (int )(next_uop - current_executor -> trace - 1 ));
10301028 Py_FatalError ("Unknown uop" );
10311029 }
10321030#else
@@ -1055,7 +1053,7 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, _PyInterpreterFrame *frame, int
10551053 STACK_SHRINK (1 );
10561054error_tier_two :
10571055 DPRINTF (2 , "Error: [Uop %d (%s), oparg %d, operand %" PRIu64 ", target %d @ %d]\n" ,
1058- opcode , _PyUopName (opcode ), oparg , operand , next_uop [-1 ].target ,
1056+ opcode , _PyUopName (opcode ), next_uop [ -1 ]. oparg , next_uop [ -1 ]. operand , next_uop [-1 ].target ,
10591057 (int )(next_uop - current_executor -> trace - 1 ));
10601058 OPT_HIST (trace_uop_execution_counter , trace_run_length_hist );
10611059 frame -> return_offset = 0 ; // Don't leave this random
@@ -1068,7 +1066,7 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, _PyInterpreterFrame *frame, int
10681066 // On DEOPT_IF we just repeat the last instruction.
10691067 // This presumes nothing was popped from the stack (nor pushed).
10701068 DPRINTF (2 , "DEOPT: [Uop %d (%s), oparg %d, operand %" PRIu64 ", target %d @ %d]\n" ,
1071- opcode , _PyUopName (opcode ), oparg , operand , next_uop [-1 ].target ,
1069+ opcode , _PyUopName (opcode ), next_uop [ -1 ]. oparg , next_uop [ -1 ]. operand , next_uop [-1 ].target ,
10721070 (int )(next_uop - current_executor -> trace - 1 ));
10731071 OPT_HIST (trace_uop_execution_counter , trace_run_length_hist );
10741072 UOP_STAT_INC (opcode , miss );
0 commit comments