diff graal/com.oracle.truffle.api/src/com/oracle/truffle/api/CompilerDirectives.java @ 18219:4a8dd0fdcc38

Truffle: remove CompilerDirectives.unsafeFrameCast
author Andreas Woess <andreas.woess@jku.at>
date Thu, 30 Oct 2014 16:32:31 +0100
parents b4e38f4ca414
children d079b2af3a15
line wrap: on
line diff
--- a/graal/com.oracle.truffle.api/src/com/oracle/truffle/api/CompilerDirectives.java	Wed Oct 29 19:54:50 2014 +0100
+++ b/graal/com.oracle.truffle.api/src/com/oracle/truffle/api/CompilerDirectives.java	Thu Oct 30 16:32:31 2014 +0100
@@ -30,8 +30,6 @@
 
 import sun.misc.*;
 
-import com.oracle.truffle.api.frame.*;
-
 /**
  * Directives that influence the optimizations of the Truffle compiler. All of the operations have
  * no effect when executed in the Truffle interpreter.
@@ -231,20 +229,6 @@
     }
 
     /**
-     * Asserts that this value is not null and retrieved from a call to Frame.materialize.
-     *
-     * @param value the value that is known to have been obtained via Frame.materialize
-     * @return the value to be casted to the new type
-     */
-    public static MaterializedFrame unsafeFrameCast(MaterializedFrame value) {
-        return unsafeCast(value, getUnsafeFrameType(), true, true);
-    }
-
-    private static Class<? extends MaterializedFrame> getUnsafeFrameType() {
-        return MaterializedFrame.class;
-    }
-
-    /**
      * Unsafe access to a boolean value within an object. The condition parameter gives a hint to
      * the compiler under which circumstances this access can be moved to an earlier location in the
      * program. The location identity gives a hint to the compiler for improved global value