Mercurial > hg > graal-jvmci-8
diff c1x4hotspotsrc/HotSpotVM/src/com/sun/hotspot/c1x/HotSpotTypeUnresolved.java @ 1479:71cd4b9610eb
Two fixes for DaCapo / SpecJVM2008 runs.
author | Thomas Wuerthinger <wuerthinger@ssw.jku.at> |
---|---|
date | Sat, 27 Nov 2010 14:30:07 +0100 |
parents | 9e5e83ca2259 |
children | 2fe369533fed |
line wrap: on
line diff
--- a/c1x4hotspotsrc/HotSpotVM/src/com/sun/hotspot/c1x/HotSpotTypeUnresolved.java Fri Nov 26 19:45:05 2010 +0100 +++ b/c1x4hotspotsrc/HotSpotVM/src/com/sun/hotspot/c1x/HotSpotTypeUnresolved.java Sat Nov 27 14:30:07 2010 +0100 @@ -44,6 +44,7 @@ } public HotSpotTypeUnresolved(String name, int dimensions, long accessingClassVmId) { + assert dimensions >= 0; this.name = name; this.dimensions = dimensions; this.accessingClassVmId = accessingClassVmId; @@ -126,8 +127,8 @@ @Override public RiType componentType() { - // TODO: Implement - throw new UnsupportedOperationException(); + assert dimensions > 0; + return new HotSpotTypeUnresolved(name, dimensions - 1, accessingClassVmId); } @Override