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

Method stack_bound_check

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

Source from the content-addressed store, hash-verified

324 var_offset = var_offset.push(var.item)
325
326 def stack_bound_check(self, out: CWriter) -> None:
327 if not self.check_stack_bounds:
328 return
329 if self.physical_sp != self.logical_sp:
330 diff = self.logical_sp - self.physical_sp
331 out.start_line()
332 out.emit(f"CHECK_STACK_BOUNDS({diff});\n")
333
334 def flush(self, out: CWriter) -> None:
335 self._print(out)

Callers 1

flushMethod · 0.95

Calls 2

start_lineMethod · 0.80
emitMethod · 0.45

Tested by

no test coverage detected