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

Side by Side Diff: src/ic/mips/ic-mips.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/ic.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 709 matching lines...) Expand 10 before | Expand all | Expand 10 after
720 VectorStoreICDescriptor::VectorRegister()); 720 VectorStoreICDescriptor::VectorRegister());
721 } 721 }
722 722
723 723
724 void KeyedStoreIC::GenerateMiss(MacroAssembler* masm) { 724 void KeyedStoreIC::GenerateMiss(MacroAssembler* masm) {
725 StoreIC_PushArgs(masm); 725 StoreIC_PushArgs(masm);
726 726
727 __ TailCallRuntime(Runtime::kKeyedStoreIC_Miss); 727 __ TailCallRuntime(Runtime::kKeyedStoreIC_Miss);
728 } 728 }
729 729
730
731 void StoreIC::GenerateMegamorphic(MacroAssembler* masm) {
732 Register receiver = StoreDescriptor::ReceiverRegister();
733 Register name = StoreDescriptor::NameRegister();
734 DCHECK(receiver.is(a1));
735 DCHECK(name.is(a2));
736 DCHECK(StoreDescriptor::ValueRegister().is(a0));
737
738 // Get the receiver from the stack and probe the stub cache.
739 Code::Flags flags =
740 Code::RemoveHolderFromFlags(Code::ComputeHandlerFlags(Code::STORE_IC));
741 masm->isolate()->stub_cache()->GenerateProbe(masm, Code::STORE_IC, flags,
742 receiver, name, t1, t2, t3, t4);
743
744 // Cache miss: Jump to runtime.
745 GenerateMiss(masm);
746 }
747
748
749 void StoreIC::GenerateMiss(MacroAssembler* masm) { 730 void StoreIC::GenerateMiss(MacroAssembler* masm) {
750 StoreIC_PushArgs(masm); 731 StoreIC_PushArgs(masm);
751 732
752 // Perform tail call to the entry. 733 // Perform tail call to the entry.
753 __ TailCallRuntime(Runtime::kStoreIC_Miss); 734 __ TailCallRuntime(Runtime::kStoreIC_Miss);
754 } 735 }
755 736
756 737
757 void StoreIC::GenerateNormal(MacroAssembler* masm) { 738 void StoreIC::GenerateNormal(MacroAssembler* masm) {
758 Label miss; 739 Label miss;
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
902 break; 883 break;
903 default: 884 default:
904 UNIMPLEMENTED(); 885 UNIMPLEMENTED();
905 } 886 }
906 patcher.ChangeBranchCondition(branch_instr, opcode); 887 patcher.ChangeBranchCondition(branch_instr, opcode);
907 } 888 }
908 } // namespace internal 889 } // namespace internal
909 } // namespace v8 890 } // namespace v8
910 891
911 #endif // V8_TARGET_ARCH_MIPS 892 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/ic/ic.cc ('k') | src/ic/mips64/ic-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698