Mercurial > hg > truffle
diff graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/extended/SwitchNode.java @ 7530:5e3d1a68664e
applied mx eclipseformat to all Java files
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Wed, 23 Jan 2013 16:34:57 +0100 |
parents | 3964f3d4eb18 |
children | 96a596d751ab |
line wrap: on
line diff
--- a/graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/extended/SwitchNode.java Wed Jan 23 16:34:38 2013 +0100 +++ b/graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/extended/SwitchNode.java Wed Jan 23 16:34:57 2013 +0100 @@ -33,6 +33,7 @@ * The {@code SwitchNode} class is the base of both lookup and table switches. */ public abstract class SwitchNode extends ControlSplitNode { + @Successor protected final NodeSuccessorList<BeginNode> successors; protected double[] successorProbabilities; @Input private ValueNode value; @@ -41,6 +42,7 @@ /** * Constructs a new Switch. + * * @param value the instruction that provides the value to be switched over * @param successors the list of successors of this switch */ @@ -121,6 +123,7 @@ /** * Gets the successor corresponding to the default (fall through) case. + * * @return the default successor */ public BeginNode defaultSuccessor() { @@ -132,6 +135,7 @@ /** * Helper function that sums up the probabilities of all keys that lead to a specific successor. + * * @return an array of size successorCount with the accumulated probability for each successor. */ public static double[] successorProbabilites(int successorCount, int[] keySuccessors, double[] keyProbabilities) {