Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1066)

Side by Side Diff: src/ic/arm64/ic-arm64.cc

Issue 2054133002: [--runtime-call-stats] Fix ACCESSOR handler computation (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebased Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/ic/arm/ic-arm.cc ('k') | src/ic/handler-compiler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 706 matching lines...) Expand 10 before | Expand all | Expand 10 after
717 value, key, receiver, receiver_map, elements_map, elements); 717 value, key, receiver, receiver_map, elements_map, elements);
718 KeyedStoreGenerateMegamorphicHelper(masm, &fast_object_grow, 718 KeyedStoreGenerateMegamorphicHelper(masm, &fast_object_grow,
719 &fast_double_grow, &slow, kDontCheckMap, 719 &fast_double_grow, &slow, kDontCheckMap,
720 kIncrementLength, value, key, receiver, 720 kIncrementLength, value, key, receiver,
721 receiver_map, elements_map, elements); 721 receiver_map, elements_map, elements);
722 722
723 __ bind(&miss); 723 __ bind(&miss);
724 GenerateMiss(masm); 724 GenerateMiss(masm);
725 } 725 }
726 726
727
728 void StoreIC::GenerateMegamorphic(MacroAssembler* masm) {
729 Register receiver = StoreDescriptor::ReceiverRegister();
730 Register name = StoreDescriptor::NameRegister();
731 DCHECK(!AreAliased(receiver, name, StoreDescriptor::ValueRegister(), x5, x6,
732 x7, x8));
733
734 // Probe the stub cache.
735 Code::Flags flags =
736 Code::RemoveHolderFromFlags(Code::ComputeHandlerFlags(Code::STORE_IC));
737 masm->isolate()->stub_cache()->GenerateProbe(masm, Code::STORE_IC, flags,
738 receiver, name, x5, x6, x7, x8);
739
740 // Cache miss: Jump to runtime.
741 GenerateMiss(masm);
742 }
743
744
745 void StoreIC::GenerateMiss(MacroAssembler* masm) { 727 void StoreIC::GenerateMiss(MacroAssembler* masm) {
746 StoreIC_PushArgs(masm); 728 StoreIC_PushArgs(masm);
747 729
748 // Tail call to the entry. 730 // Tail call to the entry.
749 __ TailCallRuntime(Runtime::kStoreIC_Miss); 731 __ TailCallRuntime(Runtime::kStoreIC_Miss);
750 } 732 }
751 733
752 734
753 void StoreIC::GenerateNormal(MacroAssembler* masm) { 735 void StoreIC::GenerateNormal(MacroAssembler* masm) {
754 Label miss; 736 Label miss;
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
858 } else { 840 } else {
859 DCHECK(to_patch->Mask(TestBranchMask) == TBNZ); 841 DCHECK(to_patch->Mask(TestBranchMask) == TBNZ);
860 // This is JumpIfSmi(smi_reg, branch_imm). 842 // This is JumpIfSmi(smi_reg, branch_imm).
861 patcher.tbz(smi_reg, 0, branch_imm); 843 patcher.tbz(smi_reg, 0, branch_imm);
862 } 844 }
863 } 845 }
864 } // namespace internal 846 } // namespace internal
865 } // namespace v8 847 } // namespace v8
866 848
867 #endif // V8_TARGET_ARCH_ARM64 849 #endif // V8_TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « src/ic/arm/ic-arm.cc ('k') | src/ic/handler-compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698