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

Side by Side Diff: src/ic/ppc/handler-compiler-ppc.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/mips64/handler-compiler-mips64.cc ('k') | src/ic/s390/handler-compiler-s390.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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_PPC 5 #if V8_TARGET_ARCH_PPC
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 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 327
328 328
329 static void StoreIC_PushArgs(MacroAssembler* masm) { 329 static void StoreIC_PushArgs(MacroAssembler* masm) {
330 __ Push(StoreDescriptor::ReceiverRegister(), StoreDescriptor::NameRegister(), 330 __ Push(StoreDescriptor::ReceiverRegister(), StoreDescriptor::NameRegister(),
331 StoreDescriptor::ValueRegister(), 331 StoreDescriptor::ValueRegister(),
332 VectorStoreICDescriptor::SlotRegister(), 332 VectorStoreICDescriptor::SlotRegister(),
333 VectorStoreICDescriptor::VectorRegister()); 333 VectorStoreICDescriptor::VectorRegister());
334 } 334 }
335 335
336 336
337 void NamedStoreHandlerCompiler::GenerateSlow(MacroAssembler* masm) {
338 StoreIC_PushArgs(masm);
339
340 // The slow case calls into the runtime to complete the store without causing
341 // an IC miss that would otherwise cause a transition to the generic stub.
342 __ TailCallRuntime(Runtime::kStoreIC_Slow);
343 }
344
345
346 void ElementHandlerCompiler::GenerateStoreSlow(MacroAssembler* masm) { 337 void ElementHandlerCompiler::GenerateStoreSlow(MacroAssembler* masm) {
347 StoreIC_PushArgs(masm); 338 StoreIC_PushArgs(masm);
348 339
349 // The slow case calls into the runtime to complete the store without causing 340 // The slow case calls into the runtime to complete the store without causing
350 // an IC miss that would otherwise cause a transition to the generic stub. 341 // an IC miss that would otherwise cause a transition to the generic stub.
351 __ TailCallRuntime(Runtime::kKeyedStoreIC_Slow); 342 __ TailCallRuntime(Runtime::kKeyedStoreIC_Slow);
352 } 343 }
353 344
354 345
355 #undef __ 346 #undef __
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after
700 // Return the generated code. 691 // Return the generated code.
701 return GetCode(kind(), name); 692 return GetCode(kind(), name);
702 } 693 }
703 694
704 695
705 #undef __ 696 #undef __
706 } // namespace internal 697 } // namespace internal
707 } // namespace v8 698 } // namespace v8
708 699
709 #endif // V8_TARGET_ARCH_ARM 700 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/ic/mips64/handler-compiler-mips64.cc ('k') | src/ic/s390/handler-compiler-s390.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698