Skip to content

Commit f826bec

Browse files
authored
GH-128375: Better instrument for FOR_ITER (GH-128445)
1 parent b9c693d commit f826bec

27 files changed

+827
-544
lines changed

Include/internal/pycore_instruments.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ _Py_call_instrumentation_instruction(
4848

4949
_Py_CODEUNIT *
5050
_Py_call_instrumentation_jump(
51-
PyThreadState *tstate, int event,
52-
_PyInterpreterFrame *frame, _Py_CODEUNIT *instr, _Py_CODEUNIT *target);
51+
_Py_CODEUNIT *instr, PyThreadState *tstate, int event,
52+
_PyInterpreterFrame *frame, _Py_CODEUNIT *src, _Py_CODEUNIT *dest);
5353

5454
extern int
5555
_Py_call_instrumentation_arg(PyThreadState *tstate, int event,

Include/internal/pycore_magic_number.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,7 @@ Known values:
264264
Python 3.14a2 3609 (Add LOAD_SMALL_INT and LOAD_CONST_IMMORTAL instructions, remove RETURN_CONST)
265265
Python 3.14a4 3610 (Add VALUE_WITH_FAKE_GLOBALS format to annotationlib)
266266
Python 3.14a4 3611 (Add NOT_TAKEN instruction)
267+
Python 3.14a4 3612 (Add POP_ITER and INSTRUMENTED_POP_ITER)
267268
268269
Python 3.15 will start with 3650
269270
@@ -276,7 +277,7 @@ PC/launcher.c must also be updated.
276277
277278
*/
278279

279-
#define PYC_MAGIC_NUMBER 3611
280+
#define PYC_MAGIC_NUMBER 3612
280281
/* This is equivalent to converting PYC_MAGIC_NUMBER to 2 bytes
281282
(little-endian) and then appending b'\r\n'. */
282283
#define PYC_MAGIC_NUMBER_TOKEN \

Include/internal/pycore_opcode_metadata.h

+31-8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Include/internal/pycore_uop_ids.h

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Include/internal/pycore_uop_metadata.h

+4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)