comparison graal/GraalCompiler/src/com/sun/c1x/ir/BlockEnd.java @ 2790:50677668afe3

Towards making goto removal work.
author Thomas Wuerthinger <thomas@wuerthinger.net>
date Wed, 25 May 2011 19:29:40 +0200
parents df4c5254c5cc
children d3fc4fe063bf
comparison
equal deleted inserted replaced
2789:aeccd2af4e9e 2790:50677668afe3
140 } 140 }
141 return -1; 141 return -1;
142 } 142 }
143 143
144 /** 144 /**
145 * This method reorders the predecessors of the i-th successor in such a way that this BlockEnd is at position backEdgeIndex.
146 */
147 public void reorderSuccessor(int i, int backEdgeIndex) {
148 assert i >= 0 && i < blockSuccessorCount;
149 Instruction successor = blockSuccessor(i);
150 if (successor != null) {
151 successors().set(super.successorCount() + SUCCESSOR_COUNT + i, Node.Null);
152 successors().set(super.successorCount() + SUCCESSOR_COUNT + i, successor, backEdgeIndex);
153 }
154 }
155
156 /**
157 * Gets this block end's list of successors. 145 * Gets this block end's list of successors.
158 * @return the successor list 146 * @return the successor list
159 */ 147 */
160 @SuppressWarnings({ "unchecked", "rawtypes"}) 148 @SuppressWarnings({ "unchecked", "rawtypes"})
161 public List<BlockBegin> blockSuccessors() { 149 public List<BlockBegin> blockSuccessors() {