]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Track from JUMP_BACKWARD rather than FOR_ITER
authorKen Jin <28750310+Fidget-Spinner@users.noreply.github.com>
Wed, 24 Sep 2025 18:21:20 +0000 (19:21 +0100)
committerKen Jin <28750310+Fidget-Spinner@users.noreply.github.com>
Wed, 24 Sep 2025 18:21:20 +0000 (19:21 +0100)
Python/bytecodes.c
Python/generated_cases.c.h

index d8e987708eba7b807aaab1229287c2b494f1d207..770805a98d61ef56bfac65c900872499178a3887 100644 (file)
@@ -2978,7 +2978,7 @@ dummy_func(
                         DISPATCH();
                     }
                 }
-                _PyJIT_InitializeTracing(tstate, frame, next_instr, STACK_LEVEL(), 0, NULL);
+                _PyJIT_InitializeTracing(tstate, frame, this_instr, STACK_LEVEL(), 0, NULL);
                 ENTER_TRACING();
                 // Don't add the JUMP_BACKWARD_JIT instruction to the trace.
                 DISPATCH();
index 1633559d72ac12ce237e67aff426b67670cb6ccd..e190f651fa4c845b974bb1089e1ca579e7b56a2b 100644 (file)
                             DISPATCH();
                         }
                     }
-                    _PyJIT_InitializeTracing(tstate, frame, next_instr, STACK_LEVEL(), 0, NULL);
+                    _PyJIT_InitializeTracing(tstate, frame, this_instr, STACK_LEVEL(), 0, NULL);
                     ENTER_TRACING();
                     DISPATCH();
                 }
                             TRACING_DISPATCH();
                         }
                     }
-                    _PyJIT_InitializeTracing(tstate, frame, next_instr, STACK_LEVEL(), 0, NULL);
+                    _PyJIT_InitializeTracing(tstate, frame, this_instr, STACK_LEVEL(), 0, NULL);
                     ENTER_TRACING();
                     TRACING_DISPATCH();
                 }