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 386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
397 CallInterfaceDescriptorData* data) { | 397 CallInterfaceDescriptorData* data) { |
398 Register registers[] = { | 398 Register registers[] = { |
399 r3, // callee | 399 r3, // callee |
400 r7, // call_data | 400 r7, // call_data |
401 r5, // holder | 401 r5, // holder |
402 r4, // api_function_address | 402 r4, // api_function_address |
403 }; | 403 }; |
404 data->InitializePlatformSpecific(arraysize(registers), registers); | 404 data->InitializePlatformSpecific(arraysize(registers), registers); |
405 } | 405 } |
406 | 406 |
| 407 void InterpreterDispatchDescriptor::InitializePlatformSpecific( |
| 408 CallInterfaceDescriptorData* data) { |
| 409 Register registers[] = { |
| 410 kInterpreterAccumulatorRegister, kInterpreterRegisterFileRegister, |
| 411 kInterpreterBytecodeOffsetRegister, kInterpreterBytecodeArrayRegister, |
| 412 kInterpreterDispatchTableRegister}; |
| 413 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 414 } |
407 | 415 |
408 void InterpreterPushArgsAndCallDescriptor::InitializePlatformSpecific( | 416 void InterpreterPushArgsAndCallDescriptor::InitializePlatformSpecific( |
409 CallInterfaceDescriptorData* data) { | 417 CallInterfaceDescriptorData* data) { |
410 Register registers[] = { | 418 Register registers[] = { |
411 r3, // argument count (not including receiver) | 419 r3, // argument count (not including receiver) |
412 r5, // address of first argument | 420 r5, // address of first argument |
413 r4 // the target callable to be call | 421 r4 // the target callable to be call |
414 }; | 422 }; |
415 data->InitializePlatformSpecific(arraysize(registers), registers); | 423 data->InitializePlatformSpecific(arraysize(registers), registers); |
416 } | 424 } |
417 | 425 |
418 | |
419 void InterpreterPushArgsAndConstructDescriptor::InitializePlatformSpecific( | 426 void InterpreterPushArgsAndConstructDescriptor::InitializePlatformSpecific( |
420 CallInterfaceDescriptorData* data) { | 427 CallInterfaceDescriptorData* data) { |
421 Register registers[] = { | 428 Register registers[] = { |
422 r3, // argument count (not including receiver) | 429 r3, // argument count (not including receiver) |
423 r6, // new target | 430 r6, // new target |
424 r4, // constructor to call | 431 r4, // constructor to call |
425 r5 // address of the first argument | 432 r5 // address of the first argument |
426 }; | 433 }; |
427 data->InitializePlatformSpecific(arraysize(registers), registers); | 434 data->InitializePlatformSpecific(arraysize(registers), registers); |
428 } | 435 } |
429 | 436 |
430 | |
431 void InterpreterCEntryDescriptor::InitializePlatformSpecific( | 437 void InterpreterCEntryDescriptor::InitializePlatformSpecific( |
432 CallInterfaceDescriptorData* data) { | 438 CallInterfaceDescriptorData* data) { |
433 Register registers[] = { | 439 Register registers[] = { |
434 r3, // argument count (argc) | 440 r3, // argument count (argc) |
435 r5, // address of first argument (argv) | 441 r5, // address of first argument (argv) |
436 r4 // the runtime function to call | 442 r4 // the runtime function to call |
437 }; | 443 }; |
438 data->InitializePlatformSpecific(arraysize(registers), registers); | 444 data->InitializePlatformSpecific(arraysize(registers), registers); |
439 } | 445 } |
440 } // namespace internal | 446 } // namespace internal |
441 } // namespace v8 | 447 } // namespace v8 |
442 | 448 |
443 #endif // V8_TARGET_ARCH_PPC | 449 #endif // V8_TARGET_ARCH_PPC |
OLD | NEW |