Debian Codegraph @

rpython/jit/metainterp/optimize.py

raw symbols SCIP
1 from rpython.rlib.debug import debug_start, debug_stop, debug_print
2 from rpython.jit.metainterp.jitexc import JitException
3
4
5 class InvalidLoop(JitException):
6 """Raised when the optimize*.py detect that the loop that
7 we are trying to build cannot possibly make sense as a
8 long-running loop (e.g. it cannot run 2 complete iterations)."""
9
10 def __init__(self, msg='?'):
11 debug_start("jit-abort")
12 debug_print(msg)
13 debug_stop("jit-abort")
14 self.msg = msg
15
16 class SpeculativeError(JitException):
17 """Raised when speculative heap access would be ill-typed,
18 which should only occur when optimizing the unrolled loop."""