mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
gh-105481: generate op IDs from bytecode.c instead of hard coding them in opcode.py (#107971)
This commit is contained in:
parent
e88eb3775e
commit
665a4391e1
21 changed files with 1593 additions and 1521 deletions
|
@ -454,6 +454,7 @@ _code_type = type(_write_atomic.__code__)
|
|||
# Python 3.13a1 3556 (Convert LOAD_CLOSURE to a pseudo-op)
|
||||
# Python 3.13a1 3557 (Make the conversion to boolean in jumps explicit)
|
||||
# Python 3.13a1 3558 (Reorder the stack items for CALL)
|
||||
# Python 3.13a1 3559 (Generate opcode IDs from bytecodes.c)
|
||||
|
||||
# Python 3.14 will start with 3600
|
||||
|
||||
|
@ -470,7 +471,7 @@ _code_type = type(_write_atomic.__code__)
|
|||
# Whenever MAGIC_NUMBER is changed, the ranges in the magic_values array
|
||||
# in PC/launcher.c must also be updated.
|
||||
|
||||
MAGIC_NUMBER = (3558).to_bytes(2, 'little') + b'\r\n'
|
||||
MAGIC_NUMBER = (3559).to_bytes(2, 'little') + b'\r\n'
|
||||
|
||||
_RAW_MAGIC_NUMBER = int.from_bytes(MAGIC_NUMBER, 'little') # For import.c
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue