mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
gh-105775: Convert LOAD_CLOSURE to a pseudo-op (#106059)
This enables super-instruction formation, removal of checks for uninitialized variables, and frees up an instruction.
This commit is contained in:
parent
3c70d467c1
commit
8bff940ad6
16 changed files with 733 additions and 702 deletions
|
@ -451,6 +451,7 @@ _code_type = type(_write_atomic.__code__)
|
|||
# Python 3.13a1 3553 (Add SET_FUNCTION_ATTRIBUTE)
|
||||
# Python 3.13a1 3554 (more efficient bytecodes for f-strings)
|
||||
# Python 3.13a1 3555 (generate specialized opcodes metadata from bytecodes.c)
|
||||
# Python 3.13a1 3556 (Convert LOAD_CLOSURE to a pseudo-op)
|
||||
|
||||
# Python 3.14 will start with 3600
|
||||
|
||||
|
@ -467,7 +468,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 = (3555).to_bytes(2, 'little') + b'\r\n'
|
||||
MAGIC_NUMBER = (3556).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