Mercurial > hg > graal-compiler
comparison src/share/vm/asm/register.hpp @ 6790:2cb2f30450c7
7196262: JSR 292: java/lang/invoke/PrivateInvokeTest.java fails on solaris-sparc
Reviewed-by: kvn, jrose, bdelsart
author | twisti |
---|---|
date | Mon, 17 Sep 2012 12:57:58 -0700 |
parents | 1d7922586cf6 |
children | b9a9ed0f8eeb |
comparison
equal
deleted
inserted
replaced
6749:a6fe94b9759f | 6790:2cb2f30450c7 |
---|---|
101 AbstractRegister a, | 101 AbstractRegister a, |
102 AbstractRegister b | 102 AbstractRegister b |
103 ) { | 103 ) { |
104 assert( | 104 assert( |
105 a != b, | 105 a != b, |
106 err_msg("registers must be different: a=%d, b=%d", | 106 err_msg_res("registers must be different: a=%d, b=%d", |
107 a, b) | 107 a, b) |
108 ); | 108 ); |
109 } | 109 } |
110 | 110 |
111 | 111 |
112 inline void assert_different_registers( | 112 inline void assert_different_registers( |
115 AbstractRegister c | 115 AbstractRegister c |
116 ) { | 116 ) { |
117 assert( | 117 assert( |
118 a != b && a != c | 118 a != b && a != c |
119 && b != c, | 119 && b != c, |
120 err_msg("registers must be different: a=%d, b=%d, c=%d", | 120 err_msg_res("registers must be different: a=%d, b=%d, c=%d", |
121 a, b, c) | 121 a, b, c) |
122 ); | 122 ); |
123 } | 123 } |
124 | 124 |
125 | 125 |
126 inline void assert_different_registers( | 126 inline void assert_different_registers( |
131 ) { | 131 ) { |
132 assert( | 132 assert( |
133 a != b && a != c && a != d | 133 a != b && a != c && a != d |
134 && b != c && b != d | 134 && b != c && b != d |
135 && c != d, | 135 && c != d, |
136 err_msg("registers must be different: a=%d, b=%d, c=%d, d=%d", | 136 err_msg_res("registers must be different: a=%d, b=%d, c=%d, d=%d", |
137 a, b, c, d) | 137 a, b, c, d) |
138 ); | 138 ); |
139 } | 139 } |
140 | 140 |
141 | 141 |
142 inline void assert_different_registers( | 142 inline void assert_different_registers( |
149 assert( | 149 assert( |
150 a != b && a != c && a != d && a != e | 150 a != b && a != c && a != d && a != e |
151 && b != c && b != d && b != e | 151 && b != c && b != d && b != e |
152 && c != d && c != e | 152 && c != d && c != e |
153 && d != e, | 153 && d != e, |
154 err_msg("registers must be different: a=%d, b=%d, c=%d, d=%d, e=%d", | 154 err_msg_res("registers must be different: a=%d, b=%d, c=%d, d=%d, e=%d", |
155 a, b, c, d, e) | 155 a, b, c, d, e) |
156 ); | 156 ); |
157 } | 157 } |
158 | 158 |
159 | 159 |
160 inline void assert_different_registers( | 160 inline void assert_different_registers( |
169 a != b && a != c && a != d && a != e && a != f | 169 a != b && a != c && a != d && a != e && a != f |
170 && b != c && b != d && b != e && b != f | 170 && b != c && b != d && b != e && b != f |
171 && c != d && c != e && c != f | 171 && c != d && c != e && c != f |
172 && d != e && d != f | 172 && d != e && d != f |
173 && e != f, | 173 && e != f, |
174 err_msg("registers must be different: a=%d, b=%d, c=%d, d=%d, e=%d, f=%d", | 174 err_msg_res("registers must be different: a=%d, b=%d, c=%d, d=%d, e=%d, f=%d", |
175 a, b, c, d, e, f) | 175 a, b, c, d, e, f) |
176 ); | 176 ); |
177 } | 177 } |
178 | 178 |
179 | 179 |
180 inline void assert_different_registers( | 180 inline void assert_different_registers( |
191 && b != c && b != d && b != e && b != f && b != g | 191 && b != c && b != d && b != e && b != f && b != g |
192 && c != d && c != e && c != f && c != g | 192 && c != d && c != e && c != f && c != g |
193 && d != e && d != f && d != g | 193 && d != e && d != f && d != g |
194 && e != f && e != g | 194 && e != f && e != g |
195 && f != g, | 195 && f != g, |
196 err_msg("registers must be different: a=%d, b=%d, c=%d, d=%d, e=%d, f=%d, g=%d", | 196 err_msg_res("registers must be different: a=%d, b=%d, c=%d, d=%d, e=%d, f=%d, g=%d", |
197 a, b, c, d, e, f, g) | 197 a, b, c, d, e, f, g) |
198 ); | 198 ); |
199 } | 199 } |
200 | 200 |
201 | 201 |
202 inline void assert_different_registers( | 202 inline void assert_different_registers( |
215 && c != d && c != e && c != f && c != g && c != h | 215 && c != d && c != e && c != f && c != g && c != h |
216 && d != e && d != f && d != g && d != h | 216 && d != e && d != f && d != g && d != h |
217 && e != f && e != g && e != h | 217 && e != f && e != g && e != h |
218 && f != g && f != h | 218 && f != g && f != h |
219 && g != h, | 219 && g != h, |
220 err_msg("registers must be different: a=%d, b=%d, c=%d, d=%d, e=%d, f=%d, g=%d, h=%d", | 220 err_msg_res("registers must be different: a=%d, b=%d, c=%d, d=%d, e=%d, f=%d, g=%d, h=%d", |
221 a, b, c, d, e, f, g, h) | 221 a, b, c, d, e, f, g, h) |
222 ); | 222 ); |
223 } | 223 } |
224 | 224 |
225 | 225 |
226 inline void assert_different_registers( | 226 inline void assert_different_registers( |
241 && d != e && d != f && d != g && d != h && d != i | 241 && d != e && d != f && d != g && d != h && d != i |
242 && e != f && e != g && e != h && e != i | 242 && e != f && e != g && e != h && e != i |
243 && f != g && f != h && f != i | 243 && f != g && f != h && f != i |
244 && g != h && g != i | 244 && g != h && g != i |
245 && h != i, | 245 && h != i, |
246 err_msg("registers must be different: a=%d, b=%d, c=%d, d=%d, e=%d, f=%d, g=%d, h=%d, i=%d", | 246 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", |
247 a, b, c, d, e, f, g, h, i) | 247 a, b, c, d, e, f, g, h, i) |
248 ); | 248 ); |
249 } | 249 } |
250 | 250 |
251 #endif // SHARE_VM_ASM_REGISTER_HPP | 251 #endif // SHARE_VM_ASM_REGISTER_HPP |