Skip to content

Commit ba530f6

Browse files
committed
Fixup generated cases test
1 parent 234cfd2 commit ba530f6

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

Tools/cases_generator/stack.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
UNUSED = {"unused"}
88

99
# Set this to true for voluminous output showing state of stack and locals
10-
PRINT_STACKS = 1 # False
10+
PRINT_STACKS = False
1111

1212
def maybe_parenthesize(sym: str) -> str:
1313
"""Add parentheses around a string if it contains an operator
@@ -321,7 +321,7 @@ def save_variables(self, out: CWriter) -> None:
321321
var.memory_offset = var_offset
322322
stack_offset = var_offset - self.physical_sp
323323
Stack._do_emit(out, var.item, stack_offset, self.cast_type, self.extract_bits)
324-
out.emit(self.as_comment() + "\n")
324+
self._print(out)
325325
var_offset = var_offset.push(var.item)
326326

327327
def flush(self, out: CWriter) -> None:

Tools/cases_generator/tier1_generator.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,8 +224,6 @@ def generate_tier1_cases(
224224
out.emit("\n")
225225
out.emit(f"TARGET({name}) {{\n")
226226
popped = get_popped(inst, analysis)
227-
if inst.name != "INTERPRETER_EXIT":
228-
out.emit(f"assert(STACK_LEVEL() - {popped} >= -1);\n")
229227
# We need to ifdef it because this breaks platforms
230228
# without computed gotos/tail calling.
231229
out.emit(f"#if Py_TAIL_CALL_INTERP\n")

0 commit comments

Comments
 (0)