Mercurial > hg > graal-compiler
comparison graal/com.oracle.truffle.api/src/com/oracle/truffle/api/nodes/CallNode.java @ 14079:ca92db718c74
Truffle: refined split/inlining heuristics.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Wed, 05 Mar 2014 23:33:25 +0100 |
parents | f157fabf6b38 |
children | cd4595e8a685 |
comparison
equal
deleted
inserted
replaced
14078:f157fabf6b38 | 14079:ca92db718c74 |
---|---|
109 RootNode oldRoot = getCurrentRootNode(); | 109 RootNode oldRoot = getCurrentRootNode(); |
110 if (oldRoot != null) { | 110 if (oldRoot != null) { |
111 oldRoot.removeCachedCallNode(oldCall); | 111 oldRoot.removeCachedCallNode(oldCall); |
112 } | 112 } |
113 | 113 |
114 /* | 114 registerCallTarget((CallNode) newNode); |
115 * New call nodes are registered in the new target root node. | 115 } |
116 */ | 116 |
117 CallNode newCall = (CallNode) newNode; | 117 protected final void registerCallTarget(CallNode newNode) { |
118 RootNode newRoot = newCall.getCurrentRootNode(); | 118 RootNode newRoot = newNode.getCurrentRootNode(); |
119 if (newRoot != null) { | 119 if (newRoot != null) { |
120 newRoot.addCachedCallNode(newCall); | 120 newRoot.addCachedCallNode(newNode); |
121 } | 121 } |
122 } | 122 } |
123 | 123 |
124 /** | 124 /** |
125 * Returns the {@link RootNode} associated with {@link CallTarget} returned by | 125 * Returns the {@link RootNode} associated with {@link CallTarget} returned by |