comparison graal/GraalCompiler/src/com/sun/c1x/ir/ExceptionDispatch.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 d3fc4fe063bf
comparison
equal deleted inserted replaced
2778:2ac7b30b7290 2779:93ec3f067420
78 78
79 /** 79 /**
80 * Gets the block corresponding to the catch block. 80 * Gets the block corresponding to the catch block.
81 * @return the true successor 81 * @return the true successor
82 */ 82 */
83 public BlockBegin catchSuccessor() { 83 public Instruction catchSuccessor() {
84 return blockSuccessor(1); 84 return blockSuccessor(1);
85 } 85 }
86 86
87 /** 87 /**
88 * Gets the block corresponding to the rest of the dispatch chain. 88 * Gets the block corresponding to the rest of the dispatch chain.
89 * @return the false successor 89 * @return the false successor
90 */ 90 */
91 public BlockBegin otherSuccessor() { 91 public Instruction otherSuccessor() {
92 return blockSuccessor(0); 92 return blockSuccessor(0);
93 } 93 }
94 94
95 /** 95 /**
96 * Gets the block corresponding to the specified outcome of the branch. 96 * Gets the block corresponding to the specified outcome of the branch.
97 * @param istrue {@code true} if the true successor is requested, {@code false} otherwise 97 * @param istrue {@code true} if the true successor is requested, {@code false} otherwise
98 * @return the corresponding successor 98 * @return the corresponding successor
99 */ 99 */
100 public BlockBegin successor(boolean istrue) { 100 public Instruction successor(boolean istrue) {
101 return blockSuccessor(istrue ? 1 : 0); 101 return blockSuccessor(istrue ? 1 : 0);
102 } 102 }
103 103
104 @Override 104 @Override
105 public void accept(ValueVisitor v) { 105 public void accept(ValueVisitor v) {