comparison graal/Runtime/src/com/sun/hotspot/c1x/HotSpotRuntime.java @ 2496:96ca0e1b8a1d

Adjustments to react on changes on the RiRuntime interface.
author Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
date Fri, 22 Apr 2011 22:13:35 +0200
parents 099e697d8934
children
comparison
equal deleted inserted replaced
2495:c737ee310b39 2496:96ca0e1b8a1d
138 @Override 138 @Override
139 public RiOsrFrame getOsrFrame(RiMethod method, int bci) { 139 public RiOsrFrame getOsrFrame(RiMethod method, int bci) {
140 return null; 140 return null;
141 } 141 }
142 142
143 @Override
144 public RiType getRiType(Class<?> javaClass) {
145 assert javaClass != null;
146 return compiler.getVMEntries().getType(javaClass);
147 }
148
149 public Class<?> getJavaClass(CiConstant c) { 143 public Class<?> getJavaClass(CiConstant c) {
150 return null; 144 return null;
151 } 145 }
152 146
153 @Override 147 @Override
154 public RiType getRiType(CiKind kind) { 148 public RiType asRiType(CiKind kind) {
155 return getRiType(kind.toJavaClass()); 149 return compiler.getVMEntries().getType(kind.toJavaClass());
156 } 150 }
157 151
158 @Override 152 @Override
159 public RiType getRiType(CiConstant constant) { 153 public RiType getTypeOf(CiConstant constant) {
160 return compiler.getVMEntries().getRiType(constant); 154 return compiler.getVMEntries().getRiType(constant);
161 } 155 }
162 156
163 @Override 157 @Override
164 public boolean isExceptionType(RiType type) { 158 public boolean isExceptionType(RiType type) {
165 return type.isSubtypeOf(getRiType(Throwable.class)); 159 return type.isSubtypeOf(compiler.getVMEntries().getType(Throwable.class));
166 } 160 }
167 161
168 @Override 162 @Override
169 public RiSnippets getSnippets() { 163 public RiSnippets getSnippets() {
170 throw new UnsupportedOperationException("getSnippets"); 164 throw new UnsupportedOperationException("getSnippets");
225 public CiConstant foldWordOperation(int opcode, CiMethodInvokeArguments args) { 219 public CiConstant foldWordOperation(int opcode, CiMethodInvokeArguments args) {
226 throw new UnsupportedOperationException("foldWordOperation"); 220 throw new UnsupportedOperationException("foldWordOperation");
227 } 221 }
228 222
229 @Override 223 @Override
230 public boolean compareConstantObjects(CiConstant x, CiConstant y) { 224 public boolean areConstantObjectsEqual(CiConstant x, CiConstant y) {
231 return compiler.getVMEntries().compareConstantObjects(x, y); 225 return compiler.getVMEntries().compareConstantObjects(x, y);
232 } 226 }
233 227
234 @Override 228 @Override
235 public RiRegisterConfig getRegisterConfig(RiMethod method) { 229 public RiRegisterConfig getRegisterConfig(RiMethod method) {
251 245
252 @Override 246 @Override
253 public int getArrayLength(CiConstant array) { 247 public int getArrayLength(CiConstant array) {
254 return compiler.getVMEntries().getArrayLength(array); 248 return compiler.getVMEntries().getArrayLength(array);
255 } 249 }
250
251 @Override
252 public Class<?> asJavaClass(CiConstant c) {
253 return null;
254 }
255
256 @Override
257 public Object asJavaObject(CiConstant c) {
258 return null;
259 }
256 } 260 }