Skip to content

Commit 75b4962

Browse files
authored
GH-128914: Remove all but one conditional stack effects (GH-129226)
* Remove all 'if (0)' and 'if (1)' conditional stack effects * Use array instead of conditional for BUILD_SLICE args * Refactor LOAD_GLOBAL to use a common conditional uop * Remove conditional stack effects from LOAD_ATTR specializations * Replace conditional stack effects in LOAD_ATTR with a 0 or 1 sized array. * Remove conditional stack effects from CALL_FUNCTION_EX
1 parent 8ec76d9 commit 75b4962

19 files changed

+516
-756
lines changed

Include/internal/pycore_magic_number.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,7 @@ Known values:
267267
Python 3.14a4 3612 (Add POP_ITER and INSTRUMENTED_POP_ITER)
268268
Python 3.14a4 3613 (Add LOAD_CONST_MORTAL instruction)
269269
Python 3.14a5 3614 (Add BINARY_OP_EXTEND)
270+
Python 3.14a5 3615 (CALL_FUNCTION_EX always take a kwargs argument)
270271
271272
Python 3.15 will start with 3650
272273
@@ -279,7 +280,7 @@ PC/launcher.c must also be updated.
279280
280281
*/
281282

282-
#define PYC_MAGIC_NUMBER 3614
283+
#define PYC_MAGIC_NUMBER 3615
283284
/* This is equivalent to converting PYC_MAGIC_NUMBER to 2 bytes
284285
(little-endian) and then appending b'\r\n'. */
285286
#define PYC_MAGIC_NUMBER_TOKEN \

Include/internal/pycore_opcode_metadata.h

Lines changed: 18 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Include/internal/pycore_uop_ids.h

Lines changed: 72 additions & 79 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)