Index: src/s390/code-stubs-s390.cc |
diff --git a/src/s390/code-stubs-s390.cc b/src/s390/code-stubs-s390.cc |
index b7e9f9570fff890cee07ba4107bd946e95f90861..146bc86a6cc9165eef229226e48f2cdf1584ed82 100644 |
--- a/src/s390/code-stubs-s390.cc |
+++ b/src/s390/code-stubs-s390.cc |
@@ -3306,70 +3306,12 @@ void KeyedLoadICStub::GenerateImpl(MacroAssembler* masm, bool in_frame) { |
__ b(&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(); // r3 |
- Register key = StoreWithVectorDescriptor::NameRegister(); // r4 |
- Register vector = StoreWithVectorDescriptor::VectorRegister(); // r5 |
- Register slot = StoreWithVectorDescriptor::SlotRegister(); // r6 |
- DCHECK(StoreWithVectorDescriptor::ValueRegister().is(r2)); // r2 |
- Register feedback = r7; |
- Register receiver_map = r8; |
- Register scratch1 = r9; |
- |
- __ SmiToPtrArrayOffset(r0, slot); |
- __ AddP(feedback, vector, r0); |
- __ LoadP(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); |
- __ LoadP(scratch1, FieldMemOperand(feedback, HeapObject::kMapOffset)); |
- __ CompareRoot(scratch1, Heap::kFixedArrayMapRootIndex); |
- __ bne(¬_array); |
- |
- Register scratch2 = ip; |
- HandleArrayCases(masm, feedback, receiver_map, scratch1, scratch2, true, |
- &miss); |
- |
- __ bind(¬_array); |
- __ CompareRoot(feedback, Heap::kmegamorphic_symbolRootIndex); |
- __ bne(&miss); |
- masm->isolate()->store_stub_cache()->GenerateProbe( |
- masm, receiver, key, feedback, receiver_map, scratch1, scratch2); |
- |
- __ bind(&miss); |
- StoreIC::GenerateMiss(masm); |
- |
- __ bind(&load_smi_map); |
- __ LoadRoot(receiver_map, Heap::kHeapNumberMapRootIndex); |
- __ b(&compare_map); |
-} |
- |
void KeyedStoreICStub::Generate(MacroAssembler* masm) { |
GenerateImpl(masm, false); |
} |