Mercurial > hg > graal-compiler
comparison graal/com.oracle.truffle.api.test/src/com/oracle/truffle/api/test/ReplaceTest.java @ 19510:1cde96b96673
Fixed code format issues.
author | Roland Schatz <roland.schatz@oracle.com> |
---|---|
date | Thu, 19 Feb 2015 16:15:56 +0100 |
parents | a08b8694f556 |
children |
comparison
equal
deleted
inserted
replaced
19508:8c7536965c95 | 19510:1cde96b96673 |
---|---|
32 import com.oracle.truffle.api.frame.*; | 32 import com.oracle.truffle.api.frame.*; |
33 import com.oracle.truffle.api.nodes.*; | 33 import com.oracle.truffle.api.nodes.*; |
34 | 34 |
35 /** | 35 /** |
36 * <h3>Replacing Nodes at Run Time</h3> | 36 * <h3>Replacing Nodes at Run Time</h3> |
37 * | 37 * |
38 * <p> | 38 * <p> |
39 * The structure of the Truffle tree can be changed at run time by replacing nodes using the | 39 * The structure of the Truffle tree can be changed at run time by replacing nodes using the |
40 * {@link Node#replace(Node)} method. This method will automatically change the child pointer in the | 40 * {@link Node#replace(Node)} method. This method will automatically change the child pointer in the |
41 * parent of the node and replace it with a pointer to the new node. | 41 * parent of the node and replace it with a pointer to the new node. |
42 * </p> | 42 * </p> |
43 * | 43 * |
44 * <p> | 44 * <p> |
45 * Replacing nodes is a costly operation, so it should not happen too often. The convention is that | 45 * Replacing nodes is a costly operation, so it should not happen too often. The convention is that |
46 * the implementation of the Truffle nodes should ensure that there are maximal a small (and | 46 * the implementation of the Truffle nodes should ensure that there are maximal a small (and |
47 * constant) number of node replacements per Truffle node. | 47 * constant) number of node replacements per Truffle node. |
48 * </p> | 48 * </p> |
49 * | 49 * |
50 * <p> | 50 * <p> |
51 * The next part of the Truffle API introduction is at {@link com.oracle.truffle.api.test.CallTest}. | 51 * The next part of the Truffle API introduction is at {@link com.oracle.truffle.api.test.CallTest}. |
52 * </p> | 52 * </p> |
53 */ | 53 */ |
54 public class ReplaceTest { | 54 public class ReplaceTest { |