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

Method dispatch

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

140 self.jump_prefix = jump_prefix
141
142 def dispatch(
143 self,
144 tkn: Token,
145 tkn_iter: TokenIterator,
146 uop: CodeSection,
147 storage: Storage,
148 inst: Instruction | None,
149 ) -> bool:
150 if storage.spilled:
151 raise analysis_error("stack_pointer needs reloading before dispatch", tkn)
152 storage.stack.flush(self.out)
153 self.emit(tkn)
154 return False
155
156 def unreachable(
157 self,

Callers

nothing calls this directly

Calls 3

emitMethod · 0.95
analysis_errorFunction · 0.90
flushMethod · 0.45

Tested by

no test coverage detected