Mercurial > hg > truffle
diff graal/GraalCompiler/src/com/sun/c1x/ir/BlockEnd.java @ 2774:93fd92c9f8b0
Removed usage of stateAfter on BlockEnd instructions.
author | Thomas Wuerthinger <thomas@wuerthinger.net> |
---|---|
date | Tue, 24 May 2011 13:39:50 +0200 |
parents | dd6419f4bfe2 |
children | 398b8fa5dc81 |
line wrap: on
line diff
--- a/graal/GraalCompiler/src/com/sun/c1x/ir/BlockEnd.java Tue May 24 12:07:17 2011 +0200 +++ b/graal/GraalCompiler/src/com/sun/c1x/ir/BlockEnd.java Tue May 24 13:39:50 2011 +0200 @@ -90,24 +90,22 @@ /** * Constructs a new block end with the specified value type. * @param kind the type of the value produced by this instruction - * @param stateAfter the frame state at the end of this block * @param successors the list of successor blocks. If {@code null}, a new one will be created. */ - public BlockEnd(CiKind kind, FrameState stateAfter, List<? extends Instruction> blockSuccessors, int inputCount, int successorCount, Graph graph) { - this(kind, stateAfter, blockSuccessors.size(), inputCount, successorCount, graph); + public BlockEnd(CiKind kind, List<? extends Instruction> blockSuccessors, int inputCount, int successorCount, Graph graph) { + this(kind, blockSuccessors.size(), inputCount, successorCount, graph); for (int i = 0; i < blockSuccessors.size(); i++) { setBlockSuccessor(i, blockSuccessors.get(i)); } } - public BlockEnd(CiKind kind, FrameState stateAfter, int blockSuccessorCount, int inputCount, int successorCount, Graph graph) { + public BlockEnd(CiKind kind, int blockSuccessorCount, int inputCount, int successorCount, Graph graph) { super(kind, inputCount + INPUT_COUNT, successorCount + blockSuccessorCount + SUCCESSOR_COUNT, graph); this.blockSuccessorCount = blockSuccessorCount; - setStateAfter(stateAfter); } - public BlockEnd(CiKind kind, FrameState stateAfter, Graph graph) { - this(kind, stateAfter, 2, 0, 0, graph); + public BlockEnd(CiKind kind, Graph graph) { + this(kind, 2, 0, 0, graph); } /**