Mercurial > hg > graal-jvmci-8
diff graal/GraalCompiler/src/com/sun/c1x/ir/BlockEnd.java @ 2712:a0dd2b907806
Removed implicit safepoints.
author | Thomas Wuerthinger <thomas@wuerthinger.net> |
---|---|
date | Thu, 19 May 2011 13:09:37 +0200 |
parents | 7ed72769d51a |
children | 027adfafd47e |
line wrap: on
line diff
--- a/graal/GraalCompiler/src/com/sun/c1x/ir/BlockEnd.java Wed May 18 18:40:58 2011 +0200 +++ b/graal/GraalCompiler/src/com/sun/c1x/ir/BlockEnd.java Thu May 19 13:09:37 2011 +0200 @@ -79,8 +79,6 @@ return blockSuccessorCount; } - private boolean isSafepoint; - /** * Constructs a new block end with the specified value type. * @param kind the type of the value produced by this instruction @@ -88,30 +86,21 @@ * @param isSafepoint {@code true} if this instruction is a safepoint instruction * @param successors the list of successor blocks. If {@code null}, a new one will be created. */ - public BlockEnd(CiKind kind, FrameState stateAfter, boolean isSafepoint, List<BlockBegin> blockSuccessors, int inputCount, int successorCount, Graph graph) { - this(kind, stateAfter, isSafepoint, blockSuccessors.size(), inputCount, successorCount, graph); + public BlockEnd(CiKind kind, FrameState stateAfter, List<BlockBegin> blockSuccessors, int inputCount, int successorCount, Graph graph) { + this(kind, stateAfter, blockSuccessors.size(), inputCount, successorCount, graph); for (int i = 0; i < blockSuccessors.size(); i++) { setBlockSuccessor(i, blockSuccessors.get(i)); } } - public BlockEnd(CiKind kind, FrameState stateAfter, boolean isSafepoint, int blockSuccessorCount, int inputCount, int successorCount, Graph graph) { + public BlockEnd(CiKind kind, FrameState stateAfter, int blockSuccessorCount, int inputCount, int successorCount, Graph graph) { super(kind, inputCount + INPUT_COUNT, successorCount + blockSuccessorCount + SUCCESSOR_COUNT, graph); this.blockSuccessorCount = blockSuccessorCount; setStateAfter(stateAfter); - this.isSafepoint = isSafepoint; - } - - public BlockEnd(CiKind kind, FrameState stateAfter, boolean isSafepoint, Graph graph) { - this(kind, stateAfter, isSafepoint, 2, 0, 0, graph); } - /** - * Checks whether this instruction is a safepoint. - * @return {@code true} if this instruction is a safepoint - */ - public boolean isSafepoint() { - return isSafepoint; + public BlockEnd(CiKind kind, FrameState stateAfter, Graph graph) { + this(kind, stateAfter, 2, 0, 0, graph); } /**