comparison graal/GraalCompiler/src/com/sun/c1x/ir/BlockBegin.java @ 2782:915456e4959e

Merge
author Thomas Wuerthinger <thomas@wuerthinger.net>
date Wed, 25 May 2011 11:15:24 +0200
parents 93ec3f067420 bda5972a40a5
children df4c5254c5cc
comparison
equal deleted inserted replaced
2780:79dda81dd337 2782:915456e4959e
35 * about the basic block, including the successor and 35 * about the basic block, including the successor and
36 * predecessor blocks, exception handlers, liveness information, etc. 36 * predecessor blocks, exception handlers, liveness information, etc.
37 */ 37 */
38 public final class BlockBegin extends StateSplit { 38 public final class BlockBegin extends StateSplit {
39 39
40 private static final int INPUT_COUNT = 1; 40 private static final int INPUT_COUNT = 0;
41 private static final int INPUT_STATE_BEFORE = 0;
42 41
43 private static final int SUCCESSOR_COUNT = 0; 42 private static final int SUCCESSOR_COUNT = 0;
44 43
45 @Override 44 @Override
46 protected int inputCount() { 45 protected int inputCount() {
133 132
134 Instruction inst = this; 133 Instruction inst = this;
135 ArrayList<BlockBegin> excBlocks = new ArrayList<BlockBegin>(); 134 ArrayList<BlockBegin> excBlocks = new ArrayList<BlockBegin>();
136 while (inst != null) { 135 while (inst != null) {
137 if (inst instanceof ExceptionEdgeInstruction) { 136 if (inst instanceof ExceptionEdgeInstruction) {
138 excBlocks.add(((ExceptionEdgeInstruction) inst).exceptionEdge()); 137 excBlocks.add((BlockBegin) ((ExceptionEdgeInstruction) inst).exceptionEdge());
139 } 138 }
140 inst = inst.next(); 139 inst = inst.next();
141 } 140 }
142 while (excBlocks.remove(null)) { 141 while (excBlocks.remove(null)) {
143 // nothing 142 // nothing