comparison graal/com.oracle.truffle.api/src/com/oracle/truffle/api/nodes/RootNode.java @ 13804:3840d61e0e68

Merge.
author Christian Humer <christian.humer@gmail.com>
date Tue, 28 Jan 2014 12:52:57 +0100
parents e076c87ab175
children 641f22b1c6b8
comparison
equal deleted inserted replaced
13803:e076c87ab175 13804:3840d61e0e68
75 return NodeUtil.cloneNode(this); 75 return NodeUtil.cloneNode(this);
76 } 76 }
77 77
78 /** 78 /**
79 * Returns the number of nodes that would be returned if {@link #inline()} would get invoked. 79 * Returns the number of nodes that would be returned if {@link #inline()} would get invoked.
80 * This node count may be used for the calculation of a smart inlining heuristic. 80 * This node count may be used for the calculation in a smart inlining heuristic.
81 * 81 *
82 * @see RootNode#inline() 82 * @see RootNode#inline()
83 * @see RootNode#isInlinable() 83 * @see RootNode#isInlinable()
84 * 84 *
85 * @return the number of nodes that will get inlined 85 * @return the number of nodes that will get inlined
91 } 91 }
92 return NodeUtil.countNodes(this); 92 return NodeUtil.countNodes(this);
93 } 93 }
94 94
95 /** 95 /**
96 * Returns true if this RootNode can be inlined. If this method returns true proper 96 * Returns true if this RootNode can be inlined. If this method returns true implementations of
97 * implementations of {@link #inline()} and {@link #getInlineNodeCount()} must be provided. 97 * {@link #inline()} and {@link #getInlineNodeCount()} must be provided. Returns
98 * Returns true by default. 98 * <code>true</code> by default.
99 * 99 *
100 * @see RootNode#inline() 100 * @see RootNode#inline()
101 * @see RootNode#getInlineNodeCount() 101 * @see RootNode#getInlineNodeCount()
102 * 102 *
103 * @return true if this RootNode can be inlined 103 * @return true if this RootNode can be inlined