comparison c1x4hotspotsrc/HotSpotVM/src/com/sun/hotspot/c1x/VMEntriesNative.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
18 * UNIX is a registered trademark in the U.S. and other countries, exclusively licensed through X/Open 18 * UNIX is a registered trademark in the U.S. and other countries, exclusively licensed through X/Open
19 * Company, Ltd. 19 * Company, Ltd.
20 */ 20 */
21 21
22 package com.sun.hotspot.c1x; 22 package com.sun.hotspot.c1x;
23
24 import java.lang.reflect.*;
23 25
24 import com.sun.cri.ci.*; 26 import com.sun.cri.ci.*;
25 import com.sun.cri.ri.*; 27 import com.sun.cri.ri.*;
26 import com.sun.hotspot.c1x.server.*; 28 import com.sun.hotspot.c1x.server.*;
27 29
115 public native void recordBailout(String reason); 117 public native void recordBailout(String reason);
116 118
117 @Override 119 @Override
118 public native RiMethod RiMethod_uniqueConcreteMethod(long vmId); 120 public native RiMethod RiMethod_uniqueConcreteMethod(long vmId);
119 121
122 @Override
123 public int getArrayLength(CiConstant array) {
124 return Array.getLength(array.asObject());
125 }
126
127 @Override
128 public boolean compareConstantObjects(CiConstant x, CiConstant y) {
129 return x.asObject() == y.asObject();
130 }
131
132 @Override
133 public RiType getRiType(CiConstant constant) {
134 Object o = constant.asObject();
135 if (o == null) {
136 return null;
137 }
138 return getType(o.getClass());
139 }
140
120 // Checkstyle: resume 141 // Checkstyle: resume
121 } 142 }