CACAO
md-asm.hpp
Go to the documentation of this file.
1 /* src/vm/jit/i386/solaris/md-asm.hpp - assembler defines for i386 ABI
2 
3  Copyright (C) 1996-2013
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 MD_ASM_HPP_
27 #define MD_ASM_HPP_ 1
28 
29 /* register defines ***********************************************************/
30 
31 #define v0 %eax
32 #define itmp1 v0
33 
34 #define itmp2 %ecx
35 #define itmp3 %edx
36 
37 #define t0 %ebx
38 
39 #define sp %esp
40 #define s0 %ebp
41 #define s1 %esi
42 #define s2 %edi
43 
44 #define bp s0
45 
46 #define itmp1b %al
47 
48 #define xptr itmp1
49 #define xpc itmp2
50 #define mptr itmp2
51 
52 
53 /* save and restore macros ****************************************************/
54 
55 #define SAVE_ARGUMENT_REGISTERS(off) \
56  /* no argument registers */
57 
58 #define SAVE_TEMPORARY_REGISTERS(off) \
59  mov t0,(0+(off))*4(sp) ;
60 
61 
62 #define RESTORE_ARGUMENT_REGISTERS(off) \
63  /* no argument registers */
64 
65 #define RESTORE_TEMPORARY_REGISTERS(off) \
66  mov (0+(off))*4(sp),t0 ;
67 
68 #endif // MD_ASM_HPP_
69 
70 
71 /*
72  * These are local overrides for various environment variables in Emacs.
73  * Please do not remove this and leave it at the end of the file, where
74  * Emacs will automagically detect them.
75  * ---------------------------------------------------------------------
76  * Local variables:
77  * mode: c++
78  * indent-tabs-mode: t
79  * c-basic-offset: 4
80  * tab-width: 4
81  * End:
82  */