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

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

Powered by Google App Engine
This is Rietveld 408576698