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