Mercurial > hg > graal-compiler
comparison graal/com.oracle.truffle.api/src/com/oracle/truffle/api/nodes/CallNode.java @ 14080:cd4595e8a685
Truffle: added notification from callee to callers in the CallNode.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Wed, 05 Mar 2014 23:33:36 +0100 |
parents | ca92db718c74 |
children | 9c01fabfb167 |
comparison
equal
deleted
inserted
replaced
14079:ca92db718c74 | 14080:cd4595e8a685 |
---|---|
112 } | 112 } |
113 | 113 |
114 registerCallTarget((CallNode) newNode); | 114 registerCallTarget((CallNode) newNode); |
115 } | 115 } |
116 | 116 |
117 protected final void registerCallTarget(CallNode newNode) { | 117 protected static final void registerCallTarget(CallNode newNode) { |
118 RootNode newRoot = newNode.getCurrentRootNode(); | 118 RootNode newRoot = newNode.getCurrentRootNode(); |
119 if (newRoot != null) { | 119 if (newRoot != null) { |
120 newRoot.addCachedCallNode(newNode); | 120 newRoot.addCachedCallNode(newNode); |
121 } | 121 } |
122 } | |
123 | |
124 protected void notifyCallNodeAdded() { | |
125 | |
122 } | 126 } |
123 | 127 |
124 /** | 128 /** |
125 * Returns the {@link RootNode} associated with {@link CallTarget} returned by | 129 * Returns the {@link RootNode} associated with {@link CallTarget} returned by |
126 * {@link #getCurrentCallTarget()}. | 130 * {@link #getCurrentCallTarget()}. |
138 | 142 |
139 /** | 143 /** |
140 * @deprecated always returns <code>true</code> now. | 144 * @deprecated always returns <code>true</code> now. |
141 */ | 145 */ |
142 @Deprecated | 146 @Deprecated |
143 public final boolean isInlinable() { | 147 public boolean isInlinable() { |
144 return true; | 148 return true; |
145 } | 149 } |
146 | 150 |
147 /** | 151 /** |
148 * @deprecated instead use {@link #getCurrentRootNode()} and check for {@link #isInlined()} for | 152 * @deprecated instead use {@link #getCurrentRootNode()} and check for {@link #isInlined()} for |