comparison 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
comparison
equal deleted inserted replaced
1478:5571b97fc1ec 1479:71cd4b9610eb
42 this.dimensions = 0; 42 this.dimensions = 0;
43 this.accessingClassVmId = accessingClassVmId; 43 this.accessingClassVmId = accessingClassVmId;
44 } 44 }
45 45
46 public HotSpotTypeUnresolved(String name, int dimensions, long accessingClassVmId) { 46 public HotSpotTypeUnresolved(String name, int dimensions, long accessingClassVmId) {
47 assert dimensions >= 0;
47 this.name = name; 48 this.name = name;
48 this.dimensions = dimensions; 49 this.dimensions = dimensions;
49 this.accessingClassVmId = accessingClassVmId; 50 this.accessingClassVmId = accessingClassVmId;
50 } 51 }
51 52
124 throw unresolved("isInstance()"); 125 throw unresolved("isInstance()");
125 } 126 }
126 127
127 @Override 128 @Override
128 public RiType componentType() { 129 public RiType componentType() {
129 // TODO: Implement 130 assert dimensions > 0;
130 throw new UnsupportedOperationException(); 131 return new HotSpotTypeUnresolved(name, dimensions - 1, accessingClassVmId);
131 } 132 }
132 133
133 @Override 134 @Override
134 public RiType exactType() { 135 public RiType exactType() {
135 throw unresolved("exactType()"); 136 throw unresolved("exactType()");