Mercurial > hg > graal-compiler
comparison 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 |
comparison
equal
deleted
inserted
replaced
2773:27512ea6bbcb | 2774:93fd92c9f8b0 |
---|---|
88 } | 88 } |
89 | 89 |
90 /** | 90 /** |
91 * Constructs a new block end with the specified value type. | 91 * Constructs a new block end with the specified value type. |
92 * @param kind the type of the value produced by this instruction | 92 * @param kind the type of the value produced by this instruction |
93 * @param stateAfter the frame state at the end of this block | |
94 * @param successors the list of successor blocks. If {@code null}, a new one will be created. | 93 * @param successors the list of successor blocks. If {@code null}, a new one will be created. |
95 */ | 94 */ |
96 public BlockEnd(CiKind kind, FrameState stateAfter, List<? extends Instruction> blockSuccessors, int inputCount, int successorCount, Graph graph) { | 95 public BlockEnd(CiKind kind, List<? extends Instruction> blockSuccessors, int inputCount, int successorCount, Graph graph) { |
97 this(kind, stateAfter, blockSuccessors.size(), inputCount, successorCount, graph); | 96 this(kind, blockSuccessors.size(), inputCount, successorCount, graph); |
98 for (int i = 0; i < blockSuccessors.size(); i++) { | 97 for (int i = 0; i < blockSuccessors.size(); i++) { |
99 setBlockSuccessor(i, blockSuccessors.get(i)); | 98 setBlockSuccessor(i, blockSuccessors.get(i)); |
100 } | 99 } |
101 } | 100 } |
102 | 101 |
103 public BlockEnd(CiKind kind, FrameState stateAfter, int blockSuccessorCount, int inputCount, int successorCount, Graph graph) { | 102 public BlockEnd(CiKind kind, int blockSuccessorCount, int inputCount, int successorCount, Graph graph) { |
104 super(kind, inputCount + INPUT_COUNT, successorCount + blockSuccessorCount + SUCCESSOR_COUNT, graph); | 103 super(kind, inputCount + INPUT_COUNT, successorCount + blockSuccessorCount + SUCCESSOR_COUNT, graph); |
105 this.blockSuccessorCount = blockSuccessorCount; | 104 this.blockSuccessorCount = blockSuccessorCount; |
106 setStateAfter(stateAfter); | |
107 } | 105 } |
108 | 106 |
109 public BlockEnd(CiKind kind, FrameState stateAfter, Graph graph) { | 107 public BlockEnd(CiKind kind, Graph graph) { |
110 this(kind, stateAfter, 2, 0, 0, graph); | 108 this(kind, 2, 0, 0, graph); |
111 } | 109 } |
112 | 110 |
113 /** | 111 /** |
114 * Gets the block begin associated with this block end. | 112 * Gets the block begin associated with this block end. |
115 * @return the beginning of this basic block | 113 * @return the beginning of this basic block |