Mercurial > hg > truffle
diff graal/com.oracle.truffle.api.test/src/com/oracle/truffle/api/test/ArgumentsTest.java @ 7530:5e3d1a68664e
applied mx eclipseformat to all Java files
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Wed, 23 Jan 2013 16:34:57 +0100 |
parents | a4b84ba6dc2e |
children | e162d9e32830 |
line wrap: on
line diff
--- a/graal/com.oracle.truffle.api.test/src/com/oracle/truffle/api/test/ArgumentsTest.java Wed Jan 23 16:34:38 2013 +0100 +++ b/graal/com.oracle.truffle.api.test/src/com/oracle/truffle/api/test/ArgumentsTest.java Wed Jan 23 16:34:57 2013 +0100 @@ -28,25 +28,26 @@ import com.oracle.truffle.api.frame.*; import com.oracle.truffle.api.nodes.*; - /** * <h3>Passing Arguments</h3> - * + * * <p> - * A guest language can pass its own custom arguments when invoking a Truffle method by creating a subclass of - * {@link Arguments}. When invoking a call target with {@link CallTarget#call(Arguments)}, the arguments can be passed. - * A Truffle node can access the arguments passed into the Truffle method by using {@link VirtualFrame#getArguments()}. + * A guest language can pass its own custom arguments when invoking a Truffle method by creating a + * subclass of {@link Arguments}. When invoking a call target with + * {@link CallTarget#call(Arguments)}, the arguments can be passed. A Truffle node can access the + * arguments passed into the Truffle method by using {@link VirtualFrame#getArguments()}. * </p> - * + * * <p> - * The arguments class should only contain fields that are declared as final. This allows the Truffle runtime to improve - * optimizations around guest language method calls. Also, the arguments object must never be stored into a field. It - * should be created immediately before invoking {@link CallTarget#call(Arguments)} and no longer be accessed - * afterwards. + * The arguments class should only contain fields that are declared as final. This allows the + * Truffle runtime to improve optimizations around guest language method calls. Also, the arguments + * object must never be stored into a field. It should be created immediately before invoking + * {@link CallTarget#call(Arguments)} and no longer be accessed afterwards. * </p> - * + * * <p> - * The next part of the Truffle API introduction is at {@link com.oracle.truffle.api.test.FrameTest}. + * The next part of the Truffle API introduction is at {@link com.oracle.truffle.api.test.FrameTest} + * . * </p> */ public class ArgumentsTest { @@ -61,7 +62,9 @@ } class TestArguments extends Arguments { + final int[] values; + TestArguments(int... values) { this.values = values; } @@ -86,6 +89,7 @@ } class TestArgumentNode extends Node { + private final int index; TestArgumentNode(int index) { @@ -97,4 +101,3 @@ } } } -