Revision: 6420
Author: [email protected]
Date: Thu Jan 20 06:37:28 2011
Log: Remove unused function AddGapMove from the register allocator.
Review URL: http://codereview.chromium.org/6355009
http://code.google.com/p/v8/source/detail?r=6420
Modified:
/branches/bleeding_edge/src/lithium-allocator.cc
/branches/bleeding_edge/src/lithium-allocator.h
=======================================
--- /branches/bleeding_edge/src/lithium-allocator.cc Wed Jan 19 05:55:56
2011
+++ /branches/bleeding_edge/src/lithium-allocator.cc Thu Jan 20 06:37:28
2011
@@ -2011,20 +2011,6 @@
return pos.IsInstructionStart() &&
chunk_->instructions()->at(pos.InstructionIndex())->IsLabel();
}
-
-
-void LAllocator::AddGapMove(int pos, LiveRange* prev, LiveRange* next) {
- UsePosition* prev_pos = prev->AddUsePosition(
- LifetimePosition::FromInstructionIndex(pos));
- UsePosition* next_pos = next->AddUsePosition(
- LifetimePosition::FromInstructionIndex(pos));
- LOperand* prev_operand = prev_pos->operand();
- LOperand* next_operand = next_pos->operand();
- LGap* gap = chunk_->GetGapAt(pos);
- gap->GetOrCreateParallelMove(LGap::START)->
- AddMove(prev_operand, next_operand);
- next_pos->set_hint(prev_operand);
-}
LiveRange* LAllocator::SplitAt(LiveRange* range, LifetimePosition pos) {
=======================================
--- /branches/bleeding_edge/src/lithium-allocator.h Wed Jan 19 05:55:56 2011
+++ /branches/bleeding_edge/src/lithium-allocator.h Thu Jan 20 06:37:28 2011
@@ -591,7 +591,6 @@
void Spill(LiveRange* range);
bool IsBlockBoundary(LifetimePosition pos);
- void AddGapMove(int pos, LiveRange* prev, LiveRange* next);
// Helper methods for resolving control flow.
void ResolveControlFlow(LiveRange* range,
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev