From a274451e052225781879991d833893eb805e63ec Mon Sep 17 00:00:00 2001 From: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com> Date: Thu, 16 Oct 2025 22:01:51 +0100 Subject: [PATCH] cleanup a little --- Python/optimizer.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/Python/optimizer.c b/Python/optimizer.c index e4b29124d17a..532881aef92f 100644 --- a/Python/optimizer.c +++ b/Python/optimizer.c @@ -585,14 +585,6 @@ _PyJIT_translate_single_bytecode_to_trace( DPRINTF(2, "%d: %s(%d)\n", target, _PyOpcode_OpName[opcode], oparg); - // TODO support EXTENDED_ARG - if (oparg > 255) { - goto unsupported; - } - - if (opcode == EXTENDED_ARG) { - return 1; - } if (opcode == NOP) { return 1; } @@ -626,6 +618,9 @@ _PyJIT_translate_single_bytecode_to_trace( // Strange control-flow, unsupported opcode, etc. if (jump_taken || + // TODO handle extended args. + oparg > 255 || + opcode == EXTENDED_ARG || opcode == WITH_EXCEPT_START || opcode == RERAISE || opcode == CLEANUP_THROW || opcode == PUSH_EXC_INFO || frame->owner >= FRAME_OWNED_BY_INTERPRETER || // This can be supported, but requires a tracing shim frame. -- 2.47.3