* src/vmcore/descriptor.c (vm/jit/abi.h): Added.
[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 7329 2007-02-11 21:24:14Z twisti $
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
40 /* ABI externs ****************************************************************/
41
42 extern s4 nregdescint[];
43 extern char *regs[];
44 extern s4 nregdescfloat[];
45
46 extern const char *abi_registers_integer_name[];
47 extern const s4    abi_registers_integer_argument[];
48 extern const s4    abi_registers_integer_saved[];
49 extern const s4    abi_registers_integer_temporary[];
50
51 extern const char *abi_registers_float_name[];
52 extern const s4    abi_registers_float_argument[];
53 extern const s4    abi_registers_float_saved[];
54 extern const s4    abi_registers_float_temporary[];
55
56
57 /* function prototypes ********************************************************/
58
59 /* machine dependent descriptor function */
60 void md_param_alloc(methoddesc *md);
61 void md_param_alloc_native(methoddesc *md);
62
63 /* machine dependent return value handling function */
64 void md_return_alloc(jitdata *jd, stackptr stackslot);
65
66 #endif /* _ABI_H */
67
68
69 /*
70  * These are local overrides for various environment variables in Emacs.
71  * Please do not remove this and leave it at the end of the file, where
72  * Emacs will automagically detect them.
73  * ---------------------------------------------------------------------
74  * Local variables:
75  * mode: c
76  * indent-tabs-mode: t
77  * c-basic-offset: 4
78  * tab-width: 4
79  * End:
80  */