Mercurial > hg > graal-compiler
comparison graal/GraalCompiler/src/com/sun/c1x/ir/Switch.java @ 2741:a3cd5eb68837
more GraphBuilder cleanup, moved mergeOrClone to GraphBuilder
author | Lukas Stadler <lukas.stadler@jku.at> |
---|---|
date | Fri, 20 May 2011 11:11:33 +0200 |
parents | a0dd2b907806 |
children | 6048da340364 |
comparison
equal
deleted
inserted
replaced
2736:03b80fb10ae9 | 2741:a3cd5eb68837 |
---|---|
61 | 61 |
62 /** | 62 /** |
63 * Constructs a new Switch. | 63 * Constructs a new Switch. |
64 * @param value the instruction that provides the value to be switched over | 64 * @param value the instruction that provides the value to be switched over |
65 * @param successors the list of successors of this switch | 65 * @param successors the list of successors of this switch |
66 * @param stateBefore the state before the switch | 66 * @param stateAfter the state after the switch |
67 * @param isSafepoint {@code true} if this switch is a safepoint | 67 * @param isSafepoint {@code true} if this switch is a safepoint |
68 * @param graph | 68 * @param graph |
69 */ | 69 */ |
70 public Switch(Value value, List<BlockBegin> successors, FrameState stateBefore, int inputCount, int successorCount, Graph graph) { | 70 public Switch(Value value, List<BlockBegin> successors, FrameState stateAfter, int inputCount, int successorCount, Graph graph) { |
71 super(CiKind.Illegal, stateBefore, successors, inputCount + INPUT_COUNT, successorCount + SUCCESSOR_COUNT, graph); | 71 super(CiKind.Illegal, stateAfter, successors, inputCount + INPUT_COUNT, successorCount + SUCCESSOR_COUNT, graph); |
72 setValue(value); | 72 setValue(value); |
73 } | 73 } |
74 | 74 |
75 /** | 75 /** |
76 * Gets the number of cases that this switch covers (excluding the default case). | 76 * Gets the number of cases that this switch covers (excluding the default case). |