aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/luajit-2.0/src/lj_traceerr.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--libraries/luajit-2.0/src/lj_traceerr.h61
1 files changed, 61 insertions, 0 deletions
diff --git a/libraries/luajit-2.0/src/lj_traceerr.h b/libraries/luajit-2.0/src/lj_traceerr.h
new file mode 100644
index 0000000..756330e
--- /dev/null
+++ b/libraries/luajit-2.0/src/lj_traceerr.h
@@ -0,0 +1,61 @@
1/*
2** Trace compiler error messages.
3** Copyright (C) 2005-2011 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. */
9TREDEF(RECERR, "error thrown or hook called during recording")
10TREDEF(TRACEOV, "trace too long")
11TREDEF(STACKOV, "trace too deep")
12TREDEF(SNAPOV, "too many snapshots")
13TREDEF(BLACKL, "blacklisted")
14TREDEF(NYIBC, "NYI: bytecode %d")
15
16/* Recording loop ops. */
17TREDEF(LLEAVE, "leaving loop in root trace")
18TREDEF(LINNER, "inner loop in root trace")
19TREDEF(LUNROLL, "loop unroll limit reached")
20
21/* Recording calls/returns. */
22TREDEF(BADTYPE, "bad argument type")
23TREDEF(CJITOFF, "call to JIT-disabled function")
24TREDEF(CUNROLL, "call unroll limit reached")
25TREDEF(DOWNREC, "down-recursion, restarting")
26TREDEF(NYICF, "NYI: C function %p")
27TREDEF(NYIFF, "NYI: FastFunc %s")
28TREDEF(NYIFFU, "NYI: unsupported variant of FastFunc %s")
29TREDEF(NYIRETL, "NYI: return to lower frame")
30
31/* Recording indexed load/store. */
32TREDEF(STORENN, "store with nil or NaN key")
33TREDEF(NOMM, "missing metamethod")
34TREDEF(IDXLOOP, "looping index lookup")
35TREDEF(NYITMIX, "NYI: mixed sparse/dense table")
36
37/* Recording C data operations. */
38TREDEF(NOCACHE, "symbol not in cache")
39TREDEF(NYICONV, "NYI: unsupported C type conversion")
40TREDEF(NYICALL, "NYI: unsupported C function type")
41
42/* Optimizations. */
43TREDEF(GFAIL, "guard would always fail")
44TREDEF(PHIOV, "too many PHIs")
45TREDEF(TYPEINS, "persistent type instability")
46
47/* Assembler. */
48TREDEF(MCODEAL, "failed to allocate mcode memory")
49TREDEF(MCODEOV, "machine code too long")
50TREDEF(MCODELM, "hit mcode limit (retrying)")
51TREDEF(SPILLOV, "too many spill slots")
52TREDEF(BADRA, "inconsistent register allocation")
53TREDEF(NYIIR, "NYI: cannot assemble IR instruction %d")
54TREDEF(NYIPHI, "NYI: PHI shuffling too complex")
55TREDEF(NYICOAL, "NYI: register coalescing too complex")
56
57#undef TREDEF
58
59/* Detecting unused error messages:
60 awk -F, '/^TREDEF/ { gsub(/TREDEF./, ""); printf "grep -q LJ_TRERR_%s *.[ch] || echo %s\n", $1, $1}' lj_traceerr.h | sh
61*/