diff options
author | Mike Pall <mike> | 2009-12-08 19:46:35 +0100 |
---|---|---|
committer | Mike Pall <mike> | 2009-12-08 19:46:35 +0100 |
commit | 55b16959717084884fd4a0cbae6d19e3786c20c7 (patch) | |
tree | c8a07a43c13679751ed25a9d06796e9e7b2134a6 /src/lj_traceerr.h | |
download | luajit-2.0.0-beta1.tar.gz luajit-2.0.0-beta1.tar.bz2 luajit-2.0.0-beta1.zip |
RELEASE LuaJIT-2.0.0-beta1v2.0.0-beta1
Diffstat (limited to '')
-rw-r--r-- | src/lj_traceerr.h | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/src/lj_traceerr.h b/src/lj_traceerr.h new file mode 100644 index 00000000..2c8347b0 --- /dev/null +++ b/src/lj_traceerr.h | |||
@@ -0,0 +1,59 @@ | |||
1 | /* | ||
2 | ** Trace compiler error messages. | ||
3 | ** Copyright (C) 2005-2009 Mike Pall. See Copyright Notice in luajit.h | ||
4 | */ | ||
5 | |||
6 | /* This file may be included multiple times with different TREDEF macros. */ | ||
7 | |||
8 | /* Recording. */ | ||
9 | TREDEF(RECERR, "error thrown or hook called during recording") | ||
10 | TREDEF(TRACEOV, "trace too long") | ||
11 | TREDEF(STACKOV, "trace too deep") | ||
12 | TREDEF(SNAPOV, "too many snapshots") | ||
13 | TREDEF(NYIBC, "NYI: bytecode %d") | ||
14 | |||
15 | /* Recording loop ops. */ | ||
16 | TREDEF(LLEAVE, "leaving loop in root trace") | ||
17 | TREDEF(LINNER, "inner loop in root trace") | ||
18 | TREDEF(LUNROLL, "loop unroll limit reached") | ||
19 | TREDEF(LBLACKL, "blacklisted loop") | ||
20 | |||
21 | /* Recording calls/returns. */ | ||
22 | TREDEF(BADTYPE, "bad argument type") | ||
23 | TREDEF(CJITOFF, "call to JIT-disabled function") | ||
24 | TREDEF(CUNROLL, "call unroll limit reached") | ||
25 | TREDEF(NYIRECU, "NYI: recursive calls") | ||
26 | TREDEF(NYILNKF, "NYI: linking/patching function calls") | ||
27 | TREDEF(NYIVF, "NYI: vararg function") | ||
28 | TREDEF(NYICF, "NYI: C function %p") | ||
29 | TREDEF(NYIFF, "NYI: FastFunc %s") | ||
30 | TREDEF(NYIFFU, "NYI: unsupported variant of FastFunc %s") | ||
31 | TREDEF(NYIRETL, "NYI: return to lower frame") | ||
32 | |||
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") | ||
38 | |||
39 | /* Optimizations. */ | ||
40 | TREDEF(GFAIL, "guard would always fail") | ||
41 | TREDEF(PHIOV, "too many PHIs") | ||
42 | TREDEF(TYPEINS, "persistent type instability") | ||
43 | |||
44 | /* Assembler. */ | ||
45 | TREDEF(MCODEAL, "failed to allocate mcode memory") | ||
46 | TREDEF(MCODEOV, "machine code too long") | ||
47 | TREDEF(MCODELM, "hit mcode limit (retrying)") | ||
48 | TREDEF(SPILLOV, "too many spill slots") | ||
49 | TREDEF(BADRA, "inconsistent register allocation") | ||
50 | TREDEF(NYIIR, "NYI: cannot assemble IR instruction %d") | ||
51 | TREDEF(NYIPHI, "NYI: PHI shuffling too complex") | ||
52 | TREDEF(NYICOAL, "NYI: register coalescing too complex") | ||
53 | TREDEF(NYIGCF, "NYI: gcstep sync with frames") | ||
54 | |||
55 | #undef TREDEF | ||
56 | |||
57 | /* Detecting unused error messages: | ||
58 | awk -F, '/^TREDEF/ { gsub(/TREDEF./, ""); printf "grep -q LJ_TRERR_%s *.[ch] || echo %s\n", $1, $1}' lj_traceerr.h | sh | ||
59 | */ | ||