comparison graal/GraalCompiler/src/com/sun/c1x/ir/Throw.java @ 2781:bda5972a40a5

remove unnecessary BlockBegin nodes in frontend
author Lukas Stadler <lukas.stadler@jku.at>
date Tue, 24 May 2011 15:31:52 +0200
parents 93fd92c9f8b0
children 9bc0c2eb00d6
comparison
equal deleted inserted replaced
2776:398b8fa5dc81 2781:bda5972a40a5
74 /** 74 /**
75 * The entry to the exception dispatch chain for this throw. 75 * The entry to the exception dispatch chain for this throw.
76 * TODO ls: this needs more cleanup - throw should either unwind or jump to the exception dispatch chain 76 * TODO ls: this needs more cleanup - throw should either unwind or jump to the exception dispatch chain
77 */ 77 */
78 @Override 78 @Override
79 public BlockBegin exceptionEdge() { 79 public StateSplit exceptionEdge() {
80 return (BlockBegin) successors().get(super.successorCount() + SUCCESSOR_EXCEPTION_EDGE); 80 return (StateSplit) successors().get(super.successorCount() + SUCCESSOR_EXCEPTION_EDGE);
81 } 81 }
82 82
83 public BlockBegin setExceptionEdge(BlockBegin n) { 83 public Instruction setExceptionEdge(Instruction n) {
84 return (BlockBegin) successors().set(super.successorCount() + SUCCESSOR_EXCEPTION_EDGE, n); 84 return (Instruction) successors().set(super.successorCount() + SUCCESSOR_EXCEPTION_EDGE, n);
85 } 85 }
86 86
87 /** 87 /**
88 * Creates a new Throw instruction. 88 * Creates a new Throw instruction.
89 * @param exception the instruction that generates the exception to throw 89 * @param exception the instruction that generates the exception to throw