| 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 | 383 void ApiCallbackDescriptorBase::InitializePlatformSpecific( |
| 384 void ApiFunctionDescriptor::InitializePlatformSpecific( | |
| 385 CallInterfaceDescriptorData* data) { | 384 CallInterfaceDescriptorData* data) { |
| 386 Register registers[] = { | 385 Register registers[] = { |
| 387 r3, // callee | 386 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( | |
| 398 CallInterfaceDescriptorData* data) { | |
| 399 Register registers[] = { | |
| 400 r3, // callee | |
| 401 r7, // call_data | 387 r7, // call_data |
| 402 r5, // holder | 388 r5, // holder |
| 403 r4, // api_function_address | 389 r4, // api_function_address |
| 404 }; | 390 }; |
| 405 data->InitializePlatformSpecific(arraysize(registers), registers); | 391 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 406 } | 392 } |
| 407 | 393 |
| 408 void InterpreterDispatchDescriptor::InitializePlatformSpecific( | 394 void InterpreterDispatchDescriptor::InitializePlatformSpecific( |
| 409 CallInterfaceDescriptorData* data) { | 395 CallInterfaceDescriptorData* data) { |
| 410 Register registers[] = { | 396 Register registers[] = { |
| (...skipping 30 matching lines...) Expand all Loading... |
| 441 r3, // argument count (argc) | 427 r3, // argument count (argc) |
| 442 r5, // address of first argument (argv) | 428 r5, // address of first argument (argv) |
| 443 r4 // the runtime function to call | 429 r4 // the runtime function to call |
| 444 }; | 430 }; |
| 445 data->InitializePlatformSpecific(arraysize(registers), registers); | 431 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 446 } | 432 } |
| 447 } // namespace internal | 433 } // namespace internal |
| 448 } // namespace v8 | 434 } // namespace v8 |
| 449 | 435 |
| 450 #endif // V8_TARGET_ARCH_PPC | 436 #endif // V8_TARGET_ARCH_PPC |
| OLD | NEW |