* Removed all Id tags.
[cacao.git] / src / vm / jit / abi.h
1 /* src/vm/jit/abi.h - common ABI defines
2
3    Copyright (C) 1996-2005, 2006, 2007 R. Grafl, A. Krall, C. Kruegel,
4    C. Oates, R. Obermaisser, M. Platter, M. Probst, S. Ring,
5    E. Steiner, C. Thalinger, D. Thuernbeck, P. Tomsich, C. Ullrich,
6    J. Wenninger, Institut f. Computersprachen - TU Wien
7
8    This file is part of CACAO.
9
10    This program is free software; you can redistribute it and/or
11    modify it under the terms of the GNU General Public License as
12    published by the Free Software Foundation; either version 2, or (at
13    your option) any later version.
14
15    This program is distributed in the hope that it will be useful, but
16    WITHOUT ANY WARRANTY; without even the implied warranty of
17    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
18    General Public License for more details.
19
20    You should have received a copy of the GNU General Public License
21    along with this program; if not, write to the Free Software
22    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
23    02110-1301, USA.
24
25 */
26
27
28 #ifndef _ABI_H
29 #define _ABI_H
30
31 #include "config.h"
32 #include "vm/types.h"
33
34 #include "vm/jit/abi-asm.h"
35 #include "vm/jit/jit.h"
36
37 #include "arch.h"
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 /* machine dependent descriptor function */
68 void md_param_alloc(methoddesc *md);
69 void md_param_alloc_native(methoddesc *md);
70
71 /* machine dependent return value handling function */
72 void md_return_alloc(jitdata *jd, stackptr stackslot);
73
74 #endif /* _ABI_H */
75
76
77 /*
78  * These are local overrides for various environment variables in Emacs.
79  * Please do not remove this and leave it at the end of the file, where
80  * Emacs will automagically detect them.
81  * ---------------------------------------------------------------------
82  * Local variables:
83  * mode: c
84  * indent-tabs-mode: t
85  * c-basic-offset: 4
86  * tab-width: 4
87  * End:
88  */