Mercurial > hg > truffle
comparison graal/GraalCompiler/src/com/sun/c1x/ir/BlockEnd.java @ 2779:93ec3f067420
Changed CriticalEdgeFinder to use LIRBlock.
author | Thomas Wuerthinger <thomas@wuerthinger.net> |
---|---|
date | Wed, 25 May 2011 11:04:59 +0200 |
parents | 398b8fa5dc81 |
children | 915456e4959e |
comparison
equal
deleted
inserted
replaced
2778:2ac7b30b7290 | 2779:93ec3f067420 |
---|---|
50 } | 50 } |
51 | 51 |
52 /** | 52 /** |
53 * The list of instructions that produce input for this instruction. | 53 * The list of instructions that produce input for this instruction. |
54 */ | 54 */ |
55 public BlockBegin blockSuccessor(int index) { | 55 public Instruction blockSuccessor(int index) { |
56 assert index >= 0 && index < blockSuccessorCount; | 56 assert index >= 0 && index < blockSuccessorCount; |
57 return (BlockBegin) successors().get(super.successorCount() + SUCCESSOR_COUNT + index); | 57 return (Instruction) successors().get(super.successorCount() + SUCCESSOR_COUNT + index); |
58 } | 58 } |
59 | 59 |
60 public Instruction setBlockSuccessor(int index, Instruction n) { | 60 public Instruction setBlockSuccessor(int index, Instruction n) { |
61 assert index >= 0 && index < blockSuccessorCount; | 61 assert index >= 0 && index < blockSuccessorCount; |
62 assert n == null || n instanceof BlockBegin : "only BlockBegins, for now... " + n.getClass(); | 62 assert n == null || n instanceof BlockBegin : "only BlockBegins, for now... " + n.getClass(); |
121 | 121 |
122 /** | 122 /** |
123 * Gets the successor corresponding to the default (fall through) case. | 123 * Gets the successor corresponding to the default (fall through) case. |
124 * @return the default successor | 124 * @return the default successor |
125 */ | 125 */ |
126 public BlockBegin defaultSuccessor() { | 126 public Instruction defaultSuccessor() { |
127 return blockSuccessor(blockSuccessorCount - 1); | 127 return blockSuccessor(blockSuccessorCount - 1); |
128 } | 128 } |
129 | 129 |
130 /** | 130 /** |
131 * Searches for the specified successor and returns its index into the | 131 * Searches for the specified successor and returns its index into the |