| 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 447 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 458 Register registers[] = { | 458 Register registers[] = { |
| 459 x0, // callee | 459 x0, // callee |
| 460 x4, // call_data | 460 x4, // call_data |
| 461 x2, // holder | 461 x2, // holder |
| 462 x1, // api_function_address | 462 x1, // api_function_address |
| 463 }; | 463 }; |
| 464 data->InitializePlatformSpecific(arraysize(registers), registers, | 464 data->InitializePlatformSpecific(arraysize(registers), registers, |
| 465 &default_descriptor); | 465 &default_descriptor); |
| 466 } | 466 } |
| 467 | 467 |
| 468 void InterpreterDispatchDescriptor::InitializePlatformSpecific( |
| 469 CallInterfaceDescriptorData* data) { |
| 470 Register registers[] = { |
| 471 kInterpreterAccumulatorRegister, kInterpreterRegisterFileRegister, |
| 472 kInterpreterBytecodeOffsetRegister, kInterpreterBytecodeArrayRegister, |
| 473 kInterpreterDispatchTableRegister}; |
| 474 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 475 } |
| 468 | 476 |
| 469 void InterpreterPushArgsAndCallDescriptor::InitializePlatformSpecific( | 477 void InterpreterPushArgsAndCallDescriptor::InitializePlatformSpecific( |
| 470 CallInterfaceDescriptorData* data) { | 478 CallInterfaceDescriptorData* data) { |
| 471 Register registers[] = { | 479 Register registers[] = { |
| 472 x0, // argument count (not including receiver) | 480 x0, // argument count (not including receiver) |
| 473 x2, // address of first argument | 481 x2, // address of first argument |
| 474 x1 // the target callable to be call | 482 x1 // the target callable to be call |
| 475 }; | 483 }; |
| 476 data->InitializePlatformSpecific(arraysize(registers), registers); | 484 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 477 } | 485 } |
| 478 | 486 |
| 479 | |
| 480 void InterpreterPushArgsAndConstructDescriptor::InitializePlatformSpecific( | 487 void InterpreterPushArgsAndConstructDescriptor::InitializePlatformSpecific( |
| 481 CallInterfaceDescriptorData* data) { | 488 CallInterfaceDescriptorData* data) { |
| 482 Register registers[] = { | 489 Register registers[] = { |
| 483 x0, // argument count (not including receiver) | 490 x0, // argument count (not including receiver) |
| 484 x3, // new target | 491 x3, // new target |
| 485 x1, // constructor to call | 492 x1, // constructor to call |
| 486 x2 // address of the first argument | 493 x2 // address of the first argument |
| 487 }; | 494 }; |
| 488 data->InitializePlatformSpecific(arraysize(registers), registers); | 495 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 489 } | 496 } |
| 490 | 497 |
| 491 | |
| 492 void InterpreterCEntryDescriptor::InitializePlatformSpecific( | 498 void InterpreterCEntryDescriptor::InitializePlatformSpecific( |
| 493 CallInterfaceDescriptorData* data) { | 499 CallInterfaceDescriptorData* data) { |
| 494 Register registers[] = { | 500 Register registers[] = { |
| 495 x0, // argument count (argc) | 501 x0, // argument count (argc) |
| 496 x11, // address of first argument (argv) | 502 x11, // address of first argument (argv) |
| 497 x1 // the runtime function to call | 503 x1 // the runtime function to call |
| 498 }; | 504 }; |
| 499 data->InitializePlatformSpecific(arraysize(registers), registers); | 505 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 500 } | 506 } |
| 501 | 507 |
| 502 | 508 |
| 503 } // namespace internal | 509 } // namespace internal |
| 504 } // namespace v8 | 510 } // namespace v8 |
| 505 | 511 |
| 506 #endif // V8_TARGET_ARCH_ARM64 | 512 #endif // V8_TARGET_ARCH_ARM64 |
| OLD | NEW |