| 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/arm64/interface-descriptors-arm64.h" | 5 #include "src/arm64/interface-descriptors-arm64.h" |
| 6 | 6 |
| 7 #if V8_TARGET_ARCH_ARM64 | 7 #if V8_TARGET_ARCH_ARM64 |
| 8 | 8 |
| 9 #include "src/interface-descriptors.h" | 9 #include "src/interface-descriptors.h" |
| 10 | 10 |
| (...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 442 CallInterfaceDescriptorData* data) { | 442 CallInterfaceDescriptorData* data) { |
| 443 Register registers[] = { | 443 Register registers[] = { |
| 444 x0, // argument count (not including receiver) | 444 x0, // argument count (not including receiver) |
| 445 x2, // address of first argument | 445 x2, // address of first argument |
| 446 x1 // the target callable to be call | 446 x1 // the target callable to be call |
| 447 }; | 447 }; |
| 448 data->InitializePlatformSpecific(arraysize(registers), registers); | 448 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 449 } | 449 } |
| 450 | 450 |
| 451 | 451 |
| 452 void InterpreterPushArgsAndConstructDescriptor::InitializePlatformSpecific( | |
| 453 CallInterfaceDescriptorData* data) { | |
| 454 Register registers[] = { | |
| 455 x0, // argument count (not including receiver) | |
| 456 x3, // original constructor | |
| 457 x1, // constructor to call | |
| 458 x2 // address of the first argument | |
| 459 }; | |
| 460 data->InitializePlatformSpecific(arraysize(registers), registers); | |
| 461 } | |
| 462 | |
| 463 | |
| 464 void InterpreterCEntryDescriptor::InitializePlatformSpecific( | 452 void InterpreterCEntryDescriptor::InitializePlatformSpecific( |
| 465 CallInterfaceDescriptorData* data) { | 453 CallInterfaceDescriptorData* data) { |
| 466 Register registers[] = { | 454 Register registers[] = { |
| 467 x0, // argument count (argc) | 455 x0, // argument count (argc) |
| 468 x11, // address of first argument (argv) | 456 x11, // address of first argument (argv) |
| 469 x1 // the runtime function to call | 457 x1 // the runtime function to call |
| 470 }; | 458 }; |
| 471 data->InitializePlatformSpecific(arraysize(registers), registers); | 459 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 472 } | 460 } |
| 473 | 461 |
| 474 | 462 |
| 475 } // namespace internal | 463 } // namespace internal |
| 476 } // namespace v8 | 464 } // namespace v8 |
| 477 | 465 |
| 478 #endif // V8_TARGET_ARCH_ARM64 | 466 #endif // V8_TARGET_ARCH_ARM64 |
| OLD | NEW |