2bd0e8b8b3af254500c39153d4ed046741be12eb
[cacao.git] / src / vm / jit / abi.h
1 /* src/vm/jit/abi.h - common ABI defines
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 _ABI_H
27 #define _ABI_H
28
29 #include "config.h"
30 #include "vm/types.h"
31
32 #include "arch.h"
33
34 #include "vm/jit/abi-asm.h"
35 #include "vm/jit/jit.hpp"
36 #include "vm/jit/stack.h"
37
38
39 /* ABI externs ****************************************************************/
40
41 extern s4 nregdescint[];
42 extern char *regs[];
43 extern s4 nregdescfloat[];
44
45 #if defined(HAS_ADDRESS_REGISTER_FILE)
46 extern s4 nregdescadr[];
47
48 extern const char *abi_registers_address_name[];
49 extern const s4    abi_registers_address_argument[];
50 extern const s4    abi_registers_address_saved[];
51 extern const s4    abi_registers_address_temporary[];
52 #endif
53
54 extern const char *abi_registers_integer_name[];
55 extern const s4    abi_registers_integer_argument[];
56 extern const s4    abi_registers_integer_saved[];
57 extern const s4    abi_registers_integer_temporary[];
58
59 extern const char *abi_registers_float_name[];
60 extern const s4    abi_registers_float_argument[];
61 extern const s4    abi_registers_float_saved[];
62 extern const s4    abi_registers_float_temporary[];
63
64
65 /* function prototypes ********************************************************/
66
67 #ifdef __cplusplus
68 extern "C" {
69 #endif
70
71 /* machine dependent descriptor function */
72 void md_param_alloc(methoddesc *md);
73 void md_param_alloc_native(methoddesc *md);
74
75 /* machine dependent return value handling function */
76 void md_return_alloc(jitdata *jd, stackelement_t *stackslot);
77
78 #ifdef __cplusplus
79 }
80 #endif
81
82 #endif /* _ABI_H */
83
84
85 /*
86  * These are local overrides for various environment variables in Emacs.
87  * Please do not remove this and leave it at the end of the file, where
88  * Emacs will automagically detect them.
89  * ---------------------------------------------------------------------
90  * Local variables:
91  * mode: c
92  * indent-tabs-mode: t
93  * c-basic-offset: 4
94  * tab-width: 4
95  * End:
96  */