Skip to content

Commit a274451

Browse files
cleanup a little
1 parent 6936a38 commit a274451

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

Python/optimizer.c

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -585,14 +585,6 @@ _PyJIT_translate_single_bytecode_to_trace(
585585

586586
DPRINTF(2, "%d: %s(%d)\n", target, _PyOpcode_OpName[opcode], oparg);
587587

588-
// TODO support EXTENDED_ARG
589-
if (oparg > 255) {
590-
goto unsupported;
591-
}
592-
593-
if (opcode == EXTENDED_ARG) {
594-
return 1;
595-
}
596588
if (opcode == NOP) {
597589
return 1;
598590
}
@@ -626,6 +618,9 @@ _PyJIT_translate_single_bytecode_to_trace(
626618

627619
// Strange control-flow, unsupported opcode, etc.
628620
if (jump_taken ||
621+
// TODO handle extended args.
622+
oparg > 255 ||
623+
opcode == EXTENDED_ARG ||
629624
opcode == WITH_EXCEPT_START || opcode == RERAISE || opcode == CLEANUP_THROW || opcode == PUSH_EXC_INFO ||
630625
frame->owner >= FRAME_OWNED_BY_INTERPRETER ||
631626
// This can be supported, but requires a tracing shim frame.

0 commit comments

Comments
 (0)