OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |