| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 #include "src/arm/interface-descriptors-arm.h" | 5 #include "src/arm/interface-descriptors-arm.h" |
| 6 | 6 |
| 7 #if V8_TARGET_ARCH_ARM | 7 #if V8_TARGET_ARCH_ARM |
| 8 | 8 |
| 9 #include "src/interface-descriptors.h" | 9 #include "src/interface-descriptors.h" |
| 10 | 10 |
| (...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 413 CallInterfaceDescriptorData* data) { | 413 CallInterfaceDescriptorData* data) { |
| 414 Register registers[] = { | 414 Register registers[] = { |
| 415 r0, // argument count (not including receiver) | 415 r0, // argument count (not including receiver) |
| 416 r2, // address of first argument | 416 r2, // address of first argument |
| 417 r1 // the target callable to be call | 417 r1 // the target callable to be call |
| 418 }; | 418 }; |
| 419 data->InitializePlatformSpecific(arraysize(registers), registers); | 419 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 420 } | 420 } |
| 421 | 421 |
| 422 | 422 |
| 423 void InterpreterPushArgsAndConstructDescriptor::InitializePlatformSpecific( |
| 424 CallInterfaceDescriptorData* data) { |
| 425 Register registers[] = { |
| 426 r0, // argument count (not including receiver) |
| 427 r3, // original constructor |
| 428 r1, // constructor to call |
| 429 r2 // address of the first argument |
| 430 }; |
| 431 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 432 } |
| 433 |
| 434 |
| 423 void InterpreterCEntryDescriptor::InitializePlatformSpecific( | 435 void InterpreterCEntryDescriptor::InitializePlatformSpecific( |
| 424 CallInterfaceDescriptorData* data) { | 436 CallInterfaceDescriptorData* data) { |
| 425 Register registers[] = { | 437 Register registers[] = { |
| 426 r0, // argument count (argc) | 438 r0, // argument count (argc) |
| 427 r2, // address of first argument (argv) | 439 r2, // address of first argument (argv) |
| 428 r1 // the runtime function to call | 440 r1 // the runtime function to call |
| 429 }; | 441 }; |
| 430 data->InitializePlatformSpecific(arraysize(registers), registers); | 442 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 431 } | 443 } |
| 432 | 444 |
| 433 } // namespace internal | 445 } // namespace internal |
| 434 } // namespace v8 | 446 } // namespace v8 |
| 435 | 447 |
| 436 #endif // V8_TARGET_ARCH_ARM | 448 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |