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/interface-descriptors.h" | 7 #include "src/interface-descriptors.h" |
8 | 8 |
9 namespace v8 { | 9 namespace v8 { |
10 namespace internal { | 10 namespace internal { |
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
373 CallInterfaceDescriptorData* data) { | 373 CallInterfaceDescriptorData* data) { |
374 Register registers[] = { | 374 Register registers[] = { |
375 r4, // JSFunction | 375 r4, // JSFunction |
376 r6, // the new target | 376 r6, // the new target |
377 r3, // actual number of arguments | 377 r3, // actual number of arguments |
378 r5, // expected number of arguments | 378 r5, // expected number of arguments |
379 }; | 379 }; |
380 data->InitializePlatformSpecific(arraysize(registers), registers); | 380 data->InitializePlatformSpecific(arraysize(registers), registers); |
381 } | 381 } |
382 | 382 |
383 void ApiCallbackDescriptorBase::InitializePlatformSpecific( | 383 |
| 384 void ApiFunctionDescriptor::InitializePlatformSpecific( |
| 385 CallInterfaceDescriptorData* data) { |
| 386 Register registers[] = { |
| 387 r3, // callee |
| 388 r7, // call_data |
| 389 r5, // holder |
| 390 r4, // api_function_address |
| 391 r6, // actual number of arguments |
| 392 }; |
| 393 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 394 } |
| 395 |
| 396 |
| 397 void ApiAccessorDescriptor::InitializePlatformSpecific( |
384 CallInterfaceDescriptorData* data) { | 398 CallInterfaceDescriptorData* data) { |
385 Register registers[] = { | 399 Register registers[] = { |
386 r3, // callee | 400 r3, // callee |
387 r7, // call_data | 401 r7, // call_data |
388 r5, // holder | 402 r5, // holder |
389 r4, // api_function_address | 403 r4, // api_function_address |
390 }; | 404 }; |
391 data->InitializePlatformSpecific(arraysize(registers), registers); | 405 data->InitializePlatformSpecific(arraysize(registers), registers); |
392 } | 406 } |
393 | 407 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
427 r3, // argument count (argc) | 441 r3, // argument count (argc) |
428 r5, // address of first argument (argv) | 442 r5, // address of first argument (argv) |
429 r4 // the runtime function to call | 443 r4 // the runtime function to call |
430 }; | 444 }; |
431 data->InitializePlatformSpecific(arraysize(registers), registers); | 445 data->InitializePlatformSpecific(arraysize(registers), registers); |
432 } | 446 } |
433 } // namespace internal | 447 } // namespace internal |
434 } // namespace v8 | 448 } // namespace v8 |
435 | 449 |
436 #endif // V8_TARGET_ARCH_PPC | 450 #endif // V8_TARGET_ARCH_PPC |
OLD | NEW |