mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
GH-125837: Split LOAD_CONST
into three. (GH-125972)
* Add LOAD_CONST_IMMORTAL opcode * Add LOAD_SMALL_INT opcode * Remove RETURN_CONST opcode
This commit is contained in:
parent
67f5c5bd6f
commit
faa3272fb8
33 changed files with 706 additions and 538 deletions
|
@ -388,6 +388,9 @@ class EmbeddingTests(EmbeddingTestsMixin, unittest.TestCase):
|
|||
opname in opcode._specialized_opmap
|
||||
# Exclude superinstructions:
|
||||
and "__" not in opname
|
||||
# LOAD_CONST_IMMORTAL is "specialized", but is
|
||||
# inserted during quickening.
|
||||
and opname != "LOAD_CONST_IMMORTAL"
|
||||
):
|
||||
return True
|
||||
return False
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue