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
This commit is contained in:
parent
49d646b14c
commit
5b2dff9806
@ -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) {
|
||||
ASSERT(!range->IsFixed());
|
||||
TraceAlloc("Splitting live range %d at %d\n", range->id(), pos.Value());
|
||||
|
@ -591,7 +591,6 @@ class LAllocator BASE_EMBEDDED {
|
||||
|
||||
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,
|
||||
|
Loading…
Reference in New Issue
Block a user