mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
GH-128685: Specialize (rather than quicken) LOAD_CONST into LOAD_CONST_[IM]MORTAL (GH-128708)
This commit is contained in:
parent
29fe8072cf
commit
ddd959987c
14 changed files with 121 additions and 65 deletions
|
|
@ -892,7 +892,7 @@ dis_loop_test_quickened_code = """\
|
|||
%3d RESUME_CHECK 0
|
||||
|
||||
%3d BUILD_LIST 0
|
||||
LOAD_CONST 0 ((1, 2, 3))
|
||||
LOAD_CONST_MORTAL 0 ((1, 2, 3))
|
||||
LIST_EXTEND 1
|
||||
LOAD_SMALL_INT 3
|
||||
BINARY_OP 5 (*)
|
||||
|
|
@ -2548,7 +2548,7 @@ class TestDisCLI(unittest.TestCase):
|
|||
expect = '''
|
||||
0 RESUME 0
|
||||
|
||||
1 LOAD_CONST_IMMORTAL 0 (None)
|
||||
1 LOAD_CONST 0 (None)
|
||||
RETURN_VALUE
|
||||
'''
|
||||
for flag in ['-S', '--specialized']:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue