MCPcopy Index your code
hub / github.com/python/cpython / flush

Method flush

Tools/cases_generator/stack.py:334–339  ·  view source on GitHub ↗
(self, out: CWriter)

Source from the content-addressed store, hash-verified

332 out.emit(f"CHECK_STACK_BOUNDS({diff});\n")
333
334 def flush(self, out: CWriter) -> None:
335 self._print(out)
336 self.stack_bound_check(out)
337 self.save_variables(out)
338 self._save_physical_sp(out)
339 out.start_line()
340
341 def is_flushed(self) -> bool:
342 for var in self.variables:

Callers 15

clearMethod · 0.95
generate_tier1_casesFunction · 0.95
emit_saveMethod · 0.45
write_uopFunction · 0.45
flushMethod · 0.45
save_inputsMethod · 0.45
close_inputsMethod · 0.45
goto_errorMethod · 0.45
exit_ifMethod · 0.45
tier2_to_tier2Method · 0.45
exit_if_afterMethod · 0.45

Calls 5

_printMethod · 0.95
stack_bound_checkMethod · 0.95
save_variablesMethod · 0.95
_save_physical_spMethod · 0.95
start_lineMethod · 0.80

Tested by

no test coverage detected