comparison graal/GraalCompiler/src/com/sun/c1x/ir/LookupSwitch.java @ 2712:a0dd2b907806

Removed implicit safepoints.
author Thomas Wuerthinger <thomas@wuerthinger.net>
date Thu, 19 May 2011 13:09:37 +0200
parents 0c6564c254af
children a3cd5eb68837
comparison
equal deleted inserted replaced
2708:4272b7af2d17 2712:a0dd2b907806
48 * @param keys the list of keys, sorted 48 * @param keys the list of keys, sorted
49 * @param stateBefore the state before the switch 49 * @param stateBefore the state before the switch
50 * @param isSafepoint {@code true} if this instruction is a safepoint 50 * @param isSafepoint {@code true} if this instruction is a safepoint
51 * @param graph 51 * @param graph
52 */ 52 */
53 public LookupSwitch(Value value, List<BlockBegin> successors, int[] keys, FrameState stateBefore, boolean isSafepoint, Graph graph) { 53 public LookupSwitch(Value value, List<BlockBegin> successors, int[] keys, FrameState stateBefore, Graph graph) {
54 super(value, successors, stateBefore, isSafepoint, INPUT_COUNT, SUCCESSOR_COUNT, graph); 54 super(value, successors, stateBefore, INPUT_COUNT, SUCCESSOR_COUNT, graph);
55 this.keys = keys; 55 this.keys = keys;
56 } 56 }
57 57
58 /** 58 /**
59 * Gets the key at the specified index. 59 * Gets the key at the specified index.
74 } 74 }
75 75
76 @Override 76 @Override
77 public void print(LogStream out) { 77 public void print(LogStream out) {
78 out.print("lookupswitch "); 78 out.print("lookupswitch ");
79 if (isSafepoint()) {
80 out.print("(safepoint) ");
81 }
82 out.println(value()); 79 out.println(value());
83 int l = numberOfCases(); 80 int l = numberOfCases();
84 for (int i = 0; i < l; i++) { 81 for (int i = 0; i < l; i++) {
85 INSTRUCTION.advance(out); 82 INSTRUCTION.advance(out);
86 out.printf("case %5d: B%d%n", keyAt(i), blockSuccessors().get(i).blockID); 83 out.printf("case %5d: B%d%n", keyAt(i), blockSuccessors().get(i).blockID);