]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-125837: Split `LOAD_CONST` into three. (GH-125972)
authorMark Shannon <mark@hotpy.org>
Tue, 29 Oct 2024 11:15:42 +0000 (11:15 +0000)
committerGitHub <noreply@github.com>
Tue, 29 Oct 2024 11:15:42 +0000 (11:15 +0000)
commitfaa3272fb8d63d481a136cc0467a0cba6ed7b264
tree474ac9edbff637a8edb280846a1d3d9b113915c4
parent67f5c5bd6fcc956a785edef3be67e8cbe470cd31
GH-125837: Split `LOAD_CONST` into three. (GH-125972)

* Add LOAD_CONST_IMMORTAL opcode

* Add LOAD_SMALL_INT opcode

* Remove RETURN_CONST opcode
33 files changed:
Doc/library/dis.rst
Doc/whatsnew/3.12.rst
Include/internal/pycore_magic_number.h
Include/internal/pycore_opcode_metadata.h
Include/internal/pycore_opcode_utils.h
Include/internal/pycore_uop_ids.h
Include/internal/pycore_uop_metadata.h
Include/opcode_ids.h
Lib/_opcode_metadata.py
Lib/dis.py
Lib/test/test_ast/test_ast.py
Lib/test/test_code.py
Lib/test/test_compile.py
Lib/test/test_compiler_assemble.py
Lib/test/test_compiler_codegen.py
Lib/test/test_dis.py
Lib/test/test_embed.py
Lib/test/test_import/__init__.py
Lib/test/test_monitoring.py
Lib/test/test_peepholer.py
Misc/NEWS.d/next/Core_and_Builtins/2024-10-25-15-56-14.gh-issue-125837.KlCdgD.rst [new file with mode: 0644]
Objects/frameobject.c
Programs/test_frozenmain.h
Python/bytecodes.c
Python/codegen.c
Python/executor_cases.c.h
Python/flowgraph.c
Python/generated_cases.c.h
Python/instrumentation.c
Python/opcode_targets.h
Python/optimizer_bytecodes.c
Python/optimizer_cases.c.h
Python/specialize.c