| 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/field-type.h" | 9 #include "src/field-type.h" |
| 10 #include "src/ic/call-optimization.h" | 10 #include "src/ic/call-optimization.h" |
| (...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 239 DCHECK(!receiver.is(scratch_in)); | 239 DCHECK(!receiver.is(scratch_in)); |
| 240 __ push(receiver); | 240 __ push(receiver); |
| 241 // Write the arguments to stack frame. | 241 // Write the arguments to stack frame. |
| 242 if (is_store) { | 242 if (is_store) { |
| 243 DCHECK(!receiver.is(store_parameter)); | 243 DCHECK(!receiver.is(store_parameter)); |
| 244 DCHECK(!scratch_in.is(store_parameter)); | 244 DCHECK(!scratch_in.is(store_parameter)); |
| 245 __ push(store_parameter); | 245 __ push(store_parameter); |
| 246 } | 246 } |
| 247 DCHECK(optimization.is_simple_api_call()); | 247 DCHECK(optimization.is_simple_api_call()); |
| 248 | 248 |
| 249 // Abi for CallApiFunctionStub. | 249 // Abi for CallApiCallbackStub. |
| 250 Register callee = r3; | 250 Register callee = r3; |
| 251 Register data = r7; | 251 Register data = r7; |
| 252 Register holder = r5; | 252 Register holder = r5; |
| 253 Register api_function_address = r4; | 253 Register api_function_address = r4; |
| 254 | 254 |
| 255 // Put callee in place. | 255 // Put callee in place. |
| 256 __ LoadAccessor(callee, accessor_holder, accessor_index, | 256 __ LoadAccessor(callee, accessor_holder, accessor_index, |
| 257 is_store ? ACCESSOR_SETTER : ACCESSOR_GETTER); | 257 is_store ? ACCESSOR_SETTER : ACCESSOR_GETTER); |
| 258 | 258 |
| 259 // Put holder in place. | 259 // Put holder in place. |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 308 } | 308 } |
| 309 | 309 |
| 310 // Put api_function_address in place. | 310 // Put api_function_address in place. |
| 311 Address function_address = v8::ToCData<Address>(api_call_info->callback()); | 311 Address function_address = v8::ToCData<Address>(api_call_info->callback()); |
| 312 ApiFunction fun(function_address); | 312 ApiFunction fun(function_address); |
| 313 ExternalReference::Type type = ExternalReference::DIRECT_API_CALL; | 313 ExternalReference::Type type = ExternalReference::DIRECT_API_CALL; |
| 314 ExternalReference ref = ExternalReference(&fun, type, masm->isolate()); | 314 ExternalReference ref = ExternalReference(&fun, type, masm->isolate()); |
| 315 __ mov(api_function_address, Operand(ref)); | 315 __ mov(api_function_address, Operand(ref)); |
| 316 | 316 |
| 317 // Jump to stub. | 317 // Jump to stub. |
| 318 CallApiAccessorStub stub(isolate, is_store, call_data_undefined, | 318 CallApiCallbackStub stub(isolate, is_store, call_data_undefined, |
| 319 !optimization.is_constant_call()); | 319 !optimization.is_constant_call()); |
| 320 __ TailCallStub(&stub); | 320 __ TailCallStub(&stub); |
| 321 } | 321 } |
| 322 | 322 |
| 323 | 323 |
| 324 static void StoreIC_PushArgs(MacroAssembler* masm) { | 324 static void StoreIC_PushArgs(MacroAssembler* masm) { |
| 325 __ Push(StoreDescriptor::ReceiverRegister(), StoreDescriptor::NameRegister(), | 325 __ Push(StoreDescriptor::ReceiverRegister(), StoreDescriptor::NameRegister(), |
| 326 StoreDescriptor::ValueRegister(), | 326 StoreDescriptor::ValueRegister(), |
| 327 VectorStoreICDescriptor::SlotRegister(), | 327 VectorStoreICDescriptor::SlotRegister(), |
| 328 VectorStoreICDescriptor::VectorRegister()); | 328 VectorStoreICDescriptor::VectorRegister()); |
| (...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 788 // Return the generated code. | 788 // Return the generated code. |
| 789 return GetCode(kind(), Code::NORMAL, name); | 789 return GetCode(kind(), Code::NORMAL, name); |
| 790 } | 790 } |
| 791 | 791 |
| 792 | 792 |
| 793 #undef __ | 793 #undef __ |
| 794 } // namespace internal | 794 } // namespace internal |
| 795 } // namespace v8 | 795 } // namespace v8 |
| 796 | 796 |
| 797 #endif // V8_TARGET_ARCH_ARM | 797 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |