mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
bpo-46841: Use inline caching for COMPARE_OP
(GH-31622)
This commit is contained in:
parent
df9f759755
commit
7820a5897e
9 changed files with 179 additions and 163 deletions
|
@ -389,6 +389,7 @@ _code_type = type(_write_atomic.__code__)
|
|||
# Python 3.11a5 3480 (New CALL opcodes, second iteration)
|
||||
# Python 3.11a5 3481 (Use inline cache for BINARY_OP)
|
||||
# Python 3.11a5 3482 (Use inline caching for UNPACK_SEQUENCE and LOAD_GLOBAL)
|
||||
# Python 3.11a5 3483 (Use inline caching for COMPARE_OP)
|
||||
|
||||
# Python 3.12 will start with magic number 3500
|
||||
|
||||
|
@ -403,7 +404,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 = (3482).to_bytes(2, 'little') + b'\r\n'
|
||||
MAGIC_NUMBER = (3483).to_bytes(2, 'little') + b'\r\n'
|
||||
_RAW_MAGIC_NUMBER = int.from_bytes(MAGIC_NUMBER, 'little') # For import.c
|
||||
|
||||
_PYCACHE = '__pycache__'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue