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

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

Powered by Google App Engine
This is Rietveld 408576698