Skip to content

Commit 5886990

Browse files
committed
Add LOAD_INT instruction
1 parent 759a54d commit 5886990

20 files changed

+311
-150
lines changed

Include/internal/pycore_magic_number.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,7 @@ Known values:
261261
Python 3.14a1 3606 (Specialize CALL_KW)
262262
Python 3.14a1 3607 (Add pseudo instructions JUMP_IF_TRUE/FALSE)
263263
Python 3.14a1 3608 (Add support for slices)
264+
Python 3.14a2 3610 (Add LOAD_INT)
264265
265266
Python 3.15 will start with 3650
266267
@@ -273,7 +274,7 @@ PC/launcher.c must also be updated.
273274
274275
*/
275276

276-
#define PYC_MAGIC_NUMBER 3608
277+
#define PYC_MAGIC_NUMBER 3610
277278
/* This is equivalent to converting PYC_MAGIC_NUMBER to 2 bytes
278279
(little-endian) and then appending b'\r\n'. */
279280
#define PYC_MAGIC_NUMBER_TOKEN \

Include/internal/pycore_opcode_metadata.h

Lines changed: 8 additions & 1 deletion
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: 43 additions & 38 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Include/internal/pycore_uop_metadata.h

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

Include/opcode_ids.h

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

Lib/_opcode_metadata.py

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

Lib/dis.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -676,6 +676,8 @@ def _get_const_value(op, arg, co_consts):
676676
"""
677677
assert op in hasconst
678678

679+
if op == LOAD_INT:
680+
return arg
679681
argval = UNKNOWN
680682
if co_consts is not None:
681683
argval = co_consts[arg]

0 commit comments

Comments
 (0)