Mercurial > hg > truffle
comparison graal/GraalCompiler/src/com/sun/c1x/ir/TableSwitch.java @ 2602:0c6564c254af
new node layout: BlockBegin, BlockEnd
-Dc1x.dot=regex for pdf output
escape dot graph labels (<, >, &)
author | Lukas Stadler <lukas.stadler@jku.at> |
---|---|
date | Fri, 06 May 2011 10:25:37 +0200 |
parents | 4a36a0bd6d18 |
children | a0dd2b907806 |
comparison
equal
deleted
inserted
replaced
2601:224e8b4007bd | 2602:0c6564c254af |
---|---|
24 | 24 |
25 import static com.sun.c1x.debug.InstructionPrinter.InstructionLineColumn.*; | 25 import static com.sun.c1x.debug.InstructionPrinter.InstructionLineColumn.*; |
26 | 26 |
27 import java.util.*; | 27 import java.util.*; |
28 | 28 |
29 import com.oracle.graal.graph.*; | |
29 import com.sun.c1x.debug.*; | 30 import com.sun.c1x.debug.*; |
30 import com.sun.c1x.value.*; | 31 import com.sun.c1x.value.*; |
31 | 32 |
32 /** | 33 /** |
33 * The {@code TableSwitch} instruction represents a table switch. | 34 * The {@code TableSwitch} instruction represents a table switch. |
34 * | |
35 * @author Ben L. Titzer | |
36 */ | 35 */ |
37 public final class TableSwitch extends Switch { | 36 public final class TableSwitch extends Switch { |
37 | |
38 private static final int INPUT_COUNT = 0; | |
39 private static final int SUCCESSOR_COUNT = 0; | |
38 | 40 |
39 final int lowKey; | 41 final int lowKey; |
40 | 42 |
41 /** | 43 /** |
42 * Constructs a new TableSwitch instruction. | 44 * Constructs a new TableSwitch instruction. |
43 * @param value the instruction producing the value being switched on | 45 * @param value the instruction producing the value being switched on |
44 * @param successors the list of successors | 46 * @param successors the list of successors |
45 * @param lowKey the lowest integer key in the table | 47 * @param lowKey the lowest integer key in the table |
46 * @param stateBefore the state before the switch | 48 * @param stateBefore the state before the switch |
47 * @param isSafepoint {@code true} if this instruction is a safepoint | 49 * @param isSafepoint {@code true} if this instruction is a safepoint |
50 * @param graph | |
48 */ | 51 */ |
49 public TableSwitch(Value value, List<BlockBegin> successors, int lowKey, FrameState stateBefore, boolean isSafepoint) { | 52 public TableSwitch(Value value, List<BlockBegin> successors, int lowKey, FrameState stateBefore, boolean isSafepoint, Graph graph) { |
50 super(value, successors, stateBefore, isSafepoint); | 53 super(value, successors, stateBefore, isSafepoint, INPUT_COUNT, SUCCESSOR_COUNT, graph); |
51 this.lowKey = lowKey; | 54 this.lowKey = lowKey; |
52 } | 55 } |
53 | 56 |
54 /** | 57 /** |
55 * Gets the lowest key in the table switch (inclusive). | 58 * Gets the lowest key in the table switch (inclusive). |