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