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

Method save_variables

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

Source from the content-addressed store, hash-verified

308 self._print(out)
309
310 def save_variables(self, out: CWriter) -> None:
311 out.start_line()
312 var_offset = self.base_offset
313 for var in self.variables:
314 if (
315 var.in_local and
316 not var.memory_offset and
317 not var.is_array()
318 ):
319 self._print(out)
320 var.memory_offset = var_offset
321 stack_offset = var_offset - self.physical_sp
322 Stack._do_emit(out, var.item, stack_offset)
323 self._print(out)
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:

Callers 2

flushMethod · 0.95
close_namedMethod · 0.80

Calls 5

_printMethod · 0.95
start_lineMethod · 0.80
_do_emitMethod · 0.80
is_arrayMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected