| 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 468 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 479 | 479 |
| 480 void InterpreterDispatchDescriptor::InitializePlatformSpecific( | 480 void InterpreterDispatchDescriptor::InitializePlatformSpecific( |
| 481 CallInterfaceDescriptorData* data) { | 481 CallInterfaceDescriptorData* data) { |
| 482 Register registers[] = { | 482 Register registers[] = { |
| 483 kInterpreterAccumulatorRegister, kInterpreterRegisterFileRegister, | 483 kInterpreterAccumulatorRegister, kInterpreterRegisterFileRegister, |
| 484 kInterpreterBytecodeOffsetRegister, kInterpreterBytecodeArrayRegister, | 484 kInterpreterBytecodeOffsetRegister, kInterpreterBytecodeArrayRegister, |
| 485 kInterpreterDispatchTableRegister}; | 485 kInterpreterDispatchTableRegister}; |
| 486 data->InitializePlatformSpecific(arraysize(registers), registers); | 486 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 487 } | 487 } |
| 488 | 488 |
| 489 void InterpreterPushArgsAndCallICDescriptor::InitializePlatformSpecific( |
| 490 CallInterfaceDescriptorData* data) { |
| 491 Register registers[] = { |
| 492 x0, // argument count (not including receiver) |
| 493 x4, // address of first argument |
| 494 x1, // the target callable to be call |
| 495 x3, // slot id |
| 496 x2 // type feedback vector |
| 497 }; |
| 498 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 499 } |
| 500 |
| 489 void InterpreterPushArgsAndCallDescriptor::InitializePlatformSpecific( | 501 void InterpreterPushArgsAndCallDescriptor::InitializePlatformSpecific( |
| 490 CallInterfaceDescriptorData* data) { | 502 CallInterfaceDescriptorData* data) { |
| 491 Register registers[] = { | 503 Register registers[] = { |
| 492 x0, // argument count (not including receiver) | 504 x0, // argument count (not including receiver) |
| 493 x2, // address of first argument | 505 x2, // address of first argument |
| 494 x1 // the target callable to be call | 506 x1 // the target callable to be call |
| 495 }; | 507 }; |
| 496 data->InitializePlatformSpecific(arraysize(registers), registers); | 508 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 497 } | 509 } |
| 498 | 510 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 515 x1 // the runtime function to call | 527 x1 // the runtime function to call |
| 516 }; | 528 }; |
| 517 data->InitializePlatformSpecific(arraysize(registers), registers); | 529 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 518 } | 530 } |
| 519 | 531 |
| 520 | 532 |
| 521 } // namespace internal | 533 } // namespace internal |
| 522 } // namespace v8 | 534 } // namespace v8 |
| 523 | 535 |
| 524 #endif // V8_TARGET_ARCH_ARM64 | 536 #endif // V8_TARGET_ARCH_ARM64 |
| OLD | NEW |