Mercurial > hg > truffle
diff 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 |
line wrap: on
line diff
--- a/graal/com.oracle.graal.graphbuilderconf/src/com/oracle/graal/graphbuilderconf/GraphBuilderContext.java Mon May 11 11:11:27 2015 +0200 +++ b/graal/com.oracle.graal.graphbuilderconf/src/com/oracle/graal/graphbuilderconf/GraphBuilderContext.java Wed Apr 22 16:01:59 2015 +0200 @@ -116,7 +116,7 @@ if (equivalentValue instanceof StateSplit) { StateSplit stateSplit = (StateSplit) equivalentValue; if (stateSplit.stateAfter() == null) { - stateSplit.setStateAfter(createStateAfter()); + setStateAfter(stateSplit); } } return equivalentValue; @@ -150,7 +150,7 @@ if (equivalentValue instanceof StateSplit) { StateSplit stateSplit = (StateSplit) equivalentValue; if (stateSplit.stateAfter() == null) { - stateSplit.setStateAfter(createStateAfter()); + setStateAfter(stateSplit); } } return equivalentValue; @@ -194,9 +194,11 @@ /** * Creates a snap shot of the current frame state with the BCI of the instruction after the one - * currently being parsed. + * currently being parsed and assigns it to a given state split node. + * + * @param stateSplit a node just appended to the graph that needs a frame state */ - FrameState createStateAfter(); + void setStateAfter(StateSplit stateSplit); /** * Gets the parsing context for the method that inlines the method being parsed by this context.