Merged with tip.
[cacao.git] / src / vm / jit_interface.h
1 /* src/vm/jit_interface.h - prototypes of jit functions used in vm/ code
2
3    Copyright (C) 1996-2005, 2006, 2007, 2008
4    CACAOVM - Verein zur Foerderung der freien virtuellen Maschine CACAO
5
6    This file is part of CACAO.
7
8    This program is free software; you can redistribute it and/or
9    modify it under the terms of the GNU General Public License as
10    published by the Free Software Foundation; either version 2, or (at
11    your option) any later version.
12
13    This program is distributed in the hope that it will be useful, but
14    WITHOUT ANY WARRANTY; without even the implied warranty of
15    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16    General Public License for more details.
17
18    You should have received a copy of the GNU General Public License
19    along with this program; if not, write to the Free Software
20    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
21    02110-1301, USA.
22
23 */
24
25
26 #ifndef _JIT_INTERFACE
27 #define _JIT_INTERFACE
28
29 #include "config.h"
30 #include "vm/types.h"
31
32
33 /* These functions are used from vm/ but defined in vm/jit/ */
34
35 void code_free_code_of_method(methodinfo *m);
36
37 u1       *codegen_generate_stub_compiler(methodinfo *m);
38 codeinfo *codegen_generate_stub_native(methodinfo *m, functionptr f);
39
40 #if defined(ENABLE_INTRP)
41 u1 *intrp_createcompilerstub(methodinfo *m);
42 #endif
43
44 void removecompilerstub(u1 *stub);
45 void removenativestub(u1 *stub);
46
47 void jit_invalidate_code(methodinfo *m);
48
49 void md_param_alloc(methoddesc *md);
50 void md_param_alloc_native(methoddesc *md);
51
52 /* stub for throwing AbstractMethodError's */
53 #if defined(ENABLE_JIT)
54 void asm_abstractmethoderror(void);
55 #endif
56
57 #if defined(ENABLE_INTRP)
58 void intrp_asm_abstractmethoderror(void);
59 #endif
60
61 #endif /* _JIT_INTERFACE */
62
63
64 /*
65  * These are local overrides for various environment variables in Emacs.
66  * Please do not remove this and leave it at the end of the file, where
67  * Emacs will automagically detect them.
68  * ---------------------------------------------------------------------
69  * Local variables:
70  * mode: c
71  * indent-tabs-mode: t
72  * c-basic-offset: 4
73  * tab-width: 4
74  * End:
75  */