comparison graal/com.oracle.truffle.api/src/com/oracle/truffle/api/nodes/RootNode.java @ 14565:9c01fabfb167

Truffle: Removed deprecated API; Added NodeFilter to customize filter when counting nodes.
author Christian Humer <christian.humer@gmail.com>
date Mon, 17 Mar 2014 14:29:45 +0100
parents dd2c23065f47
children 6681b9eb3f4c
comparison
equal deleted inserted replaced
14564:5d1308c78ddc 14565:9c01fabfb167
59 } else { 59 } else {
60 this.frameDescriptor = frameDescriptor; 60 this.frameDescriptor = frameDescriptor;
61 } 61 }
62 } 62 }
63 63
64 /**
65 * @deprecated Not required anymore. Do not use.
66 */
67 @Deprecated
68 public RootNode inline() {
69 if (!isInlinable()) {
70 throw new UnsupportedOperationException("Inlining is not enabled.");
71 }
72 return split();
73 }
74
75 /**
76 * @deprecated Not required anymore. Do not use.
77 */
78 @Deprecated
79 public int getInlineNodeCount() {
80 return 0;
81 }
82
83 /**
84 * @deprecated Not required anymore. Do not use.
85 */
86 @Deprecated
87 public boolean isInlinable() {
88 return true;
89 }
90
91 public RootNode split() { 64 public RootNode split() {
92 return NodeUtil.cloneNode(this); 65 return NodeUtil.cloneNode(this);
93 } 66 }
94 67
95 public boolean isSplittable() { 68 public boolean isSplittable() {
146 */ 119 */
147 public final Set<CallNode> getCachedCallNodes() { 120 public final Set<CallNode> getCachedCallNodes() {
148 return Collections.unmodifiableSet(cachedCallNodes); 121 return Collections.unmodifiableSet(cachedCallNodes);
149 } 122 }
150 123
151 /**
152 * @deprecated use {@link #getCachedCallNodes()} instead.
153 */
154 @Deprecated
155 public final CallNode getParentInlinedCall() {
156 return cachedCallNodes.isEmpty() ? null : cachedCallNodes.iterator().next();
157 }
158 } 124 }