2 ** Trace compiler error messages.
3 ** Copyright (C) 2005-2015 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(RETRY
, "retry recording")
16 TREDEF(NYIBC
, "NYI: bytecode %d")
18 /* Recording loop ops. */
19 TREDEF(LLEAVE
, "leaving loop in root trace")
20 TREDEF(LINNER
, "inner loop in root trace")
21 TREDEF(LUNROLL
, "loop unroll limit reached")
23 /* Recording calls/returns. */
24 TREDEF(BADTYPE
, "bad argument type")
25 TREDEF(CJITOFF
, "JIT compilation disabled for function")
26 TREDEF(CUNROLL
, "call unroll limit reached")
27 TREDEF(DOWNREC
, "down-recursion, restarting")
28 TREDEF(NYICF
, "NYI: C function %s")
29 TREDEF(NYIFF
, "NYI: FastFunc %s")
30 TREDEF(NYIFFU
, "NYI: unsupported variant of FastFunc %s")
31 TREDEF(NYIRETL
, "NYI: return to lower frame")
33 /* Recording indexed load/store. */
34 TREDEF(STORENN
, "store with nil or NaN key")
35 TREDEF(NOMM
, "missing metamethod")
36 TREDEF(IDXLOOP
, "looping index lookup")
37 TREDEF(NYITMIX
, "NYI: mixed sparse/dense table")
39 /* Recording C data operations. */
40 TREDEF(NOCACHE
, "symbol not in cache")
41 TREDEF(NYICONV
, "NYI: unsupported C type conversion")
42 TREDEF(NYICALL
, "NYI: unsupported C function type")
45 TREDEF(GFAIL
, "guard would always fail")
46 TREDEF(PHIOV
, "too many PHIs")
47 TREDEF(TYPEINS
, "persistent type instability")
50 TREDEF(MCODEAL
, "failed to allocate mcode memory")
51 TREDEF(MCODEOV
, "machine code too long")
52 TREDEF(MCODELM
, "hit mcode limit (retrying)")
53 TREDEF(SPILLOV
, "too many spill slots")
54 TREDEF(BADRA
, "inconsistent register allocation")
55 TREDEF(NYIIR
, "NYI: cannot assemble IR instruction %d")
56 TREDEF(NYIPHI
, "NYI: PHI shuffling too complex")
57 TREDEF(NYICOAL
, "NYI: register coalescing too complex")
61 /* Detecting unused error messages:
62 awk -F, '/^TREDEF/ { gsub(/TREDEF./, ""); printf "grep -q LJ_TRERR_%s *.[ch] || echo %s\n", $1, $1}' lj_traceerr.h | sh