Mercurial > hg > truffle
changeset 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 | f5511facb897 |
children | 3851c69bf4ea |
files | src/share/vm/graal/graalCodeInstaller.cpp |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/share/vm/graal/graalCodeInstaller.cpp Thu Mar 22 18:28:18 2012 +0100 +++ b/src/share/vm/graal/graalCodeInstaller.cpp Thu Mar 22 19:13:09 2012 +0100 @@ -202,11 +202,11 @@ if (isLongArray && cur_second == NULL) { // we're trying to put ints into a long array... this isn't really valid, but it's used for some optimizations. // add an int 0 constant -#ifdef BIG_ENDIAN +#ifdef VM_LITTLE_ENDIAN + cur_second = new ConstantIntValue(0); +#else cur_second = value; value = new ConstantIntValue(0); -#else - cur_second = new ConstantIntValue(0); #endif }