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

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

Powered by Google App Engine
This is Rietveld 408576698