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

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

Issue 1875033003: Revert of Turn StoreIC::Megamorphic into a builtin, get rid of the non-monomorphic-cache (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 8 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/heap/heap.cc ('k') | src/ic/arm64/ic-arm64.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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_ARM 5 #if V8_TARGET_ARCH_ARM
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 729 matching lines...) Expand 10 before | Expand all | Expand 10 after
740 Register name = StoreDescriptor::NameRegister(); 740 Register name = StoreDescriptor::NameRegister();
741 DCHECK(receiver.is(r1)); 741 DCHECK(receiver.is(r1));
742 DCHECK(name.is(r2)); 742 DCHECK(name.is(r2));
743 DCHECK(StoreDescriptor::ValueRegister().is(r0)); 743 DCHECK(StoreDescriptor::ValueRegister().is(r0));
744 744
745 // Get the receiver from the stack and probe the stub cache. 745 // Get the receiver from the stack and probe the stub cache.
746 Code::Flags flags = 746 Code::Flags flags =
747 Code::RemoveHolderFromFlags(Code::ComputeHandlerFlags(Code::STORE_IC)); 747 Code::RemoveHolderFromFlags(Code::ComputeHandlerFlags(Code::STORE_IC));
748 748
749 masm->isolate()->stub_cache()->GenerateProbe(masm, Code::STORE_IC, flags, 749 masm->isolate()->stub_cache()->GenerateProbe(masm, Code::STORE_IC, flags,
750 receiver, name, r5, r6, r7, r8); 750 receiver, name, r3, r4, r5, r6);
751 751
752 // Cache miss: Jump to runtime. 752 // Cache miss: Jump to runtime.
753 GenerateMiss(masm); 753 GenerateMiss(masm);
754 } 754 }
755 755
756 756
757 void StoreIC::GenerateMiss(MacroAssembler* masm) { 757 void StoreIC::GenerateMiss(MacroAssembler* masm) {
758 StoreIC_PushArgs(masm); 758 StoreIC_PushArgs(masm);
759 759
760 // Perform tail call to the entry. 760 // Perform tail call to the entry.
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
879 patcher.EmitCondition(ne); 879 patcher.EmitCondition(ne);
880 } else { 880 } else {
881 DCHECK(Assembler::GetCondition(branch_instr) == ne); 881 DCHECK(Assembler::GetCondition(branch_instr) == ne);
882 patcher.EmitCondition(eq); 882 patcher.EmitCondition(eq);
883 } 883 }
884 } 884 }
885 } // namespace internal 885 } // namespace internal
886 } // namespace v8 886 } // namespace v8
887 887
888 #endif // V8_TARGET_ARCH_ARM 888 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/heap/heap.cc ('k') | src/ic/arm64/ic-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698