comparison c1x4hotspotsrc/HotSpotVM/src/com/sun/hotspot/c1x/HotSpotRuntime.java @ 2295:160aacf936ad

removed last instances of RiType.javaClass, small changes to InvocationSocket and ReplacingStreams to make remote compilation work
author Lukas Stadler <lukas.stadler@jku.at>
date Tue, 12 Apr 2011 16:58:56 +0200
parents e3c42b8de67e
children
comparison
equal deleted inserted replaced
2294:0eb807bd8942 2295:160aacf936ad
155 return getRiType(kind.toJavaClass()); 155 return getRiType(kind.toJavaClass());
156 } 156 }
157 157
158 @Override 158 @Override
159 public RiType getRiType(CiConstant constant) { 159 public RiType getRiType(CiConstant constant) {
160 Object o = constant.asObject(); 160 return compiler.getVMEntries().getRiType(constant);
161 if (o == null) {
162 return null;
163 }
164 return getRiType(o.getClass());
165 } 161 }
166 162
167 @Override 163 @Override
168 public boolean isExceptionType(RiType type) { 164 public boolean isExceptionType(RiType type) {
169 return type.isSubtypeOf(getRiType(Throwable.class)); 165 return type.isSubtypeOf(getRiType(Throwable.class));
230 throw new UnsupportedOperationException("foldWordOperation"); 226 throw new UnsupportedOperationException("foldWordOperation");
231 } 227 }
232 228
233 @Override 229 @Override
234 public boolean compareConstantObjects(CiConstant x, CiConstant y) { 230 public boolean compareConstantObjects(CiConstant x, CiConstant y) {
235 return x.asObject() == y.asObject(); 231 return compiler.getVMEntries().compareConstantObjects(x, y);
236 } 232 }
237 233
238 @Override 234 @Override
239 public RiRegisterConfig getRegisterConfig(RiMethod method) { 235 public RiRegisterConfig getRegisterConfig(RiMethod method) {
240 return regConfig; 236 return regConfig;
253 return true; 249 return true;
254 } 250 }
255 251
256 @Override 252 @Override
257 public int getArrayLength(CiConstant array) { 253 public int getArrayLength(CiConstant array) {
258 return Array.getLength(array.asObject()); 254 return compiler.getVMEntries().getArrayLength(array);
259 } 255 }
260 } 256 }