diff options
author | Brandt Bucher <brandtbucher@microsoft.com> | 2022-03-01 13:53:13 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-01 13:53:13 (GMT) |
commit | 7820a5897e7762df23bff1cbe749652130654a08 (patch) | |
tree | d4040cce6aa8a7f0ee8a3edf6bb644e1b0d8a6f4 /Lib/importlib/_bootstrap_external.py | |
parent | df9f7597559b6256924fcd3a1c3dc24cd5c5edaf (diff) | |
download | cpython-7820a5897e7762df23bff1cbe749652130654a08.zip cpython-7820a5897e7762df23bff1cbe749652130654a08.tar.gz cpython-7820a5897e7762df23bff1cbe749652130654a08.tar.bz2 |
bpo-46841: Use inline caching for `COMPARE_OP` (GH-31622)
Diffstat (limited to 'Lib/importlib/_bootstrap_external.py')
-rw-r--r-- | Lib/importlib/_bootstrap_external.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/importlib/_bootstrap_external.py b/Lib/importlib/_bootstrap_external.py index f051dfe..c69c0c7 100644 --- a/Lib/importlib/_bootstrap_external.py +++ b/Lib/importlib/_bootstrap_external.py @@ -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__' |