Remove unused function AddGapMove from the register allocator.

Review URL: http://codereview.chromium.org/6355009

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@6420 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 49d646b1
...@@ -2013,20 +2013,6 @@ bool LAllocator::IsBlockBoundary(LifetimePosition pos) { ...@@ -2013,20 +2013,6 @@ bool LAllocator::IsBlockBoundary(LifetimePosition pos) {
} }
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) { LiveRange* LAllocator::SplitAt(LiveRange* range, LifetimePosition pos) {
ASSERT(!range->IsFixed()); ASSERT(!range->IsFixed());
TraceAlloc("Splitting live range %d at %d\n", range->id(), pos.Value()); TraceAlloc("Splitting live range %d at %d\n", range->id(), pos.Value());
......
...@@ -591,7 +591,6 @@ class LAllocator BASE_EMBEDDED { ...@@ -591,7 +591,6 @@ class LAllocator BASE_EMBEDDED {
void Spill(LiveRange* range); void Spill(LiveRange* range);
bool IsBlockBoundary(LifetimePosition pos); bool IsBlockBoundary(LifetimePosition pos);
void AddGapMove(int pos, LiveRange* prev, LiveRange* next);
// Helper methods for resolving control flow. // Helper methods for resolving control flow.
void ResolveControlFlow(LiveRange* range, void ResolveControlFlow(LiveRange* range,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment