| 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 432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 443 x0, // callee | 443 x0, // callee |
| 444 x4, // call_data | 444 x4, // call_data |
| 445 x2, // holder | 445 x2, // holder |
| 446 x1, // api_function_address | 446 x1, // api_function_address |
| 447 }; | 447 }; |
| 448 data->InitializePlatformSpecific(arraysize(registers), registers, | 448 data->InitializePlatformSpecific(arraysize(registers), registers, |
| 449 &default_descriptor); | 449 &default_descriptor); |
| 450 } | 450 } |
| 451 | 451 |
| 452 | 452 |
| 453 void MathRoundVariantCallFromUnoptimizedCodeDescriptor:: | |
| 454 InitializePlatformSpecific(CallInterfaceDescriptorData* data) { | |
| 455 Register registers[] = { | |
| 456 x1, // math rounding function | |
| 457 x3, // vector slot id | |
| 458 }; | |
| 459 data->InitializePlatformSpecific(arraysize(registers), registers); | |
| 460 } | |
| 461 | |
| 462 | |
| 463 void MathRoundVariantCallFromOptimizedCodeDescriptor:: | |
| 464 InitializePlatformSpecific(CallInterfaceDescriptorData* data) { | |
| 465 Register registers[] = { | |
| 466 x1, // math rounding function | |
| 467 x3, // vector slot id | |
| 468 x4, // type vector | |
| 469 }; | |
| 470 data->InitializePlatformSpecific(arraysize(registers), registers); | |
| 471 } | |
| 472 | |
| 473 | |
| 474 void InterpreterPushArgsAndCallDescriptor::InitializePlatformSpecific( | 453 void InterpreterPushArgsAndCallDescriptor::InitializePlatformSpecific( |
| 475 CallInterfaceDescriptorData* data) { | 454 CallInterfaceDescriptorData* data) { |
| 476 Register registers[] = { | 455 Register registers[] = { |
| 477 x0, // argument count (not including receiver) | 456 x0, // argument count (not including receiver) |
| 478 x2, // address of first argument | 457 x2, // address of first argument |
| 479 x1 // the target callable to be call | 458 x1 // the target callable to be call |
| 480 }; | 459 }; |
| 481 data->InitializePlatformSpecific(arraysize(registers), registers); | 460 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 482 } | 461 } |
| 483 | 462 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 502 x1 // the runtime function to call | 481 x1 // the runtime function to call |
| 503 }; | 482 }; |
| 504 data->InitializePlatformSpecific(arraysize(registers), registers); | 483 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 505 } | 484 } |
| 506 | 485 |
| 507 | 486 |
| 508 } // namespace internal | 487 } // namespace internal |
| 509 } // namespace v8 | 488 } // namespace v8 |
| 510 | 489 |
| 511 #endif // V8_TARGET_ARCH_ARM64 | 490 #endif // V8_TARGET_ARCH_ARM64 |
| OLD | NEW |