summaryrefslogtreecommitdiff
path: root/src/lj_mcode.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/lj_mcode.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/lj_mcode.h b/src/lj_mcode.h
new file mode 100644
index 00000000..d4573bf4
--- /dev/null
+++ b/src/lj_mcode.h
@@ -0,0 +1,23 @@
1/*
2** Machine code management.
3** Copyright (C) 2005-2009 Mike Pall. See Copyright Notice in luajit.h
4*/
5
6#ifndef _LJ_MCODE_H
7#define _LJ_MCODE_H
8
9#include "lj_jit.h"
10
11#if LJ_HASJIT
12LJ_FUNC void lj_mcode_free(jit_State *J);
13LJ_FUNC MCode *lj_mcode_reserve(jit_State *J, MCode **lim);
14LJ_FUNC void lj_mcode_commit(jit_State *J, MCode *m);
15LJ_FUNC void lj_mcode_abort(jit_State *J);
16LJ_FUNC MCode *lj_mcode_patch(jit_State *J, MCode *ptr, int finish);
17LJ_FUNC_NORET void lj_mcode_limiterr(jit_State *J, size_t need);
18
19#define lj_mcode_commitbot(J, m) (J->mcbot = (m))
20
21#endif
22
23#endif