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

Method push_cache

Tools/cases_generator/stack.py:226–230  ·  view source on GitHub ↗
(self, cached_items:list[str], out: CWriter)

Source from the content-addressed store, hash-verified

224 self.check_stack_bounds = check_stack_bounds
225
226 def push_cache(self, cached_items:list[str], out: CWriter) -> None:
227 for i, name in enumerate(cached_items):
228 out.start_line()
229 out.emit(f"_PyStackRef _stack_item_{i} = {name};\n")
230 self.push(Local.register(f"_stack_item_{i}"))
231
232 def drop(self, var: StackItem, check_liveness: bool) -> None:
233 self.logical_sp = self.logical_sp.pop(var)

Callers 1

generate_tier2Function · 0.95

Calls 5

pushMethod · 0.95
enumerateFunction · 0.85
start_lineMethod · 0.80
emitMethod · 0.45
registerMethod · 0.45

Tested by

no test coverage detected