--- old/src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.nodes/src/org/graalvm/compiler/nodes/ControlSplitNode.java 2017-03-20 17:40:20.000000000 -0700 +++ new/src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.nodes/src/org/graalvm/compiler/nodes/ControlSplitNode.java 2017-03-20 17:40:20.000000000 -0700 @@ -42,10 +42,21 @@ public abstract double probability(AbstractBeginNode successor); /** + * Attempts to set the probability for the given successor to the passed value (which has to be + * in the range of 0.0 and 1.0). Returns whether setting the probability was successful. + */ + public abstract boolean setProbability(AbstractBeginNode successor, double value); + + /** * Primary successor of the control split. Data dependencies on the node have to be scheduled in * the primary successor. * * @return the primary successor */ public abstract AbstractBeginNode getPrimarySuccessor(); + + /** + * Returns the number of successors. + */ + public abstract int getSuccessorCount(); }