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

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

Issue 2144643004: [builtins] Turn StoreIC_Miss and StoreIC_Slow builtins to TurboFan code stubs. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 5 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/handler-compiler-ppc.cc ('k') | src/ic/x64/handler-compiler-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/handler-compiler.h" 7 #include "src/ic/handler-compiler.h"
8 8
9 #include "src/api-arguments.h" 9 #include "src/api-arguments.h"
10 #include "src/field-type.h" 10 #include "src/field-type.h"
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 __ TailCallStub(&stub); 310 __ TailCallStub(&stub);
311 } 311 }
312 312
313 static void StoreIC_PushArgs(MacroAssembler* masm) { 313 static void StoreIC_PushArgs(MacroAssembler* masm) {
314 __ Push(StoreDescriptor::ReceiverRegister(), StoreDescriptor::NameRegister(), 314 __ Push(StoreDescriptor::ReceiverRegister(), StoreDescriptor::NameRegister(),
315 StoreDescriptor::ValueRegister(), 315 StoreDescriptor::ValueRegister(),
316 VectorStoreICDescriptor::SlotRegister(), 316 VectorStoreICDescriptor::SlotRegister(),
317 VectorStoreICDescriptor::VectorRegister()); 317 VectorStoreICDescriptor::VectorRegister());
318 } 318 }
319 319
320 void NamedStoreHandlerCompiler::GenerateSlow(MacroAssembler* masm) {
321 StoreIC_PushArgs(masm);
322
323 // The slow case calls into the runtime to complete the store without causing
324 // an IC miss that would otherwise cause a transition to the generic stub.
325 __ TailCallRuntime(Runtime::kStoreIC_Slow);
326 }
327
328 void ElementHandlerCompiler::GenerateStoreSlow(MacroAssembler* masm) { 320 void ElementHandlerCompiler::GenerateStoreSlow(MacroAssembler* masm) {
329 StoreIC_PushArgs(masm); 321 StoreIC_PushArgs(masm);
330 322
331 // The slow case calls into the runtime to complete the store without causing 323 // The slow case calls into the runtime to complete the store without causing
332 // an IC miss that would otherwise cause a transition to the generic stub. 324 // an IC miss that would otherwise cause a transition to the generic stub.
333 __ TailCallRuntime(Runtime::kKeyedStoreIC_Slow); 325 __ TailCallRuntime(Runtime::kKeyedStoreIC_Slow);
334 } 326 }
335 327
336 #undef __ 328 #undef __
337 #define __ ACCESS_MASM(masm()) 329 #define __ ACCESS_MASM(masm())
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
663 655
664 // Return the generated code. 656 // Return the generated code.
665 return GetCode(kind(), name); 657 return GetCode(kind(), name);
666 } 658 }
667 659
668 #undef __ 660 #undef __
669 } // namespace internal 661 } // namespace internal
670 } // namespace v8 662 } // namespace v8
671 663
672 #endif // V8_TARGET_ARCH_ARM 664 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/ic/ppc/handler-compiler-ppc.cc ('k') | src/ic/x64/handler-compiler-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698