changeset 22433:b5d0f60a6ff5

removed unused method
author Doug Simon <doug.simon@oracle.com>
date Wed, 12 Aug 2015 17:38:16 +0200
parents 4369b936c520
children 21baeafdf6a5
files graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/HotSpotGraalRuntime.java
diffstat 1 files changed, 0 insertions(+), 18 deletions(-) [+]
line wrap: on
line diff
--- a/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/HotSpotGraalRuntime.java	Tue Aug 11 03:00:55 2015 +0200
+++ b/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/HotSpotGraalRuntime.java	Wed Aug 12 17:38:16 2015 +0200
@@ -25,7 +25,6 @@
 import static com.oracle.graal.compiler.common.GraalOptions.*;
 import static com.oracle.graal.debug.GraalDebugConfig.*;
 import static com.oracle.graal.hotspot.HotSpotGraalRuntime.Options.*;
-import static jdk.internal.jvmci.common.UnsafeAccess.*;
 import static jdk.internal.jvmci.inittimer.InitTimer.*;
 
 import java.lang.reflect.*;
@@ -167,23 +166,6 @@
         return instance.getHostBackend().getTarget().wordKind;
     }
 
-    /**
-     * Reads a klass pointer from a constant object.
-     */
-    public static long unsafeReadKlassPointer(Object object) {
-        return instance.getCompilerToVM().readUnsafeKlassPointer(object);
-    }
-
-    /**
-     * Reads a word value from a given object.
-     */
-    public static long unsafeReadWord(Object object, long offset) {
-        if (getHostWordKind() == Kind.Long) {
-            return unsafe.getLong(object, offset);
-        }
-        return unsafe.getInt(object, offset) & 0xFFFFFFFFL;
-    }
-
     private final HotSpotBackend hostBackend;
     private DebugValuesPrinter debugValuesPrinter;