1 /* |
1 /* |
2 * Copyright (c) 2006, 2014, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2006, 2015, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
25 #ifndef SHARE_VM_OPTO_OPTOREG_HPP |
25 #ifndef SHARE_VM_OPTO_OPTOREG_HPP |
26 #define SHARE_VM_OPTO_OPTOREG_HPP |
26 #define SHARE_VM_OPTO_OPTOREG_HPP |
27 |
27 |
28 // AdGlobals contains c2 specific register handling code as specified |
28 // AdGlobals contains c2 specific register handling code as specified |
29 // in the .ad files. |
29 // in the .ad files. |
30 #ifdef TARGET_ARCH_MODEL_x86_32 |
30 #if defined ADGLOBALS_MD_HPP |
|
31 # include ADGLOBALS_MD_HPP |
|
32 #elif defined TARGET_ARCH_MODEL_x86_32 |
31 # include "adfiles/adGlobals_x86_32.hpp" |
33 # include "adfiles/adGlobals_x86_32.hpp" |
32 #endif |
34 #elif defined TARGET_ARCH_MODEL_x86_64 |
33 #ifdef TARGET_ARCH_MODEL_x86_64 |
|
34 # include "adfiles/adGlobals_x86_64.hpp" |
35 # include "adfiles/adGlobals_x86_64.hpp" |
35 #endif |
36 #elif defined TARGET_ARCH_MODEL_sparc |
36 #ifdef TARGET_ARCH_MODEL_sparc |
|
37 # include "adfiles/adGlobals_sparc.hpp" |
37 # include "adfiles/adGlobals_sparc.hpp" |
38 #endif |
38 #elif defined TARGET_ARCH_MODEL_zero |
39 #ifdef TARGET_ARCH_MODEL_zero |
|
40 # include "adfiles/adGlobals_zero.hpp" |
39 # include "adfiles/adGlobals_zero.hpp" |
41 #endif |
40 #elif defined TARGET_ARCH_MODEL_ppc_64 |
42 #ifdef TARGET_ARCH_MODEL_arm |
|
43 # include "adfiles/adGlobals_arm.hpp" |
|
44 #endif |
|
45 #ifdef TARGET_ARCH_MODEL_ppc_32 |
|
46 # include "adfiles/adGlobals_ppc_32.hpp" |
|
47 #endif |
|
48 #ifdef TARGET_ARCH_MODEL_ppc_64 |
|
49 # include "adfiles/adGlobals_ppc_64.hpp" |
41 # include "adfiles/adGlobals_ppc_64.hpp" |
50 #endif |
42 #elif defined TARGET_ARCH_MODEL_aarch64 |
51 #ifdef TARGET_ARCH_MODEL_aarch64 |
|
52 # include "adfiles/adGlobals_aarch64.hpp" |
43 # include "adfiles/adGlobals_aarch64.hpp" |
53 #endif |
44 #endif |
54 |
45 |
55 //------------------------------OptoReg---------------------------------------- |
46 //------------------------------OptoReg---------------------------------------- |
56 // We eventually need Registers for the Real World. Registers are essentially |
47 // We eventually need Registers for the Real World. Registers are essentially |