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 4485 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4496 | 4496 |
4497 void LoadICTrampolineStub::Generate(MacroAssembler* masm) { | 4497 void LoadICTrampolineStub::Generate(MacroAssembler* masm) { |
4498 EmitLoadTypeFeedbackVector(masm, LoadWithVectorDescriptor::VectorRegister()); | 4498 EmitLoadTypeFeedbackVector(masm, LoadWithVectorDescriptor::VectorRegister()); |
4499 LoadICStub stub(isolate(), state()); | 4499 LoadICStub stub(isolate(), state()); |
4500 stub.GenerateForTrampoline(masm); | 4500 stub.GenerateForTrampoline(masm); |
4501 } | 4501 } |
4502 | 4502 |
4503 | 4503 |
4504 void KeyedLoadICTrampolineStub::Generate(MacroAssembler* masm) { | 4504 void KeyedLoadICTrampolineStub::Generate(MacroAssembler* masm) { |
4505 EmitLoadTypeFeedbackVector(masm, LoadWithVectorDescriptor::VectorRegister()); | 4505 EmitLoadTypeFeedbackVector(masm, LoadWithVectorDescriptor::VectorRegister()); |
4506 KeyedLoadICStub stub(isolate()); | 4506 KeyedLoadICStub stub(isolate(), state()); |
4507 stub.GenerateForTrampoline(masm); | 4507 stub.GenerateForTrampoline(masm); |
4508 } | 4508 } |
4509 | 4509 |
4510 | 4510 |
4511 void CallICTrampolineStub::Generate(MacroAssembler* masm) { | 4511 void CallICTrampolineStub::Generate(MacroAssembler* masm) { |
4512 EmitLoadTypeFeedbackVector(masm, x2); | 4512 EmitLoadTypeFeedbackVector(masm, x2); |
4513 CallICStub stub(isolate(), state()); | 4513 CallICStub stub(isolate(), state()); |
4514 __ Jump(stub.GetCode(), RelocInfo::CODE_TARGET); | 4514 __ Jump(stub.GetCode(), RelocInfo::CODE_TARGET); |
4515 } | 4515 } |
4516 | 4516 |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4705 Label polymorphic, try_poly_name; | 4705 Label polymorphic, try_poly_name; |
4706 __ Bind(&polymorphic); | 4706 __ Bind(&polymorphic); |
4707 HandleArrayCases(masm, receiver, key, vector, slot, feedback, receiver_map, | 4707 HandleArrayCases(masm, receiver, key, vector, slot, feedback, receiver_map, |
4708 scratch1, x7, true, &miss); | 4708 scratch1, x7, true, &miss); |
4709 | 4709 |
4710 __ Bind(¬_array); | 4710 __ Bind(¬_array); |
4711 // Is it generic? | 4711 // Is it generic? |
4712 __ JumpIfNotRoot(feedback, Heap::kmegamorphic_symbolRootIndex, | 4712 __ JumpIfNotRoot(feedback, Heap::kmegamorphic_symbolRootIndex, |
4713 &try_poly_name); | 4713 &try_poly_name); |
4714 Handle<Code> megamorphic_stub = | 4714 Handle<Code> megamorphic_stub = |
4715 KeyedLoadIC::ChooseMegamorphicStub(masm->isolate()); | 4715 KeyedLoadIC::ChooseMegamorphicStub(masm->isolate(), GetExtraICState()); |
4716 __ Jump(megamorphic_stub, RelocInfo::CODE_TARGET); | 4716 __ Jump(megamorphic_stub, RelocInfo::CODE_TARGET); |
4717 | 4717 |
4718 __ Bind(&try_poly_name); | 4718 __ Bind(&try_poly_name); |
4719 // We might have a name in feedback, and a fixed array in the next slot. | 4719 // We might have a name in feedback, and a fixed array in the next slot. |
4720 __ Cmp(key, feedback); | 4720 __ Cmp(key, feedback); |
4721 __ B(ne, &miss); | 4721 __ B(ne, &miss); |
4722 // If the name comparison succeeded, we know we have a fixed array with | 4722 // If the name comparison succeeded, we know we have a fixed array with |
4723 // at least one map/handler pair. | 4723 // at least one map/handler pair. |
4724 __ Add(feedback, vector, Operand::UntagSmiAndScale(slot, kPointerSizeLog2)); | 4724 __ Add(feedback, vector, Operand::UntagSmiAndScale(slot, kPointerSizeLog2)); |
4725 __ Ldr(feedback, | 4725 __ Ldr(feedback, |
(...skipping 1100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5826 MemOperand(fp, 6 * kPointerSize), NULL); | 5826 MemOperand(fp, 6 * kPointerSize), NULL); |
5827 } | 5827 } |
5828 | 5828 |
5829 | 5829 |
5830 #undef __ | 5830 #undef __ |
5831 | 5831 |
5832 } // namespace internal | 5832 } // namespace internal |
5833 } // namespace v8 | 5833 } // namespace v8 |
5834 | 5834 |
5835 #endif // V8_TARGET_ARCH_ARM64 | 5835 #endif // V8_TARGET_ARCH_ARM64 |
OLD | NEW |