diff options
author | Mike Pall <mike> | 2010-02-28 21:58:40 +0100 |
---|---|---|
committer | Mike Pall <mike> | 2010-02-28 21:58:40 +0100 |
commit | 8cc50cf6b1c791e9d7694b5f47dc03f9456d08e1 (patch) | |
tree | a0c1bcb22cf7fc88b4937c1b48da145aeec01686 /src/lj_gc.h | |
parent | 2e22d33d9d256e9a1551229f1b51e2a6f02da2f6 (diff) | |
download | luajit-8cc50cf6b1c791e9d7694b5f47dc03f9456d08e1.tar.gz luajit-8cc50cf6b1c791e9d7694b5f47dc03f9456d08e1.tar.bz2 luajit-8cc50cf6b1c791e9d7694b5f47dc03f9456d08e1.zip |
Conditionally compile functions that are unused with JIT disabled.
Diffstat (limited to 'src/lj_gc.h')
-rw-r--r-- | src/lj_gc.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lj_gc.h b/src/lj_gc.h index 49545c2e..3c4f2d24 100644 --- a/src/lj_gc.h +++ b/src/lj_gc.h | |||
@@ -46,7 +46,9 @@ LJ_FUNC void lj_gc_finalizeudata(lua_State *L); | |||
46 | LJ_FUNC void lj_gc_freeall(global_State *g); | 46 | LJ_FUNC void lj_gc_freeall(global_State *g); |
47 | LJ_FUNCA int LJ_FASTCALL lj_gc_step(lua_State *L); | 47 | LJ_FUNCA int LJ_FASTCALL lj_gc_step(lua_State *L); |
48 | LJ_FUNCA void LJ_FASTCALL lj_gc_step_fixtop(lua_State *L); | 48 | LJ_FUNCA void LJ_FASTCALL lj_gc_step_fixtop(lua_State *L); |
49 | #if LJ_HASJIT | ||
49 | LJ_FUNC void LJ_FASTCALL lj_gc_step_jit(lua_State *L, MSize steps); | 50 | LJ_FUNC void LJ_FASTCALL lj_gc_step_jit(lua_State *L, MSize steps); |
51 | #endif | ||
50 | LJ_FUNC void lj_gc_fullgc(lua_State *L); | 52 | LJ_FUNC void lj_gc_fullgc(lua_State *L); |
51 | 53 | ||
52 | /* GC check: drive collector forward if the GC threshold has been reached. */ | 54 | /* GC check: drive collector forward if the GC threshold has been reached. */ |
@@ -62,7 +64,9 @@ LJ_FUNC void lj_gc_barrierback(global_State *g, GCtab *t); | |||
62 | LJ_FUNC void lj_gc_barrierf(global_State *g, GCobj *o, GCobj *v); | 64 | LJ_FUNC void lj_gc_barrierf(global_State *g, GCobj *o, GCobj *v); |
63 | LJ_FUNCA void LJ_FASTCALL lj_gc_barrieruv(global_State *g, TValue *tv); | 65 | LJ_FUNCA void LJ_FASTCALL lj_gc_barrieruv(global_State *g, TValue *tv); |
64 | LJ_FUNC void lj_gc_closeuv(global_State *g, GCupval *uv); | 66 | LJ_FUNC void lj_gc_closeuv(global_State *g, GCupval *uv); |
67 | #if LJ_HASJIT | ||
65 | LJ_FUNC void lj_gc_barriertrace(global_State *g, void *T); | 68 | LJ_FUNC void lj_gc_barriertrace(global_State *g, void *T); |
69 | #endif | ||
66 | 70 | ||
67 | /* Barrier for stores to table objects. TValue and GCobj variant. */ | 71 | /* Barrier for stores to table objects. TValue and GCobj variant. */ |
68 | #define lj_gc_barriert(L, t, tv) \ | 72 | #define lj_gc_barriert(L, t, tv) \ |