mirror of
https://github.com/python/cpython.git
synced 2025-07-31 23:23:11 +00:00
Overhaul Lib/compiler block ordering. The previous code was filled with
hacks. The new code is based on issue #2472 posted by Antoine Pitrou. I did some further cleanups of the pyassem code and optimized the block ordering pass.
This commit is contained in:
parent
0d6705b234
commit
4db626f95d
2 changed files with 97 additions and 159 deletions
|
@ -671,7 +671,7 @@ class CodeGenerator:
|
|||
self.startBlock(anchor)
|
||||
self.emit('POP_BLOCK')
|
||||
self.setups.pop()
|
||||
self.startBlock(end)
|
||||
self.nextBlock(end)
|
||||
|
||||
self.emit('LOAD_CONST', None)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue