Fix 32/64 bit portability issue with upval->v.
[luajit-2.0/celess22.git] / src / lj_mcode.h
blob27a8c9497450ae0f8cee7cc6f12d25d0fac5477d
1 /*
2 ** Machine code management.
3 ** Copyright (C) 2005-2010 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