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

Method goto_error

Tools/cases_generator/tier2_generator.py:73–80  ·  view source on GitHub ↗
(self, offset: int, storage: Storage)

Source from the content-addressed store, hash-verified

71 self.exit_cache_depth = exit_cache_depth
72
73 def goto_error(self, offset: int, storage: Storage) -> str:
74 # To do: Add jump targets for popping values.
75 if offset != 0:
76 storage.copy().flush(self.out)
77 else:
78 storage.stack.copy().flush(self.out)
79 self.emit("SET_CURRENT_CACHED_VALUES(0);\n")
80 return "JUMP_TO_ERROR();"
81
82 def exit_if(
83 self,

Callers

nothing calls this directly

Calls 3

flushMethod · 0.45
copyMethod · 0.45
emitMethod · 0.45

Tested by

no test coverage detected