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

Side by Side Diff: src/ic/s390/ic-s390.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/ppc/ic-ppc.cc ('k') | src/ic/x64/ic-x64.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 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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_S390 5 #if V8_TARGET_ARCH_S390
6 6
7 #include "src/ic/ic.h" 7 #include "src/ic/ic.h"
8 #include "src/codegen.h" 8 #include "src/codegen.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 701 matching lines...) Expand 10 before | Expand all | Expand 10 after
712 masm, &fast_object, &fast_double, &slow, kCheckMap, kDontIncrementLength, 712 masm, &fast_object, &fast_double, &slow, kCheckMap, kDontIncrementLength,
713 value, key, receiver, receiver_map, elements_map, elements); 713 value, key, receiver, receiver_map, elements_map, elements);
714 KeyedStoreGenerateMegamorphicHelper(masm, &fast_object_grow, 714 KeyedStoreGenerateMegamorphicHelper(masm, &fast_object_grow,
715 &fast_double_grow, &slow, kDontCheckMap, 715 &fast_double_grow, &slow, kDontCheckMap,
716 kIncrementLength, value, key, receiver, 716 kIncrementLength, value, key, receiver,
717 receiver_map, elements_map, elements); 717 receiver_map, elements_map, elements);
718 __ bind(&miss); 718 __ bind(&miss);
719 GenerateMiss(masm); 719 GenerateMiss(masm);
720 } 720 }
721 721
722 void StoreIC::GenerateMegamorphic(MacroAssembler* masm) {
723 Register receiver = StoreDescriptor::ReceiverRegister();
724 Register name = StoreDescriptor::NameRegister();
725 DCHECK(receiver.is(r3));
726 DCHECK(name.is(r4));
727 DCHECK(StoreDescriptor::ValueRegister().is(r2));
728
729 // Get the receiver from the stack and probe the stub cache.
730 Code::Flags flags =
731 Code::RemoveHolderFromFlags(Code::ComputeHandlerFlags(Code::STORE_IC));
732
733 masm->isolate()->stub_cache()->GenerateProbe(masm, Code::STORE_IC, flags,
734 receiver, name, r7, r8, r9, ip);
735
736 // Cache miss: Jump to runtime.
737 GenerateMiss(masm);
738 }
739
740 void StoreIC::GenerateMiss(MacroAssembler* masm) { 722 void StoreIC::GenerateMiss(MacroAssembler* masm) {
741 StoreIC_PushArgs(masm); 723 StoreIC_PushArgs(masm);
742 724
743 // Perform tail call to the entry. 725 // Perform tail call to the entry.
744 __ TailCallRuntime(Runtime::kStoreIC_Miss); 726 __ TailCallRuntime(Runtime::kStoreIC_Miss);
745 } 727 }
746 728
747 void StoreIC::GenerateNormal(MacroAssembler* masm) { 729 void StoreIC::GenerateNormal(MacroAssembler* masm) {
748 Label miss; 730 Label miss;
749 Register receiver = StoreDescriptor::ReceiverRegister(); 731 Register receiver = StoreDescriptor::ReceiverRegister();
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
888 patcher.masm()->brcl(cc, Operand((branch_instr & 0xffffffff) << 1)); 870 patcher.masm()->brcl(cc, Operand((branch_instr & 0xffffffff) << 1));
889 } else { 871 } else {
890 DCHECK(false); 872 DCHECK(false);
891 } 873 }
892 } 874 }
893 875
894 } // namespace internal 876 } // namespace internal
895 } // namespace v8 877 } // namespace v8
896 878
897 #endif // V8_TARGET_ARCH_S390 879 #endif // V8_TARGET_ARCH_S390
OLDNEW
« no previous file with comments | « src/ic/ppc/ic-ppc.cc ('k') | src/ic/x64/ic-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698