Index: src/lithium-allocator.cc |
diff --git a/src/lithium-allocator.cc b/src/lithium-allocator.cc |
index 5e2474cd1fc89caf0db3d12f3549c715bcf6f454..265d464dda6145d4875aede7043e8766f44aa21d 100644 |
--- a/src/lithium-allocator.cc |
+++ b/src/lithium-allocator.cc |
@@ -1093,7 +1093,6 @@ bool LAllocator::Allocate(LChunk* chunk) { |
AllocateDoubleRegisters(); |
if (!AllocationOk()) return false; |
PopulatePointerMaps(); |
- if (has_osr_entry_) ProcessOsrEntry(); |
ConnectRanges(); |
ResolveControlFlow(); |
return true; |
@@ -1464,37 +1463,6 @@ void LAllocator::PopulatePointerMaps() { |
} |
-void LAllocator::ProcessOsrEntry() { |
- const ZoneList<LInstruction*>* instrs = chunk_->instructions(); |
- |
- // Linear search for the OSR entry instruction in the chunk. |
- int index = -1; |
- while (++index < instrs->length() && |
- !instrs->at(index)->IsOsrEntry()) { |
- } |
- ASSERT(index < instrs->length()); |
- LOsrEntry* instruction = LOsrEntry::cast(instrs->at(index)); |
- |
- LifetimePosition position = LifetimePosition::FromInstructionIndex(index); |
- for (int i = 0; i < live_ranges()->length(); ++i) { |
- LiveRange* range = live_ranges()->at(i); |
- if (range != NULL) { |
- if (range->Covers(position) && |
- range->HasRegisterAssigned() && |
- range->TopLevel()->HasAllocatedSpillOperand()) { |
- int reg_index = range->assigned_register(); |
- LOperand* spill_operand = range->TopLevel()->GetSpillOperand(); |
- if (range->IsDouble()) { |
- instruction->MarkSpilledDoubleRegister(reg_index, spill_operand); |
- } else { |
- instruction->MarkSpilledRegister(reg_index, spill_operand); |
- } |
- } |
- } |
- } |
-} |
- |
- |
void LAllocator::AllocateGeneralRegisters() { |
LAllocatorPhase phase("L_Allocate general registers", this); |
num_registers_ = Register::NumAllocatableRegisters(); |