Mercurial > hg > graal-compiler
comparison graal/com.oracle.truffle.api.test/src/com/oracle/truffle/api/test/RootNodeTest.java @ 15159:2ed720ce9273
Truffle: Change CallTarget from an abstract class to an interface. Allow varargs.
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Tue, 15 Apr 2014 13:26:26 +0200 |
parents | df1d665ca846 |
children |
comparison
equal
deleted
inserted
replaced
15158:083e9e4df58a | 15159:2ed720ce9273 |
---|---|
28 import com.oracle.truffle.api.frame.*; | 28 import com.oracle.truffle.api.frame.*; |
29 import com.oracle.truffle.api.nodes.*; | 29 import com.oracle.truffle.api.nodes.*; |
30 | 30 |
31 /** | 31 /** |
32 * <h3>Creating a Root Node</h3> | 32 * <h3>Creating a Root Node</h3> |
33 * | 33 * |
34 * <p> | 34 * <p> |
35 * A Truffle root node is the entry point into a Truffle tree that represents a guest language | 35 * A Truffle root node is the entry point into a Truffle tree that represents a guest language |
36 * method. It contains a {@link RootNode#execute(VirtualFrame)} method that can return a | 36 * method. It contains a {@link RootNode#execute(VirtualFrame)} method that can return a |
37 * {@link java.lang.Object} value as the result of the guest language method invocation. This method | 37 * {@link java.lang.Object} value as the result of the guest language method invocation. This method |
38 * must however never be called directly. Instead, the Truffle runtime must be used to create a | 38 * must however never be called directly. Instead, the Truffle runtime must be used to create a |
39 * {@link CallTarget} object from a root node using the | 39 * {@link CallTarget} object from a root node using the |
40 * {@link TruffleRuntime#createCallTarget(RootNode)} method. This call target object can then be | 40 * {@link TruffleRuntime#createCallTarget(RootNode)} method. This call target object can then be |
41 * executed using the {@link CallTarget#call()} method or one of its overloads. | 41 * executed using the {@link CallTarget#call(Object...)} method or one of its overloads. |
42 * </p> | 42 * </p> |
43 * | 43 * |
44 * <p> | 44 * <p> |
45 * The next part of the Truffle API introduction is at | 45 * The next part of the Truffle API introduction is at |
46 * {@link com.oracle.truffle.api.test.ChildNodeTest}. | 46 * {@link com.oracle.truffle.api.test.ChildNodeTest}. |
47 * </p> | 47 * </p> |
48 */ | 48 */ |