comparison graal/com.oracle.graal.graphbuilderconf/src/com/oracle/graal/graphbuilderconf/GraphBuilderContext.java @ 21280:b97ec8aec2c7

changed GraphBuilderContext.createStateAfter() to .setStateAfter(StateSplit)
author Doug Simon <doug.simon@oracle.com>
date Wed, 22 Apr 2015 16:01:59 +0200
parents 891e3e7024b8
children 3b5ec1a2b3b5
comparison
equal deleted inserted replaced
21279:b8ad48692008 21280:b97ec8aec2c7
114 } 114 }
115 T equivalentValue = append(value); 115 T equivalentValue = append(value);
116 if (equivalentValue instanceof StateSplit) { 116 if (equivalentValue instanceof StateSplit) {
117 StateSplit stateSplit = (StateSplit) equivalentValue; 117 StateSplit stateSplit = (StateSplit) equivalentValue;
118 if (stateSplit.stateAfter() == null) { 118 if (stateSplit.stateAfter() == null) {
119 stateSplit.setStateAfter(createStateAfter()); 119 setStateAfter(stateSplit);
120 } 120 }
121 } 121 }
122 return equivalentValue; 122 return equivalentValue;
123 } 123 }
124 124
148 T equivalentValue = value.graph() != null ? value : append(value); 148 T equivalentValue = value.graph() != null ? value : append(value);
149 push(kind.getStackKind(), equivalentValue); 149 push(kind.getStackKind(), equivalentValue);
150 if (equivalentValue instanceof StateSplit) { 150 if (equivalentValue instanceof StateSplit) {
151 StateSplit stateSplit = (StateSplit) equivalentValue; 151 StateSplit stateSplit = (StateSplit) equivalentValue;
152 if (stateSplit.stateAfter() == null) { 152 if (stateSplit.stateAfter() == null) {
153 stateSplit.setStateAfter(createStateAfter()); 153 setStateAfter(stateSplit);
154 } 154 }
155 } 155 }
156 return equivalentValue; 156 return equivalentValue;
157 } 157 }
158 158
192 */ 192 */
193 StructuredGraph getGraph(); 193 StructuredGraph getGraph();
194 194
195 /** 195 /**
196 * Creates a snap shot of the current frame state with the BCI of the instruction after the one 196 * Creates a snap shot of the current frame state with the BCI of the instruction after the one
197 * currently being parsed. 197 * currently being parsed and assigns it to a given state split node.
198 */ 198 *
199 FrameState createStateAfter(); 199 * @param stateSplit a node just appended to the graph that needs a frame state
200 */
201 void setStateAfter(StateSplit stateSplit);
200 202
201 /** 203 /**
202 * Gets the parsing context for the method that inlines the method being parsed by this context. 204 * Gets the parsing context for the method that inlines the method being parsed by this context.
203 */ 205 */
204 GraphBuilderContext getParent(); 206 GraphBuilderContext getParent();