mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
GH-131498: Another refactoring of the code generator (GH-131827)
* Rename 'defined' attribute to 'in_local' to more accurately reflect how it is used * Make death of variables explicit even for array variables. * Convert in_memory from boolean to stack offset * Don't apply liveness analyis to optimizer generated code * Add 'out' parameter to stack.pop
This commit is contained in:
parent
ba11f45dd9
commit
c535a132e4
11 changed files with 206 additions and 212 deletions
|
@ -205,9 +205,9 @@ class Emitter:
|
|||
next(tkn_iter) # Semi colon
|
||||
storage.clear_inputs("at ERROR_IF")
|
||||
|
||||
c_offset = storage.stack.peek_offset()
|
||||
c_offset = storage.stack.sp_offset()
|
||||
try:
|
||||
offset = -int(c_offset)
|
||||
offset = int(c_offset)
|
||||
except ValueError:
|
||||
offset = -1
|
||||
self.out.emit(self.goto_error(offset, label, storage))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue