File tree 1 file changed +6
-5
lines changed 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -315,7 +315,7 @@ translate_bytecode_to_trace(
315
315
if (uop_debug != NULL && * uop_debug >= '0' ) {
316
316
lltrace = * uop_debug - '0' ; // TODO: Parse an int and all that
317
317
}
318
- if (lltrace >= 2 ) {
318
+ if (lltrace >= 4 ) {
319
319
fprintf (stderr ,
320
320
"Optimizing %s (%s:%d) at offset %ld\n" ,
321
321
PyUnicode_AsUTF8 (code -> co_qualname ),
@@ -363,17 +363,18 @@ translate_bytecode_to_trace(
363
363
goto done ;
364
364
}
365
365
for (int i = 0 ; i < nuops ; i ++ ) {
366
+ int offset = expansion -> uops [i ].offset ;
366
367
switch (expansion -> uops [i ].size ) {
367
368
case 0 :
368
369
break ;
369
370
case 1 :
370
- oparg = read_u16 (instr + expansion -> uops [ i ]. offset );
371
+ oparg = read_u16 (& instr [ offset ]. cache );
371
372
break ;
372
373
case 2 :
373
- oparg = read_u32 (instr + expansion -> uops [ i ]. offset );
374
+ oparg = read_u32 (& instr [ offset ]. cache );
374
375
break ;
375
376
case 4 :
376
- oparg = read_u64 (instr + expansion -> uops [ i ]. offset );
377
+ oparg = read_u64 (& instr [ offset ]. cache );
377
378
break ;
378
379
default :
379
380
fprintf (stderr ,
@@ -414,7 +415,7 @@ translate_bytecode_to_trace(
414
415
}
415
416
else {
416
417
#ifdef LLTRACE
417
- if (lltrace >= 2 ) {
418
+ if (lltrace >= 4 ) {
418
419
fprintf (stderr ,
419
420
"No trace for %s (%s:%d) at offset %ld\n" ,
420
421
PyUnicode_AsUTF8 (code -> co_qualname ),
You can’t perform that action at this time.
0 commit comments