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

Method stack_pointer

Tools/cases_generator/generators_common.py:448–459  ·  view source on GitHub ↗
(
        self,
        tkn: Token,
        tkn_iter: TokenIterator,
        uop: CodeSection,
        storage: Storage,
        inst: Instruction | None,
    )

Source from the content-addressed store, hash-verified

446 return True
447
448 def stack_pointer(
449 self,
450 tkn: Token,
451 tkn_iter: TokenIterator,
452 uop: CodeSection,
453 storage: Storage,
454 inst: Instruction | None,
455 ) -> bool:
456 if storage.spilled:
457 raise analysis_error("stack_pointer is invalid when stack is spilled to memory", tkn)
458 self.emit(tkn)
459 return True
460
461 def goto_label(self, goto: Token, label: Token, storage: Storage) -> None:
462 if label.text not in self.labels:

Callers

nothing calls this directly

Calls 2

emitMethod · 0.95
analysis_errorFunction · 0.90

Tested by

no test coverage detected