Index: src/hydrogen.cc |
diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
index 1b8e4f5ddd7eac72c854524c7753a34a4f9caec3..0c2b28bf8c301baed63bb0fcb47898626d41ecd2 100644 |
--- a/src/hydrogen.cc |
+++ b/src/hydrogen.cc |
@@ -313,30 +313,6 @@ int HBasicBlock::LoopNestingDepth() const { |
} |
-void HBasicBlock::ReplaceControlWithGotoSuccessor(int succ) { |
- ASSERT(IsFinished()); |
- ASSERT(end()->SuccessorCount() == 2); // Only this case is supported yet. |
- ASSERT(succ < end()->SuccessorCount()); |
- |
- int unreachable_succ = 1 - succ; |
- |
- // Replace control instruction with if (true) {succ} else {unreachable_succ}. |
- HBranch* new_branch = HBranch::New( |
- zone(), |
- NULL, |
- graph()->GetConstantTrue(), |
- ToBooleanStub::Types(ToBooleanStub::BOOLEAN), |
- end()->SuccessorAt(succ), |
- end()->SuccessorAt(unreachable_succ)); |
- |
- MarkSuccEdgeUnreachable(unreachable_succ); |
- |
- end()->DeleteAndReplaceWith(end()->ActualValue()); |
- new_branch->InsertAfter(last()); |
- end_ = new_branch; |
-} |
- |
- |
void HBasicBlock::PostProcessLoopHeader(IterationStatement* stmt) { |
ASSERT(IsLoopHeader()); |
@@ -355,15 +331,6 @@ void HBasicBlock::PostProcessLoopHeader(IterationStatement* stmt) { |
} |
-void HBasicBlock::MarkSuccEdgeUnreachable(int succ) { |
- ASSERT(IsFinished()); |
- HBasicBlock* succ_block = end()->SuccessorAt(succ); |
- |
- ASSERT(succ_block->predecessors()->length() == 1); |
- succ_block->MarkUnreachable(); |
-} |
- |
- |
void HBasicBlock::RegisterPredecessor(HBasicBlock* pred) { |
if (HasPredecessor()) { |
// Only loop header blocks can have a predecessor added after |