diff graal/com.oracle.truffle.api/src/com/oracle/truffle/api/CompilerDirectives.java @ 14991:64dcb92ee75a

Truffle: Change signature for Truffle calls from (PackedFrame, Arguments) to (Object[]).
author Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
date Sun, 06 Apr 2014 17:46:24 +0200
parents f3a5036cc13c
children f675818d9ad0
line wrap: on
line diff
--- a/graal/com.oracle.truffle.api/src/com/oracle/truffle/api/CompilerDirectives.java	Sat Apr 05 19:35:30 2014 +0200
+++ b/graal/com.oracle.truffle.api/src/com/oracle/truffle/api/CompilerDirectives.java	Sun Apr 06 17:46:24 2014 +0200
@@ -28,9 +28,9 @@
 import java.lang.reflect.*;
 import java.util.concurrent.*;
 
-import com.oracle.truffle.api.frame.*;
+import sun.misc.*;
 
-import sun.misc.*;
+import com.oracle.truffle.api.frame.*;
 
 /**
  * Directives that influence the optimizations of the Truffle compiler. All of the operations have
@@ -196,7 +196,7 @@
      * @return the value to be casted to the new type
      */
     public static MaterializedFrame unsafeFrameCast(MaterializedFrame value) {
-        return unsafeCast(value, getUnsafeFrameType(), true);
+        return unsafeCast(value, getUnsafeFrameType(), true, true);
     }
 
     private static Class<? extends MaterializedFrame> getUnsafeFrameType() {