# HG changeset patch # User Thomas Wuerthinger # Date 1330352739 -3600 # Node ID dfa7c9a45d8e421f4665678ef75b7aba6582861a # Parent ab906cea36f7ce53a16fa9a8f836e75dedae6066# Parent 27397872945fef4b3ad35426ad4d7e8649ea71ec Merge. diff -r ab906cea36f7 -r dfa7c9a45d8e clean --- a/clean Mon Feb 27 15:15:59 2012 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,5 +0,0 @@ -#!/bin/bash -pushd make -LANG=C ARCH_DATA_MODEL=64 HOTSPOT_BUILD_JOBS=16 make clean -popd - diff -r ab906cea36f7 -r dfa7c9a45d8e domake --- a/domake Mon Feb 27 15:15:59 2012 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,3 +0,0 @@ -mxtools/mx make -mxtools/mx --debug make - diff -r ab906cea36f7 -r dfa7c9a45d8e graal/com.oracle.max.graal.compiler/src/com/oracle/max/graal/compiler/target/amd64/AMD64LIRGenerator.java --- a/graal/com.oracle.max.graal.compiler/src/com/oracle/max/graal/compiler/target/amd64/AMD64LIRGenerator.java Mon Feb 27 15:15:59 2012 +0100 +++ b/graal/com.oracle.max.graal.compiler/src/com/oracle/max/graal/compiler/target/amd64/AMD64LIRGenerator.java Mon Feb 27 15:25:39 2012 +0100 @@ -153,15 +153,20 @@ scale = target().sizeInBytes(location.getValueKind()); } if (isConstant(index)) { - displacement += asConstant(index).asLong() * scale; - index = CiValue.IllegalValue; + long newDisplacement = displacement + asConstant(index).asLong() * scale; + // only use the constant index if the resulting displacement fits into a 32 bit offset + if (NumUtil.isInt(newDisplacement)) { + displacement = newDisplacement; + index = CiValue.IllegalValue; + } else { + // create a temporary variable for the index, the pointer load cannot handle a constant index + CiValue newIndex = newVariable(CiKind.Long); + emitMove(index, newIndex); + index = newIndex; + } } } - if (!NumUtil.isInt(displacement)) { - // Currently it's not worth handling this case. - throw new CiBailout("integer overflow when computing constant displacement"); - } return new CiAddress(location.getValueKind(), base, index, CiAddress.Scale.fromInt(scale), (int) displacement); } diff -r ab906cea36f7 -r dfa7c9a45d8e hotspot/.cproject --- a/hotspot/.cproject Mon Feb 27 15:15:59 2012 +0100 +++ b/hotspot/.cproject Mon Feb 27 15:25:39 2012 +0100 @@ -20,7 +20,7 @@ - + diff -r ab906cea36f7 -r dfa7c9a45d8e hotspot/.project --- a/hotspot/.project Mon Feb 27 15:15:59 2012 +0100 +++ b/hotspot/.project Mon Feb 27 15:25:39 2012 +0100 @@ -23,11 +23,11 @@ org.eclipse.cdt.make.core.autoBuildTarget - jvmg1 + debug org.eclipse.cdt.make.core.buildArguments - ${workspace_loc:/hotspot}/../domake + ${workspace_loc:/hotspot}/../mxtool/mx build org.eclipse.cdt.make.core.buildCommand