mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
gh-134889: Fix handling of a few opcodes when optimizing LOAD_FAST
(#134958)
We were incorrectly handling a few opcodes that leave their operands on the stack. Treat all of these conservatively; assume that they always leave operands on the stack.
This commit is contained in:
parent
e598eecf4c
commit
6b77af257c
5 changed files with 117 additions and 2 deletions
|
@ -606,7 +606,7 @@ dis_asyncwith = """\
|
|||
POP_TOP
|
||||
L1: RESUME 0
|
||||
|
||||
%4d LOAD_FAST_BORROW 0 (c)
|
||||
%4d LOAD_FAST 0 (c)
|
||||
COPY 1
|
||||
LOAD_SPECIAL 3 (__aexit__)
|
||||
SWAP 2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue