| 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 428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 439 InitializePlatformSpecific(CallInterfaceDescriptorData* data) { | 439 InitializePlatformSpecific(CallInterfaceDescriptorData* data) { |
| 440 Register registers[] = { | 440 Register registers[] = { |
| 441 x1, // math rounding function | 441 x1, // math rounding function |
| 442 x3, // vector slot id | 442 x3, // vector slot id |
| 443 x4, // type vector | 443 x4, // type vector |
| 444 }; | 444 }; |
| 445 data->InitializePlatformSpecific(arraysize(registers), registers); | 445 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 446 } | 446 } |
| 447 | 447 |
| 448 | 448 |
| 449 void InterpreterPushArgsAndCallDescriptor::InitializePlatformSpecific( | 449 void PushArgsAndCallDescriptor::InitializePlatformSpecific( |
| 450 CallInterfaceDescriptorData* data) { | 450 CallInterfaceDescriptorData* data) { |
| 451 Register registers[] = { | 451 Register registers[] = { |
| 452 x0, // argument count (not including receiver) | 452 x0, // argument count (including receiver) |
| 453 x2, // address of first argument | 453 x2, // address of first argument |
| 454 x1 // the target callable to be call | 454 x1 // the target callable to be call |
| 455 }; | 455 }; |
| 456 data->InitializePlatformSpecific(arraysize(registers), registers); | 456 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 457 } | 457 } |
| 458 | 458 |
| 459 | |
| 460 void InterpreterCEntryDescriptor::InitializePlatformSpecific( | |
| 461 CallInterfaceDescriptorData* data) { | |
| 462 Register registers[] = { | |
| 463 x0, // argument count (argc) | |
| 464 x11, // address of first argument (argv) | |
| 465 x1 // the runtime function to call | |
| 466 }; | |
| 467 data->InitializePlatformSpecific(arraysize(registers), registers); | |
| 468 } | |
| 469 | |
| 470 | |
| 471 } // namespace internal | 459 } // namespace internal |
| 472 } // namespace v8 | 460 } // namespace v8 |
| 473 | 461 |
| 474 #endif // V8_TARGET_ARCH_ARM64 | 462 #endif // V8_TARGET_ARCH_ARM64 |
| OLD | NEW |