diff options
author | David Walter Seikel | 2012-01-23 23:36:30 +1000 |
---|---|---|
committer | David Walter Seikel | 2012-01-23 23:36:30 +1000 |
commit | 6523585c66c04cea54df50013df8886b589847d8 (patch) | |
tree | 0b22aee7064166d88595eda260ca2d17c0773da5 /libraries/luajit-2.0/src/lj_record.h | |
parent | Update the EFL to what I'm actually using, coz I'm using some stuff not yet r... (diff) | |
download | SledjHamr-6523585c66c04cea54df50013df8886b589847d8.zip SledjHamr-6523585c66c04cea54df50013df8886b589847d8.tar.gz SledjHamr-6523585c66c04cea54df50013df8886b589847d8.tar.bz2 SledjHamr-6523585c66c04cea54df50013df8886b589847d8.tar.xz |
Add luaproc and LuaJIT libraries.
Two versions of LuaJIT, the stable release, and the dev version. Try the dev version first, until ih fails badly.
Diffstat (limited to 'libraries/luajit-2.0/src/lj_record.h')
-rw-r--r-- | libraries/luajit-2.0/src/lj_record.h | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/libraries/luajit-2.0/src/lj_record.h b/libraries/luajit-2.0/src/lj_record.h new file mode 100644 index 0000000..186a25f --- /dev/null +++ b/libraries/luajit-2.0/src/lj_record.h | |||
@@ -0,0 +1,43 @@ | |||
1 | /* | ||
2 | ** Trace recorder (bytecode -> SSA IR). | ||
3 | ** Copyright (C) 2005-2011 Mike Pall. See Copyright Notice in luajit.h | ||
4 | */ | ||
5 | |||
6 | #ifndef _LJ_RECORD_H | ||
7 | #define _LJ_RECORD_H | ||
8 | |||
9 | #include "lj_obj.h" | ||
10 | #include "lj_jit.h" | ||
11 | |||
12 | #if LJ_HASJIT | ||
13 | /* Context for recording an indexed load/store. */ | ||
14 | typedef struct RecordIndex { | ||
15 | TValue tabv; /* Runtime value of table (or indexed object). */ | ||
16 | TValue keyv; /* Runtime value of key. */ | ||
17 | TValue valv; /* Runtime value of stored value. */ | ||
18 | TValue mobjv; /* Runtime value of metamethod object. */ | ||
19 | GCtab *mtv; /* Runtime value of metatable object. */ | ||
20 | cTValue *oldv; /* Runtime value of previously stored value. */ | ||
21 | TRef tab; /* Table (or indexed object) reference. */ | ||
22 | TRef key; /* Key reference. */ | ||
23 | TRef val; /* Value reference for a store or 0 for a load. */ | ||
24 | TRef mt; /* Metatable reference. */ | ||
25 | TRef mobj; /* Metamethod object reference. */ | ||
26 | int idxchain; /* Index indirections left or 0 for raw lookup. */ | ||
27 | } RecordIndex; | ||
28 | |||
29 | LJ_FUNC int lj_record_objcmp(jit_State *J, TRef a, TRef b, | ||
30 | cTValue *av, cTValue *bv); | ||
31 | |||
32 | LJ_FUNC void lj_record_call(jit_State *J, BCReg func, ptrdiff_t nargs); | ||
33 | LJ_FUNC void lj_record_tailcall(jit_State *J, BCReg func, ptrdiff_t nargs); | ||
34 | LJ_FUNC void lj_record_ret(jit_State *J, BCReg rbase, ptrdiff_t gotresults); | ||
35 | |||
36 | LJ_FUNC int lj_record_mm_lookup(jit_State *J, RecordIndex *ix, MMS mm); | ||
37 | LJ_FUNC TRef lj_record_idx(jit_State *J, RecordIndex *ix); | ||
38 | |||
39 | LJ_FUNC void lj_record_ins(jit_State *J); | ||
40 | LJ_FUNC void lj_record_setup(jit_State *J); | ||
41 | #endif | ||
42 | |||
43 | #endif | ||