diff options
author | Mike Pall <mike> | 2011-12-12 22:49:19 +0100 |
---|---|---|
committer | Mike Pall <mike> | 2011-12-12 23:10:46 +0100 |
commit | 10474987bd58a2183d848cc7ef40aa2d4e9125ba (patch) | |
tree | dce63a72e48b85750e06430cc838f6e7ba3d344b /src/lj_mcode.h | |
parent | 2d8f3d75dfae1839224cf0c726eef9cb3b77eaa3 (diff) | |
download | luajit-10474987bd58a2183d848cc7ef40aa2d4e9125ba.tar.gz luajit-10474987bd58a2183d848cc7ef40aa2d4e9125ba.tar.bz2 luajit-10474987bd58a2183d848cc7ef40aa2d4e9125ba.zip |
Move helper for syncing data/instruction cache to lj_mcode.c.
Sync caches after dynamic code generation for FFI callbacks.
Diffstat (limited to 'src/lj_mcode.h')
-rw-r--r-- | src/lj_mcode.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/lj_mcode.h b/src/lj_mcode.h index be1bdb5a..d11b6682 100644 --- a/src/lj_mcode.h +++ b/src/lj_mcode.h | |||
@@ -6,9 +6,16 @@ | |||
6 | #ifndef _LJ_MCODE_H | 6 | #ifndef _LJ_MCODE_H |
7 | #define _LJ_MCODE_H | 7 | #define _LJ_MCODE_H |
8 | 8 | ||
9 | #include "lj_jit.h" | 9 | #include "lj_obj.h" |
10 | |||
11 | #if LJ_HASJIT || LJ_HASFFI | ||
12 | LJ_FUNC void lj_mcode_sync(void *start, void *end); | ||
13 | #endif | ||
10 | 14 | ||
11 | #if LJ_HASJIT | 15 | #if LJ_HASJIT |
16 | |||
17 | #include "lj_jit.h" | ||
18 | |||
12 | LJ_FUNC void lj_mcode_free(jit_State *J); | 19 | LJ_FUNC void lj_mcode_free(jit_State *J); |
13 | LJ_FUNC MCode *lj_mcode_reserve(jit_State *J, MCode **lim); | 20 | LJ_FUNC MCode *lj_mcode_reserve(jit_State *J, MCode **lim); |
14 | LJ_FUNC void lj_mcode_commit(jit_State *J, MCode *m); | 21 | LJ_FUNC void lj_mcode_commit(jit_State *J, MCode *m); |