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

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

Issue 1864703003: 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/ic/mips/ic-mips.cc ('k') | src/snapshot/code-serializer.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_MIPS64 5 #if V8_TARGET_ARCH_MIPS64
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 726 matching lines...) Expand 10 before | Expand all | Expand 10 after
737 Register receiver = StoreDescriptor::ReceiverRegister(); 737 Register receiver = StoreDescriptor::ReceiverRegister();
738 Register name = StoreDescriptor::NameRegister(); 738 Register name = StoreDescriptor::NameRegister();
739 DCHECK(receiver.is(a1)); 739 DCHECK(receiver.is(a1));
740 DCHECK(name.is(a2)); 740 DCHECK(name.is(a2));
741 DCHECK(StoreDescriptor::ValueRegister().is(a0)); 741 DCHECK(StoreDescriptor::ValueRegister().is(a0));
742 742
743 // Get the receiver from the stack and probe the stub cache. 743 // Get the receiver from the stack and probe the stub cache.
744 Code::Flags flags = 744 Code::Flags flags =
745 Code::RemoveHolderFromFlags(Code::ComputeHandlerFlags(Code::STORE_IC)); 745 Code::RemoveHolderFromFlags(Code::ComputeHandlerFlags(Code::STORE_IC));
746 masm->isolate()->stub_cache()->GenerateProbe(masm, Code::STORE_IC, flags, 746 masm->isolate()->stub_cache()->GenerateProbe(masm, Code::STORE_IC, flags,
747 receiver, name, a3, a4, a5, a6); 747 receiver, name, a5, a6, a7, t0);
748 748
749 // Cache miss: Jump to runtime. 749 // Cache miss: Jump to runtime.
750 GenerateMiss(masm); 750 GenerateMiss(masm);
751 } 751 }
752 752
753 753
754 void StoreIC::GenerateMiss(MacroAssembler* masm) { 754 void StoreIC::GenerateMiss(MacroAssembler* masm) {
755 StoreIC_PushArgs(masm); 755 StoreIC_PushArgs(masm);
756 756
757 // Perform tail call to the entry. 757 // Perform tail call to the entry.
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
904 break; 904 break;
905 default: 905 default:
906 UNIMPLEMENTED(); 906 UNIMPLEMENTED();
907 } 907 }
908 patcher.ChangeBranchCondition(branch_instr, opcode); 908 patcher.ChangeBranchCondition(branch_instr, opcode);
909 } 909 }
910 } // namespace internal 910 } // namespace internal
911 } // namespace v8 911 } // namespace v8
912 912
913 #endif // V8_TARGET_ARCH_MIPS64 913 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/ic/mips/ic-mips.cc ('k') | src/snapshot/code-serializer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698