gh-119180: Add LOAD_COMMON_CONSTANT opcode (#119321) · devdanzin/cpython@98e855f · GitHub
Skip to content

Commit 98e855f

Browse files
pythongh-119180: Add LOAD_COMMON_CONSTANT opcode (python#119321)
The PEP 649 implementation will require a way to load NotImplementedError from the bytecode. @markshannon suggested implementing this by converting LOAD_ASSERTION_ERROR into a more general mechanism for loading constants. This PR adds this new opcode. I will work on the rest of the implementation of the PEP separately. Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
1 parent 506b1a3 commit 98e855f

22 files changed

Lines changed: 337 additions & 288 deletions

Doc/library/dis.rst

Lines changed: 5 additions & 4 deletions

Include/internal/pycore_opcode_metadata.h

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Include/internal/pycore_opcode_utils.h

Lines changed: 5 additions & 0 deletions

Include/internal/pycore_uop_ids.h

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Include/internal/pycore_uop_metadata.h

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Include/opcode_ids.h

Lines changed: 61 additions & 61 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)