Mercurial > hg > graal-compiler
comparison src/share/vm/graal/graalCodeInstaller.cpp @ 5144:f7b2800b1738
Use VM_LITTLE_ENDIAN to determine endianness.
author | Andreas Woess <andreas.woess@jku.at> |
---|---|
date | Thu, 22 Mar 2012 19:13:09 +0100 |
parents | ab038e0d6b43 |
children | af8958fe5a3a |
comparison
equal
deleted
inserted
replaced
5143:f5511facb897 | 5144:f7b2800b1738 |
---|---|
200 ScopeValue* value = get_hotspot_value(((oop*) values->base(T_OBJECT))[i], total_frame_size, objects, cur_second); | 200 ScopeValue* value = get_hotspot_value(((oop*) values->base(T_OBJECT))[i], total_frame_size, objects, cur_second); |
201 | 201 |
202 if (isLongArray && cur_second == NULL) { | 202 if (isLongArray && cur_second == NULL) { |
203 // we're trying to put ints into a long array... this isn't really valid, but it's used for some optimizations. | 203 // we're trying to put ints into a long array... this isn't really valid, but it's used for some optimizations. |
204 // add an int 0 constant | 204 // add an int 0 constant |
205 #ifdef BIG_ENDIAN | 205 #ifdef VM_LITTLE_ENDIAN |
206 cur_second = new ConstantIntValue(0); | |
207 #else | |
206 cur_second = value; | 208 cur_second = value; |
207 value = new ConstantIntValue(0); | 209 value = new ConstantIntValue(0); |
208 #else | |
209 cur_second = new ConstantIntValue(0); | |
210 #endif | 210 #endif |
211 } | 211 } |
212 | 212 |
213 if (cur_second != NULL) { | 213 if (cur_second != NULL) { |
214 sv->field_values()->append(cur_second); | 214 sv->field_values()->append(cur_second); |