OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "src/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #if V8_TARGET_ARCH_ARM64 | 7 #if V8_TARGET_ARCH_ARM64 |
8 | 8 |
9 #include "src/bootstrapper.h" | 9 #include "src/bootstrapper.h" |
10 #include "src/code-stubs.h" | 10 #include "src/code-stubs.h" |
(...skipping 4490 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4501 | 4501 |
4502 void LoadICTrampolineStub::Generate(MacroAssembler* masm) { | 4502 void LoadICTrampolineStub::Generate(MacroAssembler* masm) { |
4503 EmitLoadTypeFeedbackVector(masm, LoadWithVectorDescriptor::VectorRegister()); | 4503 EmitLoadTypeFeedbackVector(masm, LoadWithVectorDescriptor::VectorRegister()); |
4504 LoadICStub stub(isolate(), state()); | 4504 LoadICStub stub(isolate(), state()); |
4505 stub.GenerateForTrampoline(masm); | 4505 stub.GenerateForTrampoline(masm); |
4506 } | 4506 } |
4507 | 4507 |
4508 | 4508 |
4509 void KeyedLoadICTrampolineStub::Generate(MacroAssembler* masm) { | 4509 void KeyedLoadICTrampolineStub::Generate(MacroAssembler* masm) { |
4510 EmitLoadTypeFeedbackVector(masm, LoadWithVectorDescriptor::VectorRegister()); | 4510 EmitLoadTypeFeedbackVector(masm, LoadWithVectorDescriptor::VectorRegister()); |
4511 KeyedLoadICStub stub(isolate()); | 4511 KeyedLoadICStub stub(isolate(), state()); |
4512 stub.GenerateForTrampoline(masm); | 4512 stub.GenerateForTrampoline(masm); |
4513 } | 4513 } |
4514 | 4514 |
4515 | 4515 |
4516 void CallICTrampolineStub::Generate(MacroAssembler* masm) { | 4516 void CallICTrampolineStub::Generate(MacroAssembler* masm) { |
4517 EmitLoadTypeFeedbackVector(masm, x2); | 4517 EmitLoadTypeFeedbackVector(masm, x2); |
4518 CallICStub stub(isolate(), state()); | 4518 CallICStub stub(isolate(), state()); |
4519 __ Jump(stub.GetCode(), RelocInfo::CODE_TARGET); | 4519 __ Jump(stub.GetCode(), RelocInfo::CODE_TARGET); |
4520 } | 4520 } |
4521 | 4521 |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4710 Label polymorphic, try_poly_name; | 4710 Label polymorphic, try_poly_name; |
4711 __ Bind(&polymorphic); | 4711 __ Bind(&polymorphic); |
4712 HandleArrayCases(masm, receiver, key, vector, slot, feedback, receiver_map, | 4712 HandleArrayCases(masm, receiver, key, vector, slot, feedback, receiver_map, |
4713 scratch1, x7, true, &miss); | 4713 scratch1, x7, true, &miss); |
4714 | 4714 |
4715 __ Bind(¬_array); | 4715 __ Bind(¬_array); |
4716 // Is it generic? | 4716 // Is it generic? |
4717 __ JumpIfNotRoot(feedback, Heap::kmegamorphic_symbolRootIndex, | 4717 __ JumpIfNotRoot(feedback, Heap::kmegamorphic_symbolRootIndex, |
4718 &try_poly_name); | 4718 &try_poly_name); |
4719 Handle<Code> megamorphic_stub = | 4719 Handle<Code> megamorphic_stub = |
4720 KeyedLoadIC::ChooseMegamorphicStub(masm->isolate()); | 4720 KeyedLoadIC::ChooseMegamorphicStub(masm->isolate(), GetExtraICState()); |
4721 __ Jump(megamorphic_stub, RelocInfo::CODE_TARGET); | 4721 __ Jump(megamorphic_stub, RelocInfo::CODE_TARGET); |
4722 | 4722 |
4723 __ Bind(&try_poly_name); | 4723 __ Bind(&try_poly_name); |
4724 // We might have a name in feedback, and a fixed array in the next slot. | 4724 // We might have a name in feedback, and a fixed array in the next slot. |
4725 __ Cmp(key, feedback); | 4725 __ Cmp(key, feedback); |
4726 __ B(ne, &miss); | 4726 __ B(ne, &miss); |
4727 // If the name comparison succeeded, we know we have a fixed array with | 4727 // If the name comparison succeeded, we know we have a fixed array with |
4728 // at least one map/handler pair. | 4728 // at least one map/handler pair. |
4729 __ Add(feedback, vector, Operand::UntagSmiAndScale(slot, kPointerSizeLog2)); | 4729 __ Add(feedback, vector, Operand::UntagSmiAndScale(slot, kPointerSizeLog2)); |
4730 __ Ldr(feedback, | 4730 __ Ldr(feedback, |
(...skipping 1100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5831 MemOperand(fp, 6 * kPointerSize), NULL); | 5831 MemOperand(fp, 6 * kPointerSize), NULL); |
5832 } | 5832 } |
5833 | 5833 |
5834 | 5834 |
5835 #undef __ | 5835 #undef __ |
5836 | 5836 |
5837 } // namespace internal | 5837 } // namespace internal |
5838 } // namespace v8 | 5838 } // namespace v8 |
5839 | 5839 |
5840 #endif // V8_TARGET_ARCH_ARM64 | 5840 #endif // V8_TARGET_ARCH_ARM64 |
OLD | NEW |