comparison 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
comparison
equal deleted inserted replaced
14989:a0dbb3628f2a 14991:64dcb92ee75a
26 26
27 import java.lang.annotation.*; 27 import java.lang.annotation.*;
28 import java.lang.reflect.*; 28 import java.lang.reflect.*;
29 import java.util.concurrent.*; 29 import java.util.concurrent.*;
30 30
31 import sun.misc.*;
32
31 import com.oracle.truffle.api.frame.*; 33 import com.oracle.truffle.api.frame.*;
32
33 import sun.misc.*;
34 34
35 /** 35 /**
36 * Directives that influence the optimizations of the Truffle compiler. All of the operations have 36 * Directives that influence the optimizations of the Truffle compiler. All of the operations have
37 * no effect when executed in the Truffle interpreter. 37 * no effect when executed in the Truffle interpreter.
38 */ 38 */
194 * 194 *
195 * @param value the value that is known to have been obtained via Frame.materialize 195 * @param value the value that is known to have been obtained via Frame.materialize
196 * @return the value to be casted to the new type 196 * @return the value to be casted to the new type
197 */ 197 */
198 public static MaterializedFrame unsafeFrameCast(MaterializedFrame value) { 198 public static MaterializedFrame unsafeFrameCast(MaterializedFrame value) {
199 return unsafeCast(value, getUnsafeFrameType(), true); 199 return unsafeCast(value, getUnsafeFrameType(), true, true);
200 } 200 }
201 201
202 private static Class<? extends MaterializedFrame> getUnsafeFrameType() { 202 private static Class<? extends MaterializedFrame> getUnsafeFrameType() {
203 return MaterializedFrame.class; 203 return MaterializedFrame.class;
204 } 204 }