2 ** Trace compiler error messages.
3 ** Copyright (C) 2005-2014 Mike Pall. See Copyright Notice in luajit.h
6 /* This file may be included multiple times with different TREDEF macros. */
9 TREDEF(RECERR
, "error thrown or hook called during recording")
10 TREDEF(TRACEUV
, "trace too short")
11 TREDEF(TRACEOV
, "trace too long")
12 TREDEF(STACKOV
, "trace too deep")
13 TREDEF(SNAPOV
, "too many snapshots")
14 TREDEF(BLACKL
, "blacklisted")
15 TREDEF(NYIBC
, "NYI: bytecode %d")
17 /* Recording loop ops. */
18 TREDEF(LLEAVE
, "leaving loop in root trace")
19 TREDEF(LINNER
, "inner loop in root trace")
20 TREDEF(LUNROLL
, "loop unroll limit reached")
22 /* Recording calls/returns. */
23 TREDEF(BADTYPE
, "bad argument type")
24 TREDEF(CJITOFF
, "JIT compilation disabled for function")
25 TREDEF(CUNROLL
, "call unroll limit reached")
26 TREDEF(DOWNREC
, "down-recursion, restarting")
27 TREDEF(NYIFFU
, "NYI: unsupported variant of FastFunc %s")
28 TREDEF(NYIRETL
, "NYI: return to lower frame")
30 /* Recording indexed load/store. */
31 TREDEF(STORENN
, "store with nil or NaN key")
32 TREDEF(NOMM
, "missing metamethod")
33 TREDEF(IDXLOOP
, "looping index lookup")
34 TREDEF(NYITMIX
, "NYI: mixed sparse/dense table")
36 /* Recording C data operations. */
37 TREDEF(NOCACHE
, "symbol not in cache")
38 TREDEF(NYICONV
, "NYI: unsupported C type conversion")
39 TREDEF(NYICALL
, "NYI: unsupported C function type")
42 TREDEF(GFAIL
, "guard would always fail")
43 TREDEF(PHIOV
, "too many PHIs")
44 TREDEF(TYPEINS
, "persistent type instability")
47 TREDEF(MCODEAL
, "failed to allocate mcode memory")
48 TREDEF(MCODEOV
, "machine code too long")
49 TREDEF(MCODELM
, "hit mcode limit (retrying)")
50 TREDEF(SPILLOV
, "too many spill slots")
51 TREDEF(BADRA
, "inconsistent register allocation")
52 TREDEF(NYIIR
, "NYI: cannot assemble IR instruction %d")
53 TREDEF(NYIPHI
, "NYI: PHI shuffling too complex")
54 TREDEF(NYICOAL
, "NYI: register coalescing too complex")
58 /* Detecting unused error messages:
59 awk -F, '/^TREDEF/ { gsub(/TREDEF./, ""); printf "grep -q LJ_TRERR_%s *.[ch] || echo %s\n", $1, $1}' lj_traceerr.h | sh