mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
GH-90690: Remove PRECALL instruction (GH-92925)
This commit is contained in:
parent
41638967a0
commit
e48ac9c100
14 changed files with 547 additions and 704 deletions
|
|
@ -402,9 +402,11 @@ _code_type = type(_write_atomic.__code__)
|
|||
# add JUMP_BACKWARD_NO_INTERRUPT, make JUMP_NO_INTERRUPT virtual)
|
||||
# Python 3.11a7 3492 (make POP_JUMP_IF_NONE/NOT_NONE/TRUE/FALSE relative)
|
||||
# Python 3.11a7 3493 (Make JUMP_IF_TRUE_OR_POP/JUMP_IF_FALSE_OR_POP relative)
|
||||
# Python 3.11a7 3494 (New location info table)
|
||||
# Python 3.12 will start with magic number 3500
|
||||
# Python 3.11a7 3494 (New location info table)
|
||||
|
||||
# Python 3.12a1 3500 (Remove PRECALL opcode)
|
||||
|
||||
# Python 3.13 will start with 3550
|
||||
|
||||
#
|
||||
# MAGIC must change whenever the bytecode emitted by the compiler may no
|
||||
|
|
@ -416,7 +418,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 = (3494).to_bytes(2, 'little') + b'\r\n'
|
||||
MAGIC_NUMBER = (3500).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