1 /* src/vm/jit_interface.h - prototypes of jit functions used in vm/ code
3 Copyright (C) 1996-2005, 2006, 2007, 2008
4 CACAOVM - Verein zur Foerderung der freien virtuellen Maschine CACAO
6 This file is part of CACAO.
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.
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.
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
26 #ifndef _JIT_INTERFACE
27 #define _JIT_INTERFACE
33 /* These functions are used from vm/ but defined in vm/jit/ */
35 void code_free_code_of_method(methodinfo *m);
37 u1 *codegen_generate_stub_compiler(methodinfo *m);
38 codeinfo *codegen_generate_stub_native(methodinfo *m, functionptr f);
40 #if defined(ENABLE_INTRP)
41 u1 *intrp_createcompilerstub(methodinfo *m);
44 void removecompilerstub(u1 *stub);
45 void removenativestub(u1 *stub);
47 void jit_invalidate_code(methodinfo *m);
49 void md_param_alloc(methoddesc *md);
50 void md_param_alloc_native(methoddesc *md);
52 /* stub for throwing AbstractMethodError's */
53 #if defined(ENABLE_JIT)
54 void asm_abstractmethoderror(void);
57 #if defined(ENABLE_INTRP)
58 void intrp_asm_abstractmethoderror(void);
61 #endif /* _JIT_INTERFACE */
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 * ---------------------------------------------------------------------