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