comparison graal/com.oracle.truffle.api/src/com/oracle/truffle/api/TruffleRuntime.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 f46cab39a9a2
children f675818d9ad0
comparison
equal deleted inserted replaced
14989:a0dbb3628f2a 14991:64dcb92ee75a
33 */ 33 */
34 public interface TruffleRuntime { 34 public interface TruffleRuntime {
35 35
36 /** 36 /**
37 * Name describing this runtime implementation for debugging purposes. 37 * Name describing this runtime implementation for debugging purposes.
38 * 38 *
39 * @return the name as a String 39 * @return the name as a String
40 */ 40 */
41 String getName(); 41 String getName();
42 42
43 /** 43 /**
44 * Creates a new call target for a given root node. 44 * Creates a new call target for a given root node.
45 * 45 *
46 * @param rootNode the root node whose 46 * @param rootNode the root node whose
47 * {@link RootNode#execute(com.oracle.truffle.api.frame.VirtualFrame)} method 47 * {@link RootNode#execute(com.oracle.truffle.api.frame.VirtualFrame)} method
48 * represents the entry point 48 * represents the entry point
49 * @return the new call target object 49 * @return the new call target object
50 */ 50 */
52 52
53 CallNode createCallNode(CallTarget target); 53 CallNode createCallNode(CallTarget target);
54 54
55 /** 55 /**
56 * Creates a new assumption object that can be checked and invalidated. 56 * Creates a new assumption object that can be checked and invalidated.
57 * 57 *
58 * @return the newly created assumption object 58 * @return the newly created assumption object
59 */ 59 */
60 Assumption createAssumption(); 60 Assumption createAssumption();
61 61
62 /** 62 /**
63 * Creates a new assumption object with a given name that can be checked and invalidated. 63 * Creates a new assumption object with a given name that can be checked and invalidated.
64 * 64 *
65 * @param name the name for the new assumption 65 * @param name the name for the new assumption
66 * @return the newly created assumption object 66 * @return the newly created assumption object
67 */ 67 */
68 Assumption createAssumption(String name); 68 Assumption createAssumption(String name);
69 69
70 /** 70 /**
71 * Creates a new virtual frame object that can be used to store values and is potentially 71 * Creates a new virtual frame object that can be used to store values and is potentially
72 * optimizable by the runtime. 72 * optimizable by the runtime.
73 * 73 *
74 * @return the newly created virtual frame object 74 * @return the newly created virtual frame object
75 */ 75 */
76 VirtualFrame createVirtualFrame(PackedFrame caller, Arguments arguments, FrameDescriptor frameDescriptor); 76 VirtualFrame createVirtualFrame(Object[] arguments, FrameDescriptor frameDescriptor);
77 77
78 /** 78 /**
79 * Creates a new materialized frame object that can be used to store values. 79 * Creates a new materialized frame object that can be used to store values.
80 * 80 *
81 * @return the newly created materialized frame object 81 * @return the newly created materialized frame object
82 */ 82 */
83 MaterializedFrame createMaterializedFrame(Arguments arguments); 83 MaterializedFrame createMaterializedFrame(Object[] arguments);
84 84
85 /** 85 /**
86 * Creates a new materialized frame object with the given frame descriptor that can be used to 86 * Creates a new materialized frame object with the given frame descriptor that can be used to
87 * store values. 87 * store values.
88 * 88 *
89 * @param frameDescriptor the frame descriptor describing this frame's values 89 * @param frameDescriptor the frame descriptor describing this frame's values
90 * @return the newly created materialized frame object 90 * @return the newly created materialized frame object
91 */ 91 */
92 MaterializedFrame createMaterializedFrame(Arguments arguments, FrameDescriptor frameDescriptor); 92 MaterializedFrame createMaterializedFrame(Object[] arguments, FrameDescriptor frameDescriptor);
93 } 93 }