Index: src/arm64/code-stubs-arm64.cc |
diff --git a/src/arm64/code-stubs-arm64.cc b/src/arm64/code-stubs-arm64.cc |
index 0b9706c4deff71b127f484fae265e9b8a66d90b1..3a98e55f2502290e182991fcdf5d26fb4ef2685e 100644 |
--- a/src/arm64/code-stubs-arm64.cc |
+++ b/src/arm64/code-stubs-arm64.cc |
@@ -2980,13 +2980,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()); |
@@ -3001,14 +2994,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, |
@@ -3100,46 +3085,6 @@ static void HandleMonomorphicCase(MacroAssembler* masm, Register receiver, |
} |
-void LoadICStub::GenerateImpl(MacroAssembler* masm, bool in_frame) { |
- Register receiver = LoadWithVectorDescriptor::ReceiverRegister(); // x1 |
- Register name = LoadWithVectorDescriptor::NameRegister(); // x2 |
- Register vector = LoadWithVectorDescriptor::VectorRegister(); // x3 |
- Register slot = LoadWithVectorDescriptor::SlotRegister(); // x0 |
- Register feedback = x4; |
- Register receiver_map = x5; |
- Register scratch1 = x6; |
- |
- __ Add(feedback, vector, Operand::UntagSmiAndScale(slot, kPointerSizeLog2)); |
- __ Ldr(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); |
- __ Ldr(scratch1, FieldMemOperand(feedback, HeapObject::kMapOffset)); |
- __ JumpIfNotRoot(scratch1, Heap::kFixedArrayMapRootIndex, ¬_array); |
- HandleArrayCases(masm, feedback, receiver_map, scratch1, x7, true, &miss); |
- |
- __ Bind(¬_array); |
- __ JumpIfNotRoot(feedback, Heap::kmegamorphic_symbolRootIndex, &miss); |
- masm->isolate()->load_stub_cache()->GenerateProbe( |
- masm, receiver, name, feedback, receiver_map, scratch1, x7); |
- |
- __ 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); |
} |