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 #if V8_TARGET_ARCH_ARM64 | 5 #if V8_TARGET_ARCH_ARM64 |
6 | 6 |
7 #include "src/codegen.h" | 7 #include "src/codegen.h" |
8 #include "src/ic/ic.h" | 8 #include "src/ic/ic.h" |
9 #include "src/ic/ic-compiler.h" | 9 #include "src/ic/ic-compiler.h" |
10 #include "src/ic/stub-cache.h" | 10 #include "src/ic/stub-cache.h" |
(...skipping 711 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
722 receiver_map, elements_map, elements); | 722 receiver_map, elements_map, elements); |
723 | 723 |
724 __ bind(&miss); | 724 __ bind(&miss); |
725 GenerateMiss(masm); | 725 GenerateMiss(masm); |
726 } | 726 } |
727 | 727 |
728 | 728 |
729 void StoreIC::GenerateMegamorphic(MacroAssembler* masm) { | 729 void StoreIC::GenerateMegamorphic(MacroAssembler* masm) { |
730 Register receiver = StoreDescriptor::ReceiverRegister(); | 730 Register receiver = StoreDescriptor::ReceiverRegister(); |
731 Register name = StoreDescriptor::NameRegister(); | 731 Register name = StoreDescriptor::NameRegister(); |
732 DCHECK(!AreAliased(receiver, name, StoreDescriptor::ValueRegister(), x5, x6, | 732 DCHECK(!AreAliased(receiver, name, StoreDescriptor::ValueRegister(), x3, x4, |
733 x7, x8)); | 733 x5, x6)); |
734 | 734 |
735 // Probe the stub cache. | 735 // Probe the stub cache. |
736 Code::Flags flags = | 736 Code::Flags flags = |
737 Code::RemoveHolderFromFlags(Code::ComputeHandlerFlags(Code::STORE_IC)); | 737 Code::RemoveHolderFromFlags(Code::ComputeHandlerFlags(Code::STORE_IC)); |
738 masm->isolate()->stub_cache()->GenerateProbe(masm, Code::STORE_IC, flags, | 738 masm->isolate()->stub_cache()->GenerateProbe(masm, Code::STORE_IC, flags, |
739 receiver, name, x5, x6, x7, x8); | 739 receiver, name, x3, x4, x5, x6); |
740 | 740 |
741 // Cache miss: Jump to runtime. | 741 // Cache miss: Jump to runtime. |
742 GenerateMiss(masm); | 742 GenerateMiss(masm); |
743 } | 743 } |
744 | 744 |
745 | 745 |
746 void StoreIC::GenerateMiss(MacroAssembler* masm) { | 746 void StoreIC::GenerateMiss(MacroAssembler* masm) { |
747 StoreIC_PushArgs(masm); | 747 StoreIC_PushArgs(masm); |
748 | 748 |
749 // Tail call to the entry. | 749 // Tail call to the entry. |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
858 } else { | 858 } else { |
859 DCHECK(to_patch->Mask(TestBranchMask) == TBNZ); | 859 DCHECK(to_patch->Mask(TestBranchMask) == TBNZ); |
860 // This is JumpIfSmi(smi_reg, branch_imm). | 860 // This is JumpIfSmi(smi_reg, branch_imm). |
861 patcher.tbz(smi_reg, 0, branch_imm); | 861 patcher.tbz(smi_reg, 0, branch_imm); |
862 } | 862 } |
863 } | 863 } |
864 } // namespace internal | 864 } // namespace internal |
865 } // namespace v8 | 865 } // namespace v8 |
866 | 866 |
867 #endif // V8_TARGET_ARCH_ARM64 | 867 #endif // V8_TARGET_ARCH_ARM64 |
OLD | NEW |