changeset 22435:b6cb0b29260a

Remove dead graalMirrors code
author Tom Rodriguez <tom.rodriguez@oracle.com>
date Wed, 12 Aug 2015 18:30:05 -0700
parents 21baeafdf6a5
children 896d0a9f94da
files graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/HotSpotGraalRuntime.java graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/HotSpotGraalRuntimeProvider.java
diffstat 2 files changed, 0 insertions(+), 28 deletions(-) [+]
line wrap: on
line diff
--- a/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/HotSpotGraalRuntime.java	Wed Aug 12 17:47:01 2015 +0200
+++ b/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/HotSpotGraalRuntime.java	Wed Aug 12 18:30:05 2015 -0700
@@ -169,23 +169,6 @@
     private final HotSpotBackend hostBackend;
     private DebugValuesPrinter debugValuesPrinter;
 
-    /**
-     * Graal mirrors are stored as a {@link ClassValue} associated with the {@link Class} of the
-     * type. This data structure stores both {@link HotSpotResolvedObjectType} and
-     * {@link HotSpotResolvedPrimitiveType} types.
-     */
-    private final ClassValue<ResolvedJavaType> graalMirrors = new ClassValue<ResolvedJavaType>() {
-        @Override
-        protected ResolvedJavaType computeValue(Class<?> javaClass) {
-            if (javaClass.isPrimitive()) {
-                Kind kind = Kind.fromJavaClass(javaClass);
-                return new HotSpotResolvedPrimitiveType(kind);
-            } else {
-                return new HotSpotResolvedObjectTypeImpl(javaClass);
-            }
-        }
-    };
-
     private final Map<Class<? extends Architecture>, HotSpotBackend> backends = new HashMap<>();
 
     private final HotSpotJVMCIRuntime jvmciRuntime;
@@ -290,10 +273,6 @@
         return backend;
     }
 
-    public ResolvedJavaType fromClass(Class<?> javaClass) {
-        return graalMirrors.get(javaClass);
-    }
-
     /**
      * Gets the names of the supported GPU architectures for the purpose of finding the
      * corresponding {@linkplain HotSpotBackendFactory backend} objects.
--- a/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/HotSpotGraalRuntimeProvider.java	Wed Aug 12 17:47:01 2015 +0200
+++ b/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/HotSpotGraalRuntimeProvider.java	Wed Aug 12 18:30:05 2015 -0700
@@ -76,11 +76,4 @@
     }
 
     HotSpotBackend getHostBackend();
-
-    /**
-     * Gets the Graal mirror for a {@link Class} object.
-     *
-     * @return the {@link ResolvedJavaType} corresponding to {@code javaClass}
-     */
-    ResolvedJavaType fromClass(Class<?> clazz);
 }