author | david |
Tue, 29 Sep 2015 11:02:08 +0200 | |
changeset 33105 | 294e48b4f704 |
parent 29180 | 50369728b00e |
child 37466 | 287c4ebd11b0 |
permissions | -rw-r--r-- |
1 | 1 |
/* |
24424
2658d7834c6e
8037816: Fix for 8036122 breaks build with Xcode5/clang
drchase
parents:
14631
diff
changeset
|
2 |
* Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved. |
1 | 3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 |
* |
|
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 |
|
7 |
* published by the Free Software Foundation. |
|
8 |
* |
|
9 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
|
10 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
11 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
12 |
* version 2 for more details (a copy is included in the LICENSE file that |
|
13 |
* accompanied this code). |
|
14 |
* |
|
15 |
* You should have received a copy of the GNU General Public License version |
|
16 |
* 2 along with this work; if not, write to the Free Software Foundation, |
|
17 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
|
18 |
* |
|
5547
f4b087cbb361
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
1
diff
changeset
|
19 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
f4b087cbb361
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
1
diff
changeset
|
20 |
* or visit www.oracle.com if you need additional information or have any |
f4b087cbb361
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
1
diff
changeset
|
21 |
* questions. |
1 | 22 |
* |
23 |
*/ |
|
24 |
||
7397 | 25 |
#ifndef SHARE_VM_ASM_REGISTER_HPP |
26 |
#define SHARE_VM_ASM_REGISTER_HPP |
|
27 |
||
28 |
#include "utilities/top.hpp" |
|
29 |
||
1 | 30 |
// Use AbstractRegister as shortcut |
31 |
class AbstractRegisterImpl; |
|
32 |
typedef AbstractRegisterImpl* AbstractRegister; |
|
33 |
||
34 |
||
35 |
// The super class for platform specific registers. Instead of using value objects, |
|
36 |
// registers are implemented as pointers. Subclassing is used so all registers can |
|
37 |
// use the debugging suport below. No virtual functions are used for efficiency. |
|
38 |
// They are canonicalized; i.e., registers are equal if their pointers are equal, |
|
39 |
// and vice versa. A concrete implementation may just map the register onto 'this'. |
|
40 |
||
41 |
class AbstractRegisterImpl { |
|
42 |
protected: |
|
43 |
int value() const { return (int)(intx)this; } |
|
44 |
}; |
|
45 |
||
46 |
||
47 |
// |
|
48 |
// Macros for use in defining Register instances. We'd like to be |
|
49 |
// able to simply define const instances of the RegisterImpl* for each |
|
50 |
// of the registers needed on a system in a header file. However many |
|
51 |
// compilers don't handle this very well and end up producing a |
|
52 |
// private definition in every file which includes the header file. |
|
53 |
// Along with the static constructors necessary for initialization it |
|
54 |
// can consume a significant amount of space in the result library. |
|
55 |
// |
|
56 |
// The following macros allow us to declare the instance in a .hpp and |
|
57 |
// produce an enumeration value which has the same number. Then in a |
|
58 |
// .cpp the the register instance can be defined using the enumeration |
|
59 |
// value. This avoids the use of static constructors and multiple |
|
60 |
// definitions per .cpp. In addition #defines for the register can be |
|
61 |
// produced so that the constant registers can be inlined. These |
|
62 |
// macros should not be used inside other macros, because you may get |
|
63 |
// multiple evaluations of the macros which can give bad results. |
|
64 |
// |
|
65 |
// Here are some example uses and expansions. Note that the macro |
|
66 |
// invocation is terminated with a ;. |
|
67 |
// |
|
68 |
// CONSTANT_REGISTER_DECLARATION(Register, G0, 0); |
|
69 |
// |
|
70 |
// extern const Register G0 ; |
|
71 |
// enum { G0_RegisterEnumValue = 0 } ; |
|
72 |
// |
|
73 |
// REGISTER_DECLARATION(Register, Gmethod, G5); |
|
74 |
// |
|
75 |
// extern const Register Gmethod ; |
|
76 |
// enum { Gmethod_RegisterEnumValue = G5_RegisterEnumValue } ; |
|
77 |
// |
|
78 |
// REGISTER_DEFINITION(Register, G0); |
|
79 |
// |
|
80 |
// const Register G0 = ( ( Register ) G0_RegisterEnumValue ) ; |
|
81 |
// |
|
82 |
||
83 |
#define AS_REGISTER(type,name) ((type)name##_##type##EnumValue) |
|
84 |
||
85 |
#define CONSTANT_REGISTER_DECLARATION(type, name, value) \ |
|
86 |
extern const type name; \ |
|
87 |
enum { name##_##type##EnumValue = (value) } |
|
88 |
||
89 |
#define REGISTER_DECLARATION(type, name, value) \ |
|
90 |
extern const type name; \ |
|
91 |
enum { name##_##type##EnumValue = value##_##type##EnumValue } |
|
92 |
||
93 |
#define REGISTER_DEFINITION(type, name) \ |
|
94 |
const type name = ((type)name##_##type##EnumValue) |
|
95 |
||
14631
526804361522
8003250: SPARC: move MacroAssembler into separate file
twisti
parents:
13963
diff
changeset
|
96 |
#ifdef TARGET_ARCH_x86 |
526804361522
8003250: SPARC: move MacroAssembler into separate file
twisti
parents:
13963
diff
changeset
|
97 |
# include "register_x86.hpp" |
526804361522
8003250: SPARC: move MacroAssembler into separate file
twisti
parents:
13963
diff
changeset
|
98 |
#endif |
526804361522
8003250: SPARC: move MacroAssembler into separate file
twisti
parents:
13963
diff
changeset
|
99 |
#ifdef TARGET_ARCH_sparc |
526804361522
8003250: SPARC: move MacroAssembler into separate file
twisti
parents:
13963
diff
changeset
|
100 |
# include "register_sparc.hpp" |
526804361522
8003250: SPARC: move MacroAssembler into separate file
twisti
parents:
13963
diff
changeset
|
101 |
#endif |
526804361522
8003250: SPARC: move MacroAssembler into separate file
twisti
parents:
13963
diff
changeset
|
102 |
#ifdef TARGET_ARCH_zero |
526804361522
8003250: SPARC: move MacroAssembler into separate file
twisti
parents:
13963
diff
changeset
|
103 |
# include "register_zero.hpp" |
526804361522
8003250: SPARC: move MacroAssembler into separate file
twisti
parents:
13963
diff
changeset
|
104 |
#endif |
526804361522
8003250: SPARC: move MacroAssembler into separate file
twisti
parents:
13963
diff
changeset
|
105 |
#ifdef TARGET_ARCH_arm |
526804361522
8003250: SPARC: move MacroAssembler into separate file
twisti
parents:
13963
diff
changeset
|
106 |
# include "register_arm.hpp" |
526804361522
8003250: SPARC: move MacroAssembler into separate file
twisti
parents:
13963
diff
changeset
|
107 |
#endif |
526804361522
8003250: SPARC: move MacroAssembler into separate file
twisti
parents:
13963
diff
changeset
|
108 |
#ifdef TARGET_ARCH_ppc |
526804361522
8003250: SPARC: move MacroAssembler into separate file
twisti
parents:
13963
diff
changeset
|
109 |
# include "register_ppc.hpp" |
526804361522
8003250: SPARC: move MacroAssembler into separate file
twisti
parents:
13963
diff
changeset
|
110 |
#endif |
29180 | 111 |
#ifdef TARGET_ARCH_aarch64 |
112 |
# include "register_aarch64.hpp" |
|
113 |
#endif |
|
1 | 114 |
|
115 |
||
116 |
// Debugging support |
|
117 |
||
118 |
inline void assert_different_registers( |
|
119 |
AbstractRegister a, |
|
120 |
AbstractRegister b |
|
121 |
) { |
|
122 |
assert( |
|
123 |
a != b, |
|
33105
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
29180
diff
changeset
|
124 |
"registers must be different: a=" INTPTR_FORMAT ", b=" INTPTR_FORMAT "", p2i(a), p2i(b) |
1 | 125 |
); |
126 |
} |
|
127 |
||
128 |
||
129 |
inline void assert_different_registers( |
|
130 |
AbstractRegister a, |
|
131 |
AbstractRegister b, |
|
132 |
AbstractRegister c |
|
133 |
) { |
|
134 |
assert( |
|
135 |
a != b && a != c |
|
136 |
&& b != c, |
|
33105
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
29180
diff
changeset
|
137 |
"registers must be different: a=" INTPTR_FORMAT ", b=" INTPTR_FORMAT |
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
29180
diff
changeset
|
138 |
", c=" INTPTR_FORMAT "", |
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
29180
diff
changeset
|
139 |
p2i(a), p2i(b), p2i(c) |
1 | 140 |
); |
141 |
} |
|
142 |
||
143 |
||
144 |
inline void assert_different_registers( |
|
145 |
AbstractRegister a, |
|
146 |
AbstractRegister b, |
|
147 |
AbstractRegister c, |
|
148 |
AbstractRegister d |
|
149 |
) { |
|
150 |
assert( |
|
151 |
a != b && a != c && a != d |
|
152 |
&& b != c && b != d |
|
153 |
&& c != d, |
|
33105
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
29180
diff
changeset
|
154 |
"registers must be different: a=" INTPTR_FORMAT ", b=" INTPTR_FORMAT |
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
29180
diff
changeset
|
155 |
", c=" INTPTR_FORMAT ", d=" INTPTR_FORMAT "", |
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
29180
diff
changeset
|
156 |
p2i(a), p2i(b), p2i(c), p2i(d) |
1 | 157 |
); |
158 |
} |
|
159 |
||
160 |
||
161 |
inline void assert_different_registers( |
|
162 |
AbstractRegister a, |
|
163 |
AbstractRegister b, |
|
164 |
AbstractRegister c, |
|
165 |
AbstractRegister d, |
|
166 |
AbstractRegister e |
|
167 |
) { |
|
168 |
assert( |
|
169 |
a != b && a != c && a != d && a != e |
|
170 |
&& b != c && b != d && b != e |
|
171 |
&& c != d && c != e |
|
172 |
&& d != e, |
|
33105
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
29180
diff
changeset
|
173 |
"registers must be different: a=" INTPTR_FORMAT ", b=" INTPTR_FORMAT |
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
29180
diff
changeset
|
174 |
", c=" INTPTR_FORMAT ", d=" INTPTR_FORMAT ", e=" INTPTR_FORMAT "", |
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
29180
diff
changeset
|
175 |
p2i(a), p2i(b), p2i(c), p2i(d), p2i(e) |
1 | 176 |
); |
177 |
} |
|
178 |
||
179 |
||
180 |
inline void assert_different_registers( |
|
181 |
AbstractRegister a, |
|
182 |
AbstractRegister b, |
|
183 |
AbstractRegister c, |
|
184 |
AbstractRegister d, |
|
185 |
AbstractRegister e, |
|
186 |
AbstractRegister f |
|
187 |
) { |
|
188 |
assert( |
|
189 |
a != b && a != c && a != d && a != e && a != f |
|
190 |
&& b != c && b != d && b != e && b != f |
|
191 |
&& c != d && c != e && c != f |
|
192 |
&& d != e && d != f |
|
193 |
&& e != f, |
|
33105
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
29180
diff
changeset
|
194 |
"registers must be different: a=" INTPTR_FORMAT ", b=" INTPTR_FORMAT |
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
29180
diff
changeset
|
195 |
", c=" INTPTR_FORMAT ", d=" INTPTR_FORMAT ", e=" INTPTR_FORMAT |
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
29180
diff
changeset
|
196 |
", f=" INTPTR_FORMAT "", |
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
29180
diff
changeset
|
197 |
p2i(a), p2i(b), p2i(c), p2i(d), p2i(e), p2i(f) |
1 | 198 |
); |
199 |
} |
|
200 |
||
201 |
||
202 |
inline void assert_different_registers( |
|
203 |
AbstractRegister a, |
|
204 |
AbstractRegister b, |
|
205 |
AbstractRegister c, |
|
206 |
AbstractRegister d, |
|
207 |
AbstractRegister e, |
|
208 |
AbstractRegister f, |
|
209 |
AbstractRegister g |
|
210 |
) { |
|
211 |
assert( |
|
212 |
a != b && a != c && a != d && a != e && a != f && a != g |
|
213 |
&& b != c && b != d && b != e && b != f && b != g |
|
214 |
&& c != d && c != e && c != f && c != g |
|
215 |
&& d != e && d != f && d != g |
|
216 |
&& e != f && e != g |
|
217 |
&& f != g, |
|
33105
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
29180
diff
changeset
|
218 |
"registers must be different: a=" INTPTR_FORMAT ", b=" INTPTR_FORMAT |
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
29180
diff
changeset
|
219 |
", c=" INTPTR_FORMAT ", d=" INTPTR_FORMAT ", e=" INTPTR_FORMAT |
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
29180
diff
changeset
|
220 |
", f=" INTPTR_FORMAT ", g=" INTPTR_FORMAT "", |
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
29180
diff
changeset
|
221 |
p2i(a), p2i(b), p2i(c), p2i(d), p2i(e), p2i(f), p2i(g) |
1 | 222 |
); |
223 |
} |
|
224 |
||
225 |
||
226 |
inline void assert_different_registers( |
|
227 |
AbstractRegister a, |
|
228 |
AbstractRegister b, |
|
229 |
AbstractRegister c, |
|
230 |
AbstractRegister d, |
|
231 |
AbstractRegister e, |
|
232 |
AbstractRegister f, |
|
233 |
AbstractRegister g, |
|
234 |
AbstractRegister h |
|
235 |
) { |
|
236 |
assert( |
|
237 |
a != b && a != c && a != d && a != e && a != f && a != g && a != h |
|
238 |
&& b != c && b != d && b != e && b != f && b != g && b != h |
|
239 |
&& c != d && c != e && c != f && c != g && c != h |
|
240 |
&& d != e && d != f && d != g && d != h |
|
241 |
&& e != f && e != g && e != h |
|
242 |
&& f != g && f != h |
|
243 |
&& g != h, |
|
33105
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
29180
diff
changeset
|
244 |
"registers must be different: a=" INTPTR_FORMAT ", b=" INTPTR_FORMAT |
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
29180
diff
changeset
|
245 |
", c=" INTPTR_FORMAT ", d=" INTPTR_FORMAT ", e=" INTPTR_FORMAT |
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
29180
diff
changeset
|
246 |
", f=" INTPTR_FORMAT ", g=" INTPTR_FORMAT ", h=" INTPTR_FORMAT "", |
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
29180
diff
changeset
|
247 |
p2i(a), p2i(b), p2i(c), p2i(d), p2i(e), p2i(f), p2i(g), p2i(h) |
13391
30245956af37
7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents:
7397
diff
changeset
|
248 |
); |
30245956af37
7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents:
7397
diff
changeset
|
249 |
} |
30245956af37
7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents:
7397
diff
changeset
|
250 |
|
30245956af37
7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents:
7397
diff
changeset
|
251 |
|
30245956af37
7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents:
7397
diff
changeset
|
252 |
inline void assert_different_registers( |
30245956af37
7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents:
7397
diff
changeset
|
253 |
AbstractRegister a, |
30245956af37
7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents:
7397
diff
changeset
|
254 |
AbstractRegister b, |
30245956af37
7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents:
7397
diff
changeset
|
255 |
AbstractRegister c, |
30245956af37
7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents:
7397
diff
changeset
|
256 |
AbstractRegister d, |
30245956af37
7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents:
7397
diff
changeset
|
257 |
AbstractRegister e, |
30245956af37
7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents:
7397
diff
changeset
|
258 |
AbstractRegister f, |
30245956af37
7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents:
7397
diff
changeset
|
259 |
AbstractRegister g, |
30245956af37
7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents:
7397
diff
changeset
|
260 |
AbstractRegister h, |
30245956af37
7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents:
7397
diff
changeset
|
261 |
AbstractRegister i |
30245956af37
7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents:
7397
diff
changeset
|
262 |
) { |
30245956af37
7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents:
7397
diff
changeset
|
263 |
assert( |
30245956af37
7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents:
7397
diff
changeset
|
264 |
a != b && a != c && a != d && a != e && a != f && a != g && a != h && a != i |
30245956af37
7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents:
7397
diff
changeset
|
265 |
&& b != c && b != d && b != e && b != f && b != g && b != h && b != i |
30245956af37
7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents:
7397
diff
changeset
|
266 |
&& c != d && c != e && c != f && c != g && c != h && c != i |
30245956af37
7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents:
7397
diff
changeset
|
267 |
&& d != e && d != f && d != g && d != h && d != i |
30245956af37
7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents:
7397
diff
changeset
|
268 |
&& e != f && e != g && e != h && e != i |
30245956af37
7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents:
7397
diff
changeset
|
269 |
&& f != g && f != h && f != i |
30245956af37
7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents:
7397
diff
changeset
|
270 |
&& g != h && g != i |
30245956af37
7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents:
7397
diff
changeset
|
271 |
&& h != i, |
33105
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
29180
diff
changeset
|
272 |
"registers must be different: a=" INTPTR_FORMAT ", b=" INTPTR_FORMAT |
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
29180
diff
changeset
|
273 |
", c=" INTPTR_FORMAT ", d=" INTPTR_FORMAT ", e=" INTPTR_FORMAT |
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
29180
diff
changeset
|
274 |
", f=" INTPTR_FORMAT ", g=" INTPTR_FORMAT ", h=" INTPTR_FORMAT |
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
29180
diff
changeset
|
275 |
", i=" INTPTR_FORMAT "", |
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
29180
diff
changeset
|
276 |
p2i(a), p2i(b), p2i(c), p2i(d), p2i(e), p2i(f), p2i(g), p2i(h), p2i(i) |
1 | 277 |
); |
278 |
} |
|
7397 | 279 |
|
26434
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
280 |
inline void assert_different_registers( |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
281 |
AbstractRegister a, |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
282 |
AbstractRegister b, |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
283 |
AbstractRegister c, |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
284 |
AbstractRegister d, |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
285 |
AbstractRegister e, |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
286 |
AbstractRegister f, |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
287 |
AbstractRegister g, |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
288 |
AbstractRegister h, |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
289 |
AbstractRegister i, |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
290 |
AbstractRegister j |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
291 |
) { |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
292 |
assert( |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
293 |
a != b && a != c && a != d && a != e && a != f && a != g && a != h && a != i && a != j |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
294 |
&& b != c && b != d && b != e && b != f && b != g && b != h && b != i && b != j |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
295 |
&& c != d && c != e && c != f && c != g && c != h && c != i && c != j |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
296 |
&& d != e && d != f && d != g && d != h && d != i && d != j |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
297 |
&& e != f && e != g && e != h && e != i && e != j |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
298 |
&& f != g && f != h && f != i && f != j |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
299 |
&& g != h && g != i && g != j |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
300 |
&& h != i && h != j |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
301 |
&& i != j, |
33105
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
29180
diff
changeset
|
302 |
"registers must be different: a=" INTPTR_FORMAT ", b=" INTPTR_FORMAT |
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
29180
diff
changeset
|
303 |
", c=" INTPTR_FORMAT ", d=" INTPTR_FORMAT ", e=" INTPTR_FORMAT |
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
29180
diff
changeset
|
304 |
", f=" INTPTR_FORMAT ", g=" INTPTR_FORMAT ", h=" INTPTR_FORMAT |
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
29180
diff
changeset
|
305 |
", i=" INTPTR_FORMAT ", j=" INTPTR_FORMAT "", |
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
29180
diff
changeset
|
306 |
p2i(a), p2i(b), p2i(c), p2i(d), p2i(e), p2i(f), p2i(g), p2i(h), p2i(i), p2i(j) |
26434
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
307 |
); |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
308 |
} |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
309 |
|
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
310 |
inline void assert_different_registers( |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
311 |
AbstractRegister a, |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
312 |
AbstractRegister b, |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
313 |
AbstractRegister c, |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
314 |
AbstractRegister d, |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
315 |
AbstractRegister e, |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
316 |
AbstractRegister f, |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
317 |
AbstractRegister g, |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
318 |
AbstractRegister h, |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
319 |
AbstractRegister i, |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
320 |
AbstractRegister j, |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
321 |
AbstractRegister k |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
322 |
) { |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
323 |
assert( |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
324 |
a != b && a != c && a != d && a != e && a != f && a != g && a != h && a != i && a != j && a !=k |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
325 |
&& b != c && b != d && b != e && b != f && b != g && b != h && b != i && b != j && b !=k |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
326 |
&& c != d && c != e && c != f && c != g && c != h && c != i && c != j && c !=k |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
327 |
&& d != e && d != f && d != g && d != h && d != i && d != j && d !=k |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
328 |
&& e != f && e != g && e != h && e != i && e != j && e !=k |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
329 |
&& f != g && f != h && f != i && f != j && f !=k |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
330 |
&& g != h && g != i && g != j && g !=k |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
331 |
&& h != i && h != j && h !=k |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
332 |
&& i != j && i !=k |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
333 |
&& j !=k, |
33105
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
29180
diff
changeset
|
334 |
"registers must be different: a=" INTPTR_FORMAT ", b=" INTPTR_FORMAT |
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
29180
diff
changeset
|
335 |
", c=" INTPTR_FORMAT ", d=" INTPTR_FORMAT ", e=" INTPTR_FORMAT |
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
29180
diff
changeset
|
336 |
", f=" INTPTR_FORMAT ", g=" INTPTR_FORMAT ", h=" INTPTR_FORMAT |
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
29180
diff
changeset
|
337 |
", i=" INTPTR_FORMAT ", j=" INTPTR_FORMAT ", k=" INTPTR_FORMAT "", |
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
29180
diff
changeset
|
338 |
p2i(a), p2i(b), p2i(c), p2i(d), p2i(e), p2i(f), p2i(g), p2i(h), p2i(i), p2i(j), p2i(k) |
26434
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
339 |
); |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
340 |
} |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
341 |
|
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
342 |
inline void assert_different_registers( |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
343 |
AbstractRegister a, |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
344 |
AbstractRegister b, |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
345 |
AbstractRegister c, |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
346 |
AbstractRegister d, |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
347 |
AbstractRegister e, |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
348 |
AbstractRegister f, |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
349 |
AbstractRegister g, |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
350 |
AbstractRegister h, |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
351 |
AbstractRegister i, |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
352 |
AbstractRegister j, |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
353 |
AbstractRegister k, |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
354 |
AbstractRegister l |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
355 |
) { |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
356 |
assert( |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
357 |
a != b && a != c && a != d && a != e && a != f && a != g && a != h && a != i && a != j && a !=k && a !=l |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
358 |
&& b != c && b != d && b != e && b != f && b != g && b != h && b != i && b != j && b !=k && b !=l |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
359 |
&& c != d && c != e && c != f && c != g && c != h && c != i && c != j && c !=k && c !=l |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
360 |
&& d != e && d != f && d != g && d != h && d != i && d != j && d !=k && d !=l |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
361 |
&& e != f && e != g && e != h && e != i && e != j && e !=k && e !=l |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
362 |
&& f != g && f != h && f != i && f != j && f !=k && f !=l |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
363 |
&& g != h && g != i && g != j && g !=k && g !=l |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
364 |
&& h != i && h != j && h !=k && h !=l |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
365 |
&& i != j && i !=k && i !=l |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
366 |
&& j !=k && j !=l |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
367 |
&& k !=l, |
33105
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
29180
diff
changeset
|
368 |
"registers must be different: a=" INTPTR_FORMAT ", b=" INTPTR_FORMAT |
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
29180
diff
changeset
|
369 |
", c=" INTPTR_FORMAT ", d=" INTPTR_FORMAT ", e=" INTPTR_FORMAT |
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
29180
diff
changeset
|
370 |
", f=" INTPTR_FORMAT ", g=" INTPTR_FORMAT ", h=" INTPTR_FORMAT |
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
29180
diff
changeset
|
371 |
", i=" INTPTR_FORMAT ", j=" INTPTR_FORMAT ", k=" INTPTR_FORMAT |
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
29180
diff
changeset
|
372 |
", l=" INTPTR_FORMAT "", |
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
29180
diff
changeset
|
373 |
p2i(a), p2i(b), p2i(c), p2i(d), p2i(e), p2i(f), p2i(g), p2i(h), p2i(i), p2i(j), p2i(k), p2i(l) |
26434
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
374 |
); |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
375 |
} |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
376 |
|
7397 | 377 |
#endif // SHARE_VM_ASM_REGISTER_HPP |