diff graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/meta/HotSpotTypePrimitive.java @ 7037:dd81042f4eb1

added unit tests for ResolvedJavaType replaced some CompilerToVM methods used by HotSpotResolvedJavaType with pure Java code
author Doug Simon <doug.simon@oracle.com>
date Tue, 27 Nov 2012 11:21:48 +0100
parents 62818f156081
children ccade022ec83 014727292ae0
line wrap: on
line diff
--- a/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/meta/HotSpotTypePrimitive.java	Tue Nov 27 11:18:34 2012 +0100
+++ b/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/meta/HotSpotTypePrimitive.java	Tue Nov 27 11:21:48 2012 +0100
@@ -122,7 +122,10 @@
     }
 
     @Override
-    public boolean isSubtypeOf(ResolvedJavaType other) {
+    public boolean isAssignableTo(ResolvedJavaType other) {
+        if (other instanceof HotSpotTypePrimitive) {
+            return other == this;
+        }
         return false;
     }
 
@@ -177,11 +180,6 @@
     }
 
     @Override
-    public Constant klass() {
-        throw GraalInternalError.shouldNotReachHere("HotSpotTypePrimitive.klass()");
-    }
-
-    @Override
     public void initialize() {
     }
 }