mirror of
https://github.com/python/cpython.git
synced 2025-09-20 07:31:10 +00:00
GH-112354: _GUARD_IS_TRUE_POP
side-exits to target the next instruction, not themselves. (GH-114078)
This commit is contained in:
parent
2010d45327
commit
ac10947ba7
8 changed files with 40 additions and 26 deletions
|
@ -169,6 +169,7 @@ class Stack:
|
|||
return ""
|
||||
|
||||
def flush(self, out: CWriter) -> None:
|
||||
out.start_line()
|
||||
for var in self.variables:
|
||||
if not var.peek:
|
||||
cast = "(PyObject *)" if var.type else ""
|
||||
|
@ -189,6 +190,7 @@ class Stack:
|
|||
self.base_offset.clear()
|
||||
self.top_offset.clear()
|
||||
self.peek_offset.clear()
|
||||
out.start_line()
|
||||
|
||||
def as_comment(self) -> str:
|
||||
return f"/* Variables: {[v.name for v in self.variables]}. Base offset: {self.base_offset.to_c()}. Top offset: {self.top_offset.to_c()} */"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue