1 /* |
1 /* |
2 * Copyright (c) 2006, 2013, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2006, 2014, 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. |
22 * |
22 * |
23 */ |
23 */ |
24 |
24 |
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 |
|
28 // AdGlobals contains c2 specific register handling code as specified |
|
29 // in the .ad files. |
|
30 #ifdef TARGET_ARCH_MODEL_x86_32 |
|
31 # include "adfiles/adGlobals_x86_32.hpp" |
|
32 #endif |
|
33 #ifdef TARGET_ARCH_MODEL_x86_64 |
|
34 # include "adfiles/adGlobals_x86_64.hpp" |
|
35 #endif |
|
36 #ifdef TARGET_ARCH_MODEL_sparc |
|
37 # include "adfiles/adGlobals_sparc.hpp" |
|
38 #endif |
|
39 #ifdef TARGET_ARCH_MODEL_zero |
|
40 # include "adfiles/adGlobals_zero.hpp" |
|
41 #endif |
|
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" |
|
50 #endif |
27 |
51 |
28 //------------------------------OptoReg---------------------------------------- |
52 //------------------------------OptoReg---------------------------------------- |
29 // We eventually need Registers for the Real World. Registers are essentially |
53 // We eventually need Registers for the Real World. Registers are essentially |
30 // non-SSA names. A Register is represented as a number. Non-regular values |
54 // non-SSA names. A Register is represented as a number. Non-regular values |
31 // (e.g., Control, Memory, I/O) use the Special register. The actual machine |
55 // (e.g., Control, Memory, I/O) use the Special register. The actual machine |