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

Method reload

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

Source from the content-addressed store, hash-verified

538 self.spilled += 1
539
540 def reload(self, out: CWriter) -> None:
541 if self.spilled == 0:
542 raise StackError("Cannot reload stack as it hasn't been saved")
543 assert self.spilled > 0
544 self.spilled -= 1
545 if self.spilled == 0:
546 out.start_line()
547 out.emit_reload()
548
549 @staticmethod
550 def for_uop(stack: Stack, uop: Uop, out: CWriter, check_liveness: bool = True) -> "Storage":

Callers 2

close_variableMethod · 0.95
emit_reloadMethod · 0.45

Calls 3

StackErrorClass · 0.85
start_lineMethod · 0.80
emit_reloadMethod · 0.45

Tested by

no test coverage detected