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

Side by Side Diff: src/ic/mips/ic-mips.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/ic-compiler.cc ('k') | src/ic/mips64/ic-mips64.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_MIPS 5 #if V8_TARGET_ARCH_MIPS
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 722 matching lines...) Expand 10 before | Expand all | Expand 10 after
733 Register receiver = StoreDescriptor::ReceiverRegister(); 733 Register receiver = StoreDescriptor::ReceiverRegister();
734 Register name = StoreDescriptor::NameRegister(); 734 Register name = StoreDescriptor::NameRegister();
735 DCHECK(receiver.is(a1)); 735 DCHECK(receiver.is(a1));
736 DCHECK(name.is(a2)); 736 DCHECK(name.is(a2));
737 DCHECK(StoreDescriptor::ValueRegister().is(a0)); 737 DCHECK(StoreDescriptor::ValueRegister().is(a0));
738 738
739 // Get the receiver from the stack and probe the stub cache. 739 // Get the receiver from the stack and probe the stub cache.
740 Code::Flags flags = 740 Code::Flags flags =
741 Code::RemoveHolderFromFlags(Code::ComputeHandlerFlags(Code::STORE_IC)); 741 Code::RemoveHolderFromFlags(Code::ComputeHandlerFlags(Code::STORE_IC));
742 masm->isolate()->stub_cache()->GenerateProbe(masm, Code::STORE_IC, flags, 742 masm->isolate()->stub_cache()->GenerateProbe(masm, Code::STORE_IC, flags,
743 receiver, name, a3, t0, t1, t2); 743 receiver, name, t1, t2, t3, t4);
744 744
745 // Cache miss: Jump to runtime. 745 // Cache miss: Jump to runtime.
746 GenerateMiss(masm); 746 GenerateMiss(masm);
747 } 747 }
748 748
749 749
750 void StoreIC::GenerateMiss(MacroAssembler* masm) { 750 void StoreIC::GenerateMiss(MacroAssembler* masm) {
751 StoreIC_PushArgs(masm); 751 StoreIC_PushArgs(masm);
752 752
753 // Perform tail call to the entry. 753 // Perform tail call to the entry.
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
902 break; 902 break;
903 default: 903 default:
904 UNIMPLEMENTED(); 904 UNIMPLEMENTED();
905 } 905 }
906 patcher.ChangeBranchCondition(branch_instr, opcode); 906 patcher.ChangeBranchCondition(branch_instr, opcode);
907 } 907 }
908 } // namespace internal 908 } // namespace internal
909 } // namespace v8 909 } // namespace v8
910 910
911 #endif // V8_TARGET_ARCH_MIPS 911 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/ic/ic-compiler.cc ('k') | src/ic/mips64/ic-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698