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

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

Issue 1877353002: S390: 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 | « no previous file | no next file » | 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 714 matching lines...) Expand 10 before | Expand all | Expand 10 after
725 Register name = StoreDescriptor::NameRegister(); 725 Register name = StoreDescriptor::NameRegister();
726 DCHECK(receiver.is(r3)); 726 DCHECK(receiver.is(r3));
727 DCHECK(name.is(r4)); 727 DCHECK(name.is(r4));
728 DCHECK(StoreDescriptor::ValueRegister().is(r2)); 728 DCHECK(StoreDescriptor::ValueRegister().is(r2));
729 729
730 // Get the receiver from the stack and probe the stub cache. 730 // Get the receiver from the stack and probe the stub cache.
731 Code::Flags flags = 731 Code::Flags flags =
732 Code::RemoveHolderFromFlags(Code::ComputeHandlerFlags(Code::STORE_IC)); 732 Code::RemoveHolderFromFlags(Code::ComputeHandlerFlags(Code::STORE_IC));
733 733
734 masm->isolate()->stub_cache()->GenerateProbe(masm, Code::STORE_IC, flags, 734 masm->isolate()->stub_cache()->GenerateProbe(masm, Code::STORE_IC, flags,
735 receiver, name, r5, r6, r7, r8); 735 receiver, name, r7, r8, r9, ip);
736 736
737 // Cache miss: Jump to runtime. 737 // Cache miss: Jump to runtime.
738 GenerateMiss(masm); 738 GenerateMiss(masm);
739 } 739 }
740 740
741 void StoreIC::GenerateMiss(MacroAssembler* masm) { 741 void StoreIC::GenerateMiss(MacroAssembler* masm) {
742 StoreIC_PushArgs(masm); 742 StoreIC_PushArgs(masm);
743 743
744 // Perform tail call to the entry. 744 // Perform tail call to the entry.
745 __ TailCallRuntime(Runtime::kStoreIC_Miss); 745 __ TailCallRuntime(Runtime::kStoreIC_Miss);
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
888 patcher.masm()->brcl(cc, Operand((branch_instr & 0xffffffff) << 1)); 888 patcher.masm()->brcl(cc, Operand((branch_instr & 0xffffffff) << 1));
889 } else { 889 } else {
890 DCHECK(false); 890 DCHECK(false);
891 } 891 }
892 } 892 }
893 893
894 } // namespace internal 894 } // namespace internal
895 } // namespace v8 895 } // namespace v8
896 896
897 #endif // V8_TARGET_ARCH_S390 897 #endif // V8_TARGET_ARCH_S390
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698