From: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com> Date: Thu, 16 Oct 2025 21:01:51 +0000 (+0100) Subject: cleanup a little X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a274451e052225781879991d833893eb805e63ec;p=thirdparty%2FPython%2Fcpython.git cleanup a little --- 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.