| 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 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 389 Register registers[] = { | 389 Register registers[] = { |
| 390 r3, // argument count (not including receiver) | 390 r3, // argument count (not including receiver) |
| 391 r6, // new target | 391 r6, // new target |
| 392 r4, // constructor to call | 392 r4, // constructor to call |
| 393 r5, // allocation site feedback if available, undefined otherwise | 393 r5, // allocation site feedback if available, undefined otherwise |
| 394 r7 // address of the first argument | 394 r7 // address of the first argument |
| 395 }; | 395 }; |
| 396 data->InitializePlatformSpecific(arraysize(registers), registers); | 396 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 397 } | 397 } |
| 398 | 398 |
| 399 void InterpreterPushArgsAndConstructArrayDescriptor::InitializePlatformSpecific( |
| 400 CallInterfaceDescriptorData* data) { |
| 401 Register registers[] = { |
| 402 r3, // argument count (not including receiver) |
| 403 r4, // target to call checked to be Array function |
| 404 r5, // allocation site feedback if available, undefined otherwise |
| 405 r6 // address of the first argument |
| 406 }; |
| 407 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 408 } |
| 409 |
| 399 void InterpreterCEntryDescriptor::InitializePlatformSpecific( | 410 void InterpreterCEntryDescriptor::InitializePlatformSpecific( |
| 400 CallInterfaceDescriptorData* data) { | 411 CallInterfaceDescriptorData* data) { |
| 401 Register registers[] = { | 412 Register registers[] = { |
| 402 r3, // argument count (argc) | 413 r3, // argument count (argc) |
| 403 r5, // address of first argument (argv) | 414 r5, // address of first argument (argv) |
| 404 r4 // the runtime function to call | 415 r4 // the runtime function to call |
| 405 }; | 416 }; |
| 406 data->InitializePlatformSpecific(arraysize(registers), registers); | 417 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 407 } | 418 } |
| 408 | 419 |
| 409 void ResumeGeneratorDescriptor::InitializePlatformSpecific( | 420 void ResumeGeneratorDescriptor::InitializePlatformSpecific( |
| 410 CallInterfaceDescriptorData* data) { | 421 CallInterfaceDescriptorData* data) { |
| 411 Register registers[] = { | 422 Register registers[] = { |
| 412 r3, // the value to pass to the generator | 423 r3, // the value to pass to the generator |
| 413 r4, // the JSGeneratorObject to resume | 424 r4, // the JSGeneratorObject to resume |
| 414 r5 // the resume mode (tagged) | 425 r5 // the resume mode (tagged) |
| 415 }; | 426 }; |
| 416 data->InitializePlatformSpecific(arraysize(registers), registers); | 427 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 417 } | 428 } |
| 418 } // namespace internal | 429 } // namespace internal |
| 419 } // namespace v8 | 430 } // namespace v8 |
| 420 | 431 |
| 421 #endif // V8_TARGET_ARCH_PPC | 432 #endif // V8_TARGET_ARCH_PPC |
| OLD | NEW |