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 | |
501 void InterpreterPushArgsAndCallDescriptor::InitializePlatformSpecific( | 489 void InterpreterPushArgsAndCallDescriptor::InitializePlatformSpecific( |
502 CallInterfaceDescriptorData* data) { | 490 CallInterfaceDescriptorData* data) { |
503 Register registers[] = { | 491 Register registers[] = { |
504 x0, // argument count (not including receiver) | 492 x0, // argument count (not including receiver) |
505 x2, // address of first argument | 493 x2, // address of first argument |
506 x1 // the target callable to be call | 494 x1 // the target callable to be call |
507 }; | 495 }; |
508 data->InitializePlatformSpecific(arraysize(registers), registers); | 496 data->InitializePlatformSpecific(arraysize(registers), registers); |
509 } | 497 } |
510 | 498 |
(...skipping 16 matching lines...) Expand all Loading... |
527 x1 // the runtime function to call | 515 x1 // the runtime function to call |
528 }; | 516 }; |
529 data->InitializePlatformSpecific(arraysize(registers), registers); | 517 data->InitializePlatformSpecific(arraysize(registers), registers); |
530 } | 518 } |
531 | 519 |
532 | 520 |
533 } // namespace internal | 521 } // namespace internal |
534 } // namespace v8 | 522 } // namespace v8 |
535 | 523 |
536 #endif // V8_TARGET_ARCH_ARM64 | 524 #endif // V8_TARGET_ARCH_ARM64 |
OLD | NEW |