1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/*
* jit-init.h - Initialization routines for the JIT.
*
* Copyright (C) 2004 Southern Storm Software, Pty Ltd.
*
* The libjit library is free software: you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* as published by the Free Software Foundation, either version 2.1 of
* the License, or (at your option) any later version.
*
* The libjit library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with the libjit library. If not, see
* <http://www.gnu.org/licenses/>.
*/
#ifndef _JIT_INIT_H
#define _JIT_INIT_H
#include <jit/jit-defs.h>
#ifdef __cplusplus
extern "C" {
#endif
void jit_init(void) JIT_NOTHROW;
int jit_uses_interpreter(void) JIT_NOTHROW;
int jit_supports_threads(void) JIT_NOTHROW;
int jit_supports_virtual_memory(void) JIT_NOTHROW;
int jit_supports_closures(void);
unsigned int jit_get_closure_size(void);
unsigned int jit_get_closure_alignment(void);
unsigned int jit_get_trampoline_size(void);
unsigned int jit_get_trampoline_alignment(void);
#ifdef __cplusplus
};
#endif
#endif /* _JIT_INIT_H */