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 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
322 // Jump to stub. | 322 // Jump to stub. |
323 CallApiCallbackStub stub(isolate, is_store, call_data_undefined, | 323 CallApiCallbackStub stub(isolate, is_store, call_data_undefined, |
324 !optimization.is_constant_call()); | 324 !optimization.is_constant_call()); |
325 __ TailCallStub(&stub); | 325 __ TailCallStub(&stub); |
326 } | 326 } |
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 StoreWithVectorDescriptor::SlotRegister(), |
333 VectorStoreICDescriptor::VectorRegister()); | 333 StoreWithVectorDescriptor::VectorRegister()); |
334 } | 334 } |
335 | 335 |
336 | 336 |
337 void ElementHandlerCompiler::GenerateStoreSlow(MacroAssembler* masm) { | 337 void ElementHandlerCompiler::GenerateStoreSlow(MacroAssembler* masm) { |
338 StoreIC_PushArgs(masm); | 338 StoreIC_PushArgs(masm); |
339 | 339 |
340 // 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 |
341 // 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. |
342 __ TailCallRuntime(Runtime::kKeyedStoreIC_Slow); | 342 __ TailCallRuntime(Runtime::kKeyedStoreIC_Slow); |
343 } | 343 } |
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
691 // Return the generated code. | 691 // Return the generated code. |
692 return GetCode(kind(), name); | 692 return GetCode(kind(), name); |
693 } | 693 } |
694 | 694 |
695 | 695 |
696 #undef __ | 696 #undef __ |
697 } // namespace internal | 697 } // namespace internal |
698 } // namespace v8 | 698 } // namespace v8 |
699 | 699 |
700 #endif // V8_TARGET_ARCH_ARM | 700 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |