Index: src/mips/code-stubs-mips.cc |
diff --git a/src/mips/code-stubs-mips.cc b/src/mips/code-stubs-mips.cc |
index 11c5b831e5997fa7394e8e76a0f3ef60ac8e5df4..036424fa7b17693441e8f9fa81919e546be403d1 100644 |
--- a/src/mips/code-stubs-mips.cc |
+++ b/src/mips/code-stubs-mips.cc |
@@ -3446,69 +3446,12 @@ void KeyedLoadICStub::GenerateImpl(MacroAssembler* masm, bool in_frame) { |
__ jmp(&compare_map); |
} |
-void StoreICTrampolineStub::Generate(MacroAssembler* masm) { |
- __ EmitLoadTypeFeedbackVector(StoreWithVectorDescriptor::VectorRegister()); |
- StoreICStub stub(isolate(), state()); |
- stub.GenerateForTrampoline(masm); |
-} |
- |
void KeyedStoreICTrampolineStub::Generate(MacroAssembler* masm) { |
__ EmitLoadTypeFeedbackVector(StoreWithVectorDescriptor::VectorRegister()); |
KeyedStoreICStub stub(isolate(), state()); |
stub.GenerateForTrampoline(masm); |
} |
-void StoreICStub::Generate(MacroAssembler* masm) { GenerateImpl(masm, false); } |
- |
-void StoreICStub::GenerateForTrampoline(MacroAssembler* masm) { |
- GenerateImpl(masm, true); |
-} |
- |
-void StoreICStub::GenerateImpl(MacroAssembler* masm, bool in_frame) { |
- Register receiver = StoreWithVectorDescriptor::ReceiverRegister(); // a1 |
- Register key = StoreWithVectorDescriptor::NameRegister(); // a2 |
- Register vector = StoreWithVectorDescriptor::VectorRegister(); // a3 |
- Register slot = StoreWithVectorDescriptor::SlotRegister(); // t0 |
- DCHECK(StoreWithVectorDescriptor::ValueRegister().is(a0)); // a0 |
- Register feedback = t1; |
- Register receiver_map = t2; |
- Register scratch1 = t5; |
- |
- __ 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, scratch1, Operand(at)); |
- |
- Register scratch2 = t4; |
- HandleArrayCases(masm, feedback, receiver_map, scratch1, scratch2, true, |
- &miss); |
- |
- __ bind(¬_array); |
- __ LoadRoot(at, Heap::kmegamorphic_symbolRootIndex); |
- __ Branch(&miss, ne, feedback, Operand(at)); |
- masm->isolate()->store_stub_cache()->GenerateProbe( |
- masm, receiver, key, feedback, receiver_map, scratch1, scratch2); |
- |
- __ bind(&miss); |
- StoreIC::GenerateMiss(masm); |
- |
- __ bind(&load_smi_map); |
- __ Branch(USE_DELAY_SLOT, &compare_map); |
- __ LoadRoot(receiver_map, Heap::kHeapNumberMapRootIndex); // In delay slot. |
-} |
- |
void KeyedStoreICStub::Generate(MacroAssembler* masm) { |
GenerateImpl(masm, false); |
} |