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

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

Issue 1874983004: PPC: 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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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_PPC 5 #if V8_TARGET_ARCH_PPC
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 732 matching lines...) Expand 10 before | Expand all | Expand 10 after
743 Register receiver = StoreDescriptor::ReceiverRegister(); 743 Register receiver = StoreDescriptor::ReceiverRegister();
744 Register name = StoreDescriptor::NameRegister(); 744 Register name = StoreDescriptor::NameRegister();
745 DCHECK(receiver.is(r4)); 745 DCHECK(receiver.is(r4));
746 DCHECK(name.is(r5)); 746 DCHECK(name.is(r5));
747 DCHECK(StoreDescriptor::ValueRegister().is(r3)); 747 DCHECK(StoreDescriptor::ValueRegister().is(r3));
748 748
749 // Get the receiver from the stack and probe the stub cache. 749 // Get the receiver from the stack and probe the stub cache.
750 Code::Flags flags = 750 Code::Flags flags =
751 Code::RemoveHolderFromFlags(Code::ComputeHandlerFlags(Code::STORE_IC)); 751 Code::RemoveHolderFromFlags(Code::ComputeHandlerFlags(Code::STORE_IC));
752 752
753 masm->isolate()->stub_cache()->GenerateProbe(masm, Code::STORE_IC, flags, 753 masm->isolate()->stub_cache()->GenerateProbe(
754 receiver, name, r6, r7, r8, r9); 754 masm, Code::STORE_IC, flags, receiver, name, r8, r9, r10, r11);
755 755
756 // Cache miss: Jump to runtime. 756 // Cache miss: Jump to runtime.
757 GenerateMiss(masm); 757 GenerateMiss(masm);
758 } 758 }
759 759
760 760
761 void StoreIC::GenerateMiss(MacroAssembler* masm) { 761 void StoreIC::GenerateMiss(MacroAssembler* masm) {
762 StoreIC_PushArgs(masm); 762 StoreIC_PushArgs(masm);
763 763
764 // Perform tail call to the entry. 764 // Perform tail call to the entry.
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
887 patcher.EmitCondition(ne); 887 patcher.EmitCondition(ne);
888 } else { 888 } else {
889 DCHECK(Assembler::GetCondition(branch_instr) == ne); 889 DCHECK(Assembler::GetCondition(branch_instr) == ne);
890 patcher.EmitCondition(eq); 890 patcher.EmitCondition(eq);
891 } 891 }
892 } 892 }
893 } // namespace internal 893 } // namespace internal
894 } // namespace v8 894 } // namespace v8
895 895
896 #endif // V8_TARGET_ARCH_PPC 896 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698