18 * |
18 * |
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
20 * or visit www.oracle.com if you need additional information or have any |
20 * or visit www.oracle.com if you need additional information or have any |
21 * questions. |
21 * questions. |
22 * |
22 * |
|
23 */ |
|
24 |
|
25 /* |
|
26 * This file has been modified by Loongson Technology in 2015. These |
|
27 * modifications are Copyright (c) 2015 Loongson Technology, and are made |
|
28 * available on the same license terms set forth above. |
23 */ |
29 */ |
24 |
30 |
25 #ifndef SHARE_VM_CODE_VMREG_HPP |
31 #ifndef SHARE_VM_CODE_VMREG_HPP |
26 #define SHARE_VM_CODE_VMREG_HPP |
32 #define SHARE_VM_CODE_VMREG_HPP |
27 |
33 |
43 #elif defined TARGET_ARCH_MODEL_zero |
49 #elif defined TARGET_ARCH_MODEL_zero |
44 # include "adfiles/adGlobals_zero.hpp" |
50 # include "adfiles/adGlobals_zero.hpp" |
45 #elif defined TARGET_ARCH_MODEL_ppc_64 |
51 #elif defined TARGET_ARCH_MODEL_ppc_64 |
46 # include "adfiles/adGlobals_ppc_64.hpp" |
52 # include "adfiles/adGlobals_ppc_64.hpp" |
47 #endif |
53 #endif |
|
54 #ifdef TARGET_ARCH_MODEL_mips_64 |
|
55 # include "adfiles/adGlobals_mips_64.hpp" |
|
56 #endif |
48 #endif |
57 #endif |
49 |
58 |
50 //------------------------------VMReg------------------------------------------ |
59 //------------------------------VMReg------------------------------------------ |
51 // The VM uses 'unwarped' stack slots; the compiler uses 'warped' stack slots. |
60 // The VM uses 'unwarped' stack slots; the compiler uses 'warped' stack slots. |
52 // Register numbers below VMRegImpl::stack0 are the same for both. Register |
61 // Register numbers below VMRegImpl::stack0 are the same for both. Register |
153 |
162 |
154 static void set_regName(); |
163 static void set_regName(); |
155 |
164 |
156 #ifdef TARGET_ARCH_x86 |
165 #ifdef TARGET_ARCH_x86 |
157 # include "vmreg_x86.hpp" |
166 # include "vmreg_x86.hpp" |
|
167 #endif |
|
168 #ifdef TARGET_ARCH_mips |
|
169 # include "vmreg_mips.hpp" |
158 #endif |
170 #endif |
159 #ifdef TARGET_ARCH_sparc |
171 #ifdef TARGET_ARCH_sparc |
160 # include "vmreg_sparc.hpp" |
172 # include "vmreg_sparc.hpp" |
161 #endif |
173 #endif |
162 #ifdef TARGET_ARCH_zero |
174 #ifdef TARGET_ARCH_zero |