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

Method sync_sp

Tools/cases_generator/generators_common.py:432–446  ·  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

430 return True
431
432 def sync_sp(
433 self,
434 tkn: Token,
435 tkn_iter: TokenIterator,
436 uop: CodeSection,
437 storage: Storage,
438 inst: Instruction | None,
439 ) -> bool:
440 next(tkn_iter)
441 next(tkn_iter)
442 next(tkn_iter)
443 storage.clear_inputs("when syncing stack")
444 storage.flush(self.out)
445 storage.stack.clear(self.out)
446 return True
447
448 def stack_pointer(
449 self,

Callers

nothing calls this directly

Calls 3

clear_inputsMethod · 0.80
flushMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected