FFI: Add unwind definitions for lj_vm_ffi_call.
[luajit-2.0/celess22.git] / src / lj_mcode.h
blobbe1bdb5aa37b30461e334e986c0f829448e09d02
1 /*
2 ** Machine code management.
3 ** Copyright (C) 2005-2011 Mike Pall. See Copyright Notice in luajit.h
4 */
6 #ifndef _LJ_MCODE_H
7 #define _LJ_MCODE_H
9 #include "lj_jit.h"
11 #if LJ_HASJIT
12 LJ_FUNC void lj_mcode_free(jit_State *J);
13 LJ_FUNC MCode *lj_mcode_reserve(jit_State *J, MCode **lim);
14 LJ_FUNC void lj_mcode_commit(jit_State *J, MCode *m);
15 LJ_FUNC void lj_mcode_abort(jit_State *J);
16 LJ_FUNC MCode *lj_mcode_patch(jit_State *J, MCode *ptr, int finish);
17 LJ_FUNC_NORET void lj_mcode_limiterr(jit_State *J, size_t need);
19 #define lj_mcode_commitbot(J, m) (J->mcbot = (m))
21 #endif
23 #endif