Skip to content

Commit 24c8ed3

Browse files
committed
Support LOAD_FAST_LOAD_FAST
1 parent e02120d commit 24c8ed3

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Python/optimizer.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,14 @@ translate_bytecode_to_trace(
391391
ADD_TO_TRACE(opcode, oparg);
392392
break;
393393
}
394+
case LOAD_FAST_LOAD_FAST:
395+
{
396+
int oparg1 = oparg >> 4;
397+
int oparg2 = oparg & 15;
398+
ADD_TO_TRACE(LOAD_FAST, oparg1);
399+
ADD_TO_TRACE(LOAD_FAST, oparg2);
400+
break;
401+
}
394402
default:
395403
{
396404
goto done; // Break out of while loop

0 commit comments

Comments
 (0)