* src/vm/jit/jit.cpp: Eliminate one instance of useless cache flushing.
[cacao.git] / src / vm / jit / argument.hpp
1 /* src/vm/jit/argument.hpp - argument passing from and to JIT methods
2
3    Copyright (C) 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 _VM_JIT_ARGUMENT_HPP
27 #define _VM_JIT_ARGUMENT_HPP
28
29 #include "config.h"
30
31 #include <stdint.h>
32
33 #include "vm/global.h"
34 #include "vm/method.hpp"
35
36
37 /* function prototypes ********************************************************/
38
39 imm_union argument_jitarray_load(methoddesc *md, int32_t index,
40                                                                  uint64_t *arg_regs, uint64_t *stack);
41 void      argument_jitarray_store(methoddesc *md, int32_t index,
42                                                                   uint64_t *arg_regs, uint64_t *stack,
43                                                                   imm_union param);
44
45 imm_union argument_jitreturn_load(methoddesc *md, uint64_t *return_regs);
46 void      argument_jitreturn_store(methoddesc *md, uint64_t *return_regs,
47                                                                    imm_union ret);
48
49 uint64_t *argument_vmarray_from_valist(methodinfo *m, java_handle_t *o,
50                                                                            va_list ap);
51 uint64_t *argument_vmarray_from_jvalue(methodinfo *m, java_handle_t *o,
52                                                                            const jvalue *args);
53 uint64_t *argument_vmarray_from_objectarray(methodinfo *m, java_handle_t *o,
54                                                                                         java_handle_objectarray_t *params);
55
56 #endif // _VM_JIT_ARGUMENT_HPP
57
58
59 /*
60  * These are local overrides for various environment variables in Emacs.
61  * Please do not remove this and leave it at the end of the file, where
62  * Emacs will automagically detect them.
63  * ---------------------------------------------------------------------
64  * Local variables:
65  * mode: c++
66  * indent-tabs-mode: t
67  * c-basic-offset: 4
68  * tab-width: 4
69  * End:
70  * vim:noexpandtab:sw=4:ts=4:
71  */