Index: src/mips/code-stubs-mips.cc |
diff --git a/src/mips/code-stubs-mips.cc b/src/mips/code-stubs-mips.cc |
index ebccca2e6367d8885d4e2916d9f0ed5cb70e78ea..11c5b831e5997fa7394e8e76a0f3ef60ac8e5df4 100644 |
--- a/src/mips/code-stubs-mips.cc |
+++ b/src/mips/code-stubs-mips.cc |
@@ -3277,13 +3277,6 @@ void StubFailureTrampolineStub::Generate(MacroAssembler* masm) { |
} |
-void LoadICTrampolineStub::Generate(MacroAssembler* masm) { |
- __ EmitLoadTypeFeedbackVector(LoadWithVectorDescriptor::VectorRegister()); |
- LoadICStub stub(isolate()); |
- stub.GenerateForTrampoline(masm); |
-} |
- |
- |
void KeyedLoadICTrampolineStub::Generate(MacroAssembler* masm) { |
__ EmitLoadTypeFeedbackVector(LoadWithVectorDescriptor::VectorRegister()); |
KeyedLoadICStub stub(isolate()); |
@@ -3298,14 +3291,6 @@ void CallICTrampolineStub::Generate(MacroAssembler* masm) { |
} |
-void LoadICStub::Generate(MacroAssembler* masm) { GenerateImpl(masm, false); } |
- |
- |
-void LoadICStub::GenerateForTrampoline(MacroAssembler* masm) { |
- GenerateImpl(masm, true); |
-} |
- |
- |
static void HandleArrayCases(MacroAssembler* masm, Register feedback, |
Register receiver_map, Register scratch1, |
Register scratch2, bool is_polymorphic, |
@@ -3393,48 +3378,6 @@ static void HandleMonomorphicCase(MacroAssembler* masm, Register receiver, |
} |
-void LoadICStub::GenerateImpl(MacroAssembler* masm, bool in_frame) { |
- Register receiver = LoadWithVectorDescriptor::ReceiverRegister(); // a1 |
- Register name = LoadWithVectorDescriptor::NameRegister(); // a2 |
- Register vector = LoadWithVectorDescriptor::VectorRegister(); // a3 |
- Register slot = LoadWithVectorDescriptor::SlotRegister(); // a0 |
- Register feedback = t0; |
- Register receiver_map = t1; |
- Register scratch1 = t4; |
- |
- __ Lsa(feedback, vector, slot, kPointerSizeLog2 - kSmiTagSize); |
- __ lw(feedback, FieldMemOperand(feedback, FixedArray::kHeaderSize)); |
- |
- // Try to quickly handle the monomorphic case without knowing for sure |
- // if we have a weak cell in feedback. We do know it's safe to look |
- // at WeakCell::kValueOffset. |
- Label try_array, load_smi_map, compare_map; |
- Label not_array, miss; |
- HandleMonomorphicCase(masm, receiver, receiver_map, feedback, vector, slot, |
- scratch1, &compare_map, &load_smi_map, &try_array); |
- |
- // Is it a fixed array? |
- __ bind(&try_array); |
- __ lw(scratch1, FieldMemOperand(feedback, HeapObject::kMapOffset)); |
- __ LoadRoot(at, Heap::kFixedArrayMapRootIndex); |
- __ Branch(¬_array, ne, at, Operand(scratch1)); |
- HandleArrayCases(masm, feedback, receiver_map, scratch1, t5, true, &miss); |
- |
- __ bind(¬_array); |
- __ LoadRoot(at, Heap::kmegamorphic_symbolRootIndex); |
- __ Branch(&miss, ne, at, Operand(feedback)); |
- masm->isolate()->load_stub_cache()->GenerateProbe( |
- masm, receiver, name, feedback, receiver_map, scratch1, t5); |
- |
- __ bind(&miss); |
- LoadIC::GenerateMiss(masm); |
- |
- __ bind(&load_smi_map); |
- __ LoadRoot(receiver_map, Heap::kHeapNumberMapRootIndex); |
- __ jmp(&compare_map); |
-} |
- |
- |
void KeyedLoadICStub::Generate(MacroAssembler* masm) { |
GenerateImpl(masm, false); |
} |