annotate src/share/vm/asm/register.hpp @ 17467:55fb97c4c58d hs25-b65

8029233: Update copyright year to match last edit in jdk8 hotspot repository for 2013 Summary: Copyright year updated for files modified during 2013 Reviewed-by: twisti, iveresov
author mikael
date Tue, 24 Dec 2013 11:48:39 -0800
parents f0c2369fda5a
children 78bbf4d43a14
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
a61af66fc99e Initial load
duke
parents:
diff changeset
1 /*
6842
b9a9ed0f8eeb 7197424: update copyright year to match last edit in jdk8 hotspot repository
mikael
parents: 6790
diff changeset
2 * Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved.
0
a61af66fc99e Initial load
duke
parents:
diff changeset
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
a61af66fc99e Initial load
duke
parents:
diff changeset
4 *
a61af66fc99e Initial load
duke
parents:
diff changeset
5 * This code is free software; you can redistribute it and/or modify it
a61af66fc99e Initial load
duke
parents:
diff changeset
6 * under the terms of the GNU General Public License version 2 only, as
a61af66fc99e Initial load
duke
parents:
diff changeset
7 * published by the Free Software Foundation.
a61af66fc99e Initial load
duke
parents:
diff changeset
8 *
a61af66fc99e Initial load
duke
parents:
diff changeset
9 * This code is distributed in the hope that it will be useful, but WITHOUT
a61af66fc99e Initial load
duke
parents:
diff changeset
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
a61af66fc99e Initial load
duke
parents:
diff changeset
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
a61af66fc99e Initial load
duke
parents:
diff changeset
12 * version 2 for more details (a copy is included in the LICENSE file that
a61af66fc99e Initial load
duke
parents:
diff changeset
13 * accompanied this code).
a61af66fc99e Initial load
duke
parents:
diff changeset
14 *
a61af66fc99e Initial load
duke
parents:
diff changeset
15 * You should have received a copy of the GNU General Public License version
a61af66fc99e Initial load
duke
parents:
diff changeset
16 * 2 along with this work; if not, write to the Free Software Foundation,
a61af66fc99e Initial load
duke
parents:
diff changeset
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
a61af66fc99e Initial load
duke
parents:
diff changeset
18 *
1552
c18cbe5936b8 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 0
diff changeset
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
c18cbe5936b8 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 0
diff changeset
20 * or visit www.oracle.com if you need additional information or have any
c18cbe5936b8 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 0
diff changeset
21 * questions.
0
a61af66fc99e Initial load
duke
parents:
diff changeset
22 *
a61af66fc99e Initial load
duke
parents:
diff changeset
23 */
a61af66fc99e Initial load
duke
parents:
diff changeset
24
1972
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
25 #ifndef SHARE_VM_ASM_REGISTER_HPP
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
26 #define SHARE_VM_ASM_REGISTER_HPP
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
27
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
28 #include "utilities/top.hpp"
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
29
0
a61af66fc99e Initial load
duke
parents:
diff changeset
30 // Use AbstractRegister as shortcut
a61af66fc99e Initial load
duke
parents:
diff changeset
31 class AbstractRegisterImpl;
a61af66fc99e Initial load
duke
parents:
diff changeset
32 typedef AbstractRegisterImpl* AbstractRegister;
a61af66fc99e Initial load
duke
parents:
diff changeset
33
a61af66fc99e Initial load
duke
parents:
diff changeset
34
a61af66fc99e Initial load
duke
parents:
diff changeset
35 // The super class for platform specific registers. Instead of using value objects,
a61af66fc99e Initial load
duke
parents:
diff changeset
36 // registers are implemented as pointers. Subclassing is used so all registers can
a61af66fc99e Initial load
duke
parents:
diff changeset
37 // use the debugging suport below. No virtual functions are used for efficiency.
a61af66fc99e Initial load
duke
parents:
diff changeset
38 // They are canonicalized; i.e., registers are equal if their pointers are equal,
a61af66fc99e Initial load
duke
parents:
diff changeset
39 // and vice versa. A concrete implementation may just map the register onto 'this'.
a61af66fc99e Initial load
duke
parents:
diff changeset
40
a61af66fc99e Initial load
duke
parents:
diff changeset
41 class AbstractRegisterImpl {
a61af66fc99e Initial load
duke
parents:
diff changeset
42 protected:
a61af66fc99e Initial load
duke
parents:
diff changeset
43 int value() const { return (int)(intx)this; }
a61af66fc99e Initial load
duke
parents:
diff changeset
44 };
a61af66fc99e Initial load
duke
parents:
diff changeset
45
a61af66fc99e Initial load
duke
parents:
diff changeset
46
a61af66fc99e Initial load
duke
parents:
diff changeset
47 //
a61af66fc99e Initial load
duke
parents:
diff changeset
48 // Macros for use in defining Register instances. We'd like to be
a61af66fc99e Initial load
duke
parents:
diff changeset
49 // able to simply define const instances of the RegisterImpl* for each
a61af66fc99e Initial load
duke
parents:
diff changeset
50 // of the registers needed on a system in a header file. However many
a61af66fc99e Initial load
duke
parents:
diff changeset
51 // compilers don't handle this very well and end up producing a
a61af66fc99e Initial load
duke
parents:
diff changeset
52 // private definition in every file which includes the header file.
a61af66fc99e Initial load
duke
parents:
diff changeset
53 // Along with the static constructors necessary for initialization it
a61af66fc99e Initial load
duke
parents:
diff changeset
54 // can consume a significant amount of space in the result library.
a61af66fc99e Initial load
duke
parents:
diff changeset
55 //
a61af66fc99e Initial load
duke
parents:
diff changeset
56 // The following macros allow us to declare the instance in a .hpp and
a61af66fc99e Initial load
duke
parents:
diff changeset
57 // produce an enumeration value which has the same number. Then in a
a61af66fc99e Initial load
duke
parents:
diff changeset
58 // .cpp the the register instance can be defined using the enumeration
a61af66fc99e Initial load
duke
parents:
diff changeset
59 // value. This avoids the use of static constructors and multiple
a61af66fc99e Initial load
duke
parents:
diff changeset
60 // definitions per .cpp. In addition #defines for the register can be
a61af66fc99e Initial load
duke
parents:
diff changeset
61 // produced so that the constant registers can be inlined. These
a61af66fc99e Initial load
duke
parents:
diff changeset
62 // macros should not be used inside other macros, because you may get
a61af66fc99e Initial load
duke
parents:
diff changeset
63 // multiple evaluations of the macros which can give bad results.
a61af66fc99e Initial load
duke
parents:
diff changeset
64 //
a61af66fc99e Initial load
duke
parents:
diff changeset
65 // Here are some example uses and expansions. Note that the macro
a61af66fc99e Initial load
duke
parents:
diff changeset
66 // invocation is terminated with a ;.
a61af66fc99e Initial load
duke
parents:
diff changeset
67 //
a61af66fc99e Initial load
duke
parents:
diff changeset
68 // CONSTANT_REGISTER_DECLARATION(Register, G0, 0);
a61af66fc99e Initial load
duke
parents:
diff changeset
69 //
a61af66fc99e Initial load
duke
parents:
diff changeset
70 // extern const Register G0 ;
a61af66fc99e Initial load
duke
parents:
diff changeset
71 // enum { G0_RegisterEnumValue = 0 } ;
a61af66fc99e Initial load
duke
parents:
diff changeset
72 //
a61af66fc99e Initial load
duke
parents:
diff changeset
73 // REGISTER_DECLARATION(Register, Gmethod, G5);
a61af66fc99e Initial load
duke
parents:
diff changeset
74 //
a61af66fc99e Initial load
duke
parents:
diff changeset
75 // extern const Register Gmethod ;
a61af66fc99e Initial load
duke
parents:
diff changeset
76 // enum { Gmethod_RegisterEnumValue = G5_RegisterEnumValue } ;
a61af66fc99e Initial load
duke
parents:
diff changeset
77 //
a61af66fc99e Initial load
duke
parents:
diff changeset
78 // REGISTER_DEFINITION(Register, G0);
a61af66fc99e Initial load
duke
parents:
diff changeset
79 //
a61af66fc99e Initial load
duke
parents:
diff changeset
80 // const Register G0 = ( ( Register ) G0_RegisterEnumValue ) ;
a61af66fc99e Initial load
duke
parents:
diff changeset
81 //
a61af66fc99e Initial load
duke
parents:
diff changeset
82
a61af66fc99e Initial load
duke
parents:
diff changeset
83 #define AS_REGISTER(type,name) ((type)name##_##type##EnumValue)
a61af66fc99e Initial load
duke
parents:
diff changeset
84
a61af66fc99e Initial load
duke
parents:
diff changeset
85 #define CONSTANT_REGISTER_DECLARATION(type, name, value) \
a61af66fc99e Initial load
duke
parents:
diff changeset
86 extern const type name; \
a61af66fc99e Initial load
duke
parents:
diff changeset
87 enum { name##_##type##EnumValue = (value) }
a61af66fc99e Initial load
duke
parents:
diff changeset
88
a61af66fc99e Initial load
duke
parents:
diff changeset
89 #define REGISTER_DECLARATION(type, name, value) \
a61af66fc99e Initial load
duke
parents:
diff changeset
90 extern const type name; \
a61af66fc99e Initial load
duke
parents:
diff changeset
91 enum { name##_##type##EnumValue = value##_##type##EnumValue }
a61af66fc99e Initial load
duke
parents:
diff changeset
92
a61af66fc99e Initial load
duke
parents:
diff changeset
93 #define REGISTER_DEFINITION(type, name) \
a61af66fc99e Initial load
duke
parents:
diff changeset
94 const type name = ((type)name##_##type##EnumValue)
a61af66fc99e Initial load
duke
parents:
diff changeset
95
7204
f0c2369fda5a 8003250: SPARC: move MacroAssembler into separate file
twisti
parents: 6842
diff changeset
96 #ifdef TARGET_ARCH_x86
f0c2369fda5a 8003250: SPARC: move MacroAssembler into separate file
twisti
parents: 6842
diff changeset
97 # include "register_x86.hpp"
f0c2369fda5a 8003250: SPARC: move MacroAssembler into separate file
twisti
parents: 6842
diff changeset
98 #endif
f0c2369fda5a 8003250: SPARC: move MacroAssembler into separate file
twisti
parents: 6842
diff changeset
99 #ifdef TARGET_ARCH_sparc
f0c2369fda5a 8003250: SPARC: move MacroAssembler into separate file
twisti
parents: 6842
diff changeset
100 # include "register_sparc.hpp"
f0c2369fda5a 8003250: SPARC: move MacroAssembler into separate file
twisti
parents: 6842
diff changeset
101 #endif
f0c2369fda5a 8003250: SPARC: move MacroAssembler into separate file
twisti
parents: 6842
diff changeset
102 #ifdef TARGET_ARCH_zero
f0c2369fda5a 8003250: SPARC: move MacroAssembler into separate file
twisti
parents: 6842
diff changeset
103 # include "register_zero.hpp"
f0c2369fda5a 8003250: SPARC: move MacroAssembler into separate file
twisti
parents: 6842
diff changeset
104 #endif
f0c2369fda5a 8003250: SPARC: move MacroAssembler into separate file
twisti
parents: 6842
diff changeset
105 #ifdef TARGET_ARCH_arm
f0c2369fda5a 8003250: SPARC: move MacroAssembler into separate file
twisti
parents: 6842
diff changeset
106 # include "register_arm.hpp"
f0c2369fda5a 8003250: SPARC: move MacroAssembler into separate file
twisti
parents: 6842
diff changeset
107 #endif
f0c2369fda5a 8003250: SPARC: move MacroAssembler into separate file
twisti
parents: 6842
diff changeset
108 #ifdef TARGET_ARCH_ppc
f0c2369fda5a 8003250: SPARC: move MacroAssembler into separate file
twisti
parents: 6842
diff changeset
109 # include "register_ppc.hpp"
f0c2369fda5a 8003250: SPARC: move MacroAssembler into separate file
twisti
parents: 6842
diff changeset
110 #endif
0
a61af66fc99e Initial load
duke
parents:
diff changeset
111
a61af66fc99e Initial load
duke
parents:
diff changeset
112
a61af66fc99e Initial load
duke
parents:
diff changeset
113 // Debugging support
a61af66fc99e Initial load
duke
parents:
diff changeset
114
a61af66fc99e Initial load
duke
parents:
diff changeset
115 inline void assert_different_registers(
a61af66fc99e Initial load
duke
parents:
diff changeset
116 AbstractRegister a,
a61af66fc99e Initial load
duke
parents:
diff changeset
117 AbstractRegister b
a61af66fc99e Initial load
duke
parents:
diff changeset
118 ) {
a61af66fc99e Initial load
duke
parents:
diff changeset
119 assert(
a61af66fc99e Initial load
duke
parents:
diff changeset
120 a != b,
6790
2cb2f30450c7 7196262: JSR 292: java/lang/invoke/PrivateInvokeTest.java fails on solaris-sparc
twisti
parents: 6266
diff changeset
121 err_msg_res("registers must be different: a=%d, b=%d",
2cb2f30450c7 7196262: JSR 292: java/lang/invoke/PrivateInvokeTest.java fails on solaris-sparc
twisti
parents: 6266
diff changeset
122 a, b)
0
a61af66fc99e Initial load
duke
parents:
diff changeset
123 );
a61af66fc99e Initial load
duke
parents:
diff changeset
124 }
a61af66fc99e Initial load
duke
parents:
diff changeset
125
a61af66fc99e Initial load
duke
parents:
diff changeset
126
a61af66fc99e Initial load
duke
parents:
diff changeset
127 inline void assert_different_registers(
a61af66fc99e Initial load
duke
parents:
diff changeset
128 AbstractRegister a,
a61af66fc99e Initial load
duke
parents:
diff changeset
129 AbstractRegister b,
a61af66fc99e Initial load
duke
parents:
diff changeset
130 AbstractRegister c
a61af66fc99e Initial load
duke
parents:
diff changeset
131 ) {
a61af66fc99e Initial load
duke
parents:
diff changeset
132 assert(
a61af66fc99e Initial load
duke
parents:
diff changeset
133 a != b && a != c
a61af66fc99e Initial load
duke
parents:
diff changeset
134 && b != c,
6790
2cb2f30450c7 7196262: JSR 292: java/lang/invoke/PrivateInvokeTest.java fails on solaris-sparc
twisti
parents: 6266
diff changeset
135 err_msg_res("registers must be different: a=%d, b=%d, c=%d",
2cb2f30450c7 7196262: JSR 292: java/lang/invoke/PrivateInvokeTest.java fails on solaris-sparc
twisti
parents: 6266
diff changeset
136 a, b, c)
0
a61af66fc99e Initial load
duke
parents:
diff changeset
137 );
a61af66fc99e Initial load
duke
parents:
diff changeset
138 }
a61af66fc99e Initial load
duke
parents:
diff changeset
139
a61af66fc99e Initial load
duke
parents:
diff changeset
140
a61af66fc99e Initial load
duke
parents:
diff changeset
141 inline void assert_different_registers(
a61af66fc99e Initial load
duke
parents:
diff changeset
142 AbstractRegister a,
a61af66fc99e Initial load
duke
parents:
diff changeset
143 AbstractRegister b,
a61af66fc99e Initial load
duke
parents:
diff changeset
144 AbstractRegister c,
a61af66fc99e Initial load
duke
parents:
diff changeset
145 AbstractRegister d
a61af66fc99e Initial load
duke
parents:
diff changeset
146 ) {
a61af66fc99e Initial load
duke
parents:
diff changeset
147 assert(
a61af66fc99e Initial load
duke
parents:
diff changeset
148 a != b && a != c && a != d
a61af66fc99e Initial load
duke
parents:
diff changeset
149 && b != c && b != d
a61af66fc99e Initial load
duke
parents:
diff changeset
150 && c != d,
6790
2cb2f30450c7 7196262: JSR 292: java/lang/invoke/PrivateInvokeTest.java fails on solaris-sparc
twisti
parents: 6266
diff changeset
151 err_msg_res("registers must be different: a=%d, b=%d, c=%d, d=%d",
2cb2f30450c7 7196262: JSR 292: java/lang/invoke/PrivateInvokeTest.java fails on solaris-sparc
twisti
parents: 6266
diff changeset
152 a, b, c, d)
0
a61af66fc99e Initial load
duke
parents:
diff changeset
153 );
a61af66fc99e Initial load
duke
parents:
diff changeset
154 }
a61af66fc99e Initial load
duke
parents:
diff changeset
155
a61af66fc99e Initial load
duke
parents:
diff changeset
156
a61af66fc99e Initial load
duke
parents:
diff changeset
157 inline void assert_different_registers(
a61af66fc99e Initial load
duke
parents:
diff changeset
158 AbstractRegister a,
a61af66fc99e Initial load
duke
parents:
diff changeset
159 AbstractRegister b,
a61af66fc99e Initial load
duke
parents:
diff changeset
160 AbstractRegister c,
a61af66fc99e Initial load
duke
parents:
diff changeset
161 AbstractRegister d,
a61af66fc99e Initial load
duke
parents:
diff changeset
162 AbstractRegister e
a61af66fc99e Initial load
duke
parents:
diff changeset
163 ) {
a61af66fc99e Initial load
duke
parents:
diff changeset
164 assert(
a61af66fc99e Initial load
duke
parents:
diff changeset
165 a != b && a != c && a != d && a != e
a61af66fc99e Initial load
duke
parents:
diff changeset
166 && b != c && b != d && b != e
a61af66fc99e Initial load
duke
parents:
diff changeset
167 && c != d && c != e
a61af66fc99e Initial load
duke
parents:
diff changeset
168 && d != e,
6790
2cb2f30450c7 7196262: JSR 292: java/lang/invoke/PrivateInvokeTest.java fails on solaris-sparc
twisti
parents: 6266
diff changeset
169 err_msg_res("registers must be different: a=%d, b=%d, c=%d, d=%d, e=%d",
2cb2f30450c7 7196262: JSR 292: java/lang/invoke/PrivateInvokeTest.java fails on solaris-sparc
twisti
parents: 6266
diff changeset
170 a, b, c, d, e)
0
a61af66fc99e Initial load
duke
parents:
diff changeset
171 );
a61af66fc99e Initial load
duke
parents:
diff changeset
172 }
a61af66fc99e Initial load
duke
parents:
diff changeset
173
a61af66fc99e Initial load
duke
parents:
diff changeset
174
a61af66fc99e Initial load
duke
parents:
diff changeset
175 inline void assert_different_registers(
a61af66fc99e Initial load
duke
parents:
diff changeset
176 AbstractRegister a,
a61af66fc99e Initial load
duke
parents:
diff changeset
177 AbstractRegister b,
a61af66fc99e Initial load
duke
parents:
diff changeset
178 AbstractRegister c,
a61af66fc99e Initial load
duke
parents:
diff changeset
179 AbstractRegister d,
a61af66fc99e Initial load
duke
parents:
diff changeset
180 AbstractRegister e,
a61af66fc99e Initial load
duke
parents:
diff changeset
181 AbstractRegister f
a61af66fc99e Initial load
duke
parents:
diff changeset
182 ) {
a61af66fc99e Initial load
duke
parents:
diff changeset
183 assert(
a61af66fc99e Initial load
duke
parents:
diff changeset
184 a != b && a != c && a != d && a != e && a != f
a61af66fc99e Initial load
duke
parents:
diff changeset
185 && b != c && b != d && b != e && b != f
a61af66fc99e Initial load
duke
parents:
diff changeset
186 && c != d && c != e && c != f
a61af66fc99e Initial load
duke
parents:
diff changeset
187 && d != e && d != f
a61af66fc99e Initial load
duke
parents:
diff changeset
188 && e != f,
6790
2cb2f30450c7 7196262: JSR 292: java/lang/invoke/PrivateInvokeTest.java fails on solaris-sparc
twisti
parents: 6266
diff changeset
189 err_msg_res("registers must be different: a=%d, b=%d, c=%d, d=%d, e=%d, f=%d",
2cb2f30450c7 7196262: JSR 292: java/lang/invoke/PrivateInvokeTest.java fails on solaris-sparc
twisti
parents: 6266
diff changeset
190 a, b, c, d, e, f)
0
a61af66fc99e Initial load
duke
parents:
diff changeset
191 );
a61af66fc99e Initial load
duke
parents:
diff changeset
192 }
a61af66fc99e Initial load
duke
parents:
diff changeset
193
a61af66fc99e Initial load
duke
parents:
diff changeset
194
a61af66fc99e Initial load
duke
parents:
diff changeset
195 inline void assert_different_registers(
a61af66fc99e Initial load
duke
parents:
diff changeset
196 AbstractRegister a,
a61af66fc99e Initial load
duke
parents:
diff changeset
197 AbstractRegister b,
a61af66fc99e Initial load
duke
parents:
diff changeset
198 AbstractRegister c,
a61af66fc99e Initial load
duke
parents:
diff changeset
199 AbstractRegister d,
a61af66fc99e Initial load
duke
parents:
diff changeset
200 AbstractRegister e,
a61af66fc99e Initial load
duke
parents:
diff changeset
201 AbstractRegister f,
a61af66fc99e Initial load
duke
parents:
diff changeset
202 AbstractRegister g
a61af66fc99e Initial load
duke
parents:
diff changeset
203 ) {
a61af66fc99e Initial load
duke
parents:
diff changeset
204 assert(
a61af66fc99e Initial load
duke
parents:
diff changeset
205 a != b && a != c && a != d && a != e && a != f && a != g
a61af66fc99e Initial load
duke
parents:
diff changeset
206 && b != c && b != d && b != e && b != f && b != g
a61af66fc99e Initial load
duke
parents:
diff changeset
207 && c != d && c != e && c != f && c != g
a61af66fc99e Initial load
duke
parents:
diff changeset
208 && d != e && d != f && d != g
a61af66fc99e Initial load
duke
parents:
diff changeset
209 && e != f && e != g
a61af66fc99e Initial load
duke
parents:
diff changeset
210 && f != g,
6790
2cb2f30450c7 7196262: JSR 292: java/lang/invoke/PrivateInvokeTest.java fails on solaris-sparc
twisti
parents: 6266
diff changeset
211 err_msg_res("registers must be different: a=%d, b=%d, c=%d, d=%d, e=%d, f=%d, g=%d",
2cb2f30450c7 7196262: JSR 292: java/lang/invoke/PrivateInvokeTest.java fails on solaris-sparc
twisti
parents: 6266
diff changeset
212 a, b, c, d, e, f, g)
0
a61af66fc99e Initial load
duke
parents:
diff changeset
213 );
a61af66fc99e Initial load
duke
parents:
diff changeset
214 }
a61af66fc99e Initial load
duke
parents:
diff changeset
215
a61af66fc99e Initial load
duke
parents:
diff changeset
216
a61af66fc99e Initial load
duke
parents:
diff changeset
217 inline void assert_different_registers(
a61af66fc99e Initial load
duke
parents:
diff changeset
218 AbstractRegister a,
a61af66fc99e Initial load
duke
parents:
diff changeset
219 AbstractRegister b,
a61af66fc99e Initial load
duke
parents:
diff changeset
220 AbstractRegister c,
a61af66fc99e Initial load
duke
parents:
diff changeset
221 AbstractRegister d,
a61af66fc99e Initial load
duke
parents:
diff changeset
222 AbstractRegister e,
a61af66fc99e Initial load
duke
parents:
diff changeset
223 AbstractRegister f,
a61af66fc99e Initial load
duke
parents:
diff changeset
224 AbstractRegister g,
a61af66fc99e Initial load
duke
parents:
diff changeset
225 AbstractRegister h
a61af66fc99e Initial load
duke
parents:
diff changeset
226 ) {
a61af66fc99e Initial load
duke
parents:
diff changeset
227 assert(
a61af66fc99e Initial load
duke
parents:
diff changeset
228 a != b && a != c && a != d && a != e && a != f && a != g && a != h
a61af66fc99e Initial load
duke
parents:
diff changeset
229 && b != c && b != d && b != e && b != f && b != g && b != h
a61af66fc99e Initial load
duke
parents:
diff changeset
230 && c != d && c != e && c != f && c != g && c != h
a61af66fc99e Initial load
duke
parents:
diff changeset
231 && d != e && d != f && d != g && d != h
a61af66fc99e Initial load
duke
parents:
diff changeset
232 && e != f && e != g && e != h
a61af66fc99e Initial load
duke
parents:
diff changeset
233 && f != g && f != h
a61af66fc99e Initial load
duke
parents:
diff changeset
234 && g != h,
6790
2cb2f30450c7 7196262: JSR 292: java/lang/invoke/PrivateInvokeTest.java fails on solaris-sparc
twisti
parents: 6266
diff changeset
235 err_msg_res("registers must be different: a=%d, b=%d, c=%d, d=%d, e=%d, f=%d, g=%d, h=%d",
2cb2f30450c7 7196262: JSR 292: java/lang/invoke/PrivateInvokeTest.java fails on solaris-sparc
twisti
parents: 6266
diff changeset
236 a, b, c, d, e, f, g, h)
6266
1d7922586cf6 7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents: 1972
diff changeset
237 );
1d7922586cf6 7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents: 1972
diff changeset
238 }
1d7922586cf6 7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents: 1972
diff changeset
239
1d7922586cf6 7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents: 1972
diff changeset
240
1d7922586cf6 7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents: 1972
diff changeset
241 inline void assert_different_registers(
1d7922586cf6 7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents: 1972
diff changeset
242 AbstractRegister a,
1d7922586cf6 7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents: 1972
diff changeset
243 AbstractRegister b,
1d7922586cf6 7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents: 1972
diff changeset
244 AbstractRegister c,
1d7922586cf6 7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents: 1972
diff changeset
245 AbstractRegister d,
1d7922586cf6 7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents: 1972
diff changeset
246 AbstractRegister e,
1d7922586cf6 7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents: 1972
diff changeset
247 AbstractRegister f,
1d7922586cf6 7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents: 1972
diff changeset
248 AbstractRegister g,
1d7922586cf6 7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents: 1972
diff changeset
249 AbstractRegister h,
1d7922586cf6 7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents: 1972
diff changeset
250 AbstractRegister i
1d7922586cf6 7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents: 1972
diff changeset
251 ) {
1d7922586cf6 7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents: 1972
diff changeset
252 assert(
1d7922586cf6 7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents: 1972
diff changeset
253 a != b && a != c && a != d && a != e && a != f && a != g && a != h && a != i
1d7922586cf6 7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents: 1972
diff changeset
254 && b != c && b != d && b != e && b != f && b != g && b != h && b != i
1d7922586cf6 7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents: 1972
diff changeset
255 && c != d && c != e && c != f && c != g && c != h && c != i
1d7922586cf6 7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents: 1972
diff changeset
256 && d != e && d != f && d != g && d != h && d != i
1d7922586cf6 7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents: 1972
diff changeset
257 && e != f && e != g && e != h && e != i
1d7922586cf6 7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents: 1972
diff changeset
258 && f != g && f != h && f != i
1d7922586cf6 7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents: 1972
diff changeset
259 && g != h && g != i
1d7922586cf6 7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents: 1972
diff changeset
260 && h != i,
6790
2cb2f30450c7 7196262: JSR 292: java/lang/invoke/PrivateInvokeTest.java fails on solaris-sparc
twisti
parents: 6266
diff changeset
261 err_msg_res("registers must be different: a=%d, b=%d, c=%d, d=%d, e=%d, f=%d, g=%d, h=%d, i=%d",
2cb2f30450c7 7196262: JSR 292: java/lang/invoke/PrivateInvokeTest.java fails on solaris-sparc
twisti
parents: 6266
diff changeset
262 a, b, c, d, e, f, g, h, i)
0
a61af66fc99e Initial load
duke
parents:
diff changeset
263 );
a61af66fc99e Initial load
duke
parents:
diff changeset
264 }
1972
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
265
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
266 #endif // SHARE_VM_ASM_REGISTER_HPP