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 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
445 Register registers[] = { | 445 Register registers[] = { |
446 x0, // argument count (not including receiver) | 446 x0, // argument count (not including receiver) |
447 x3, // new target | 447 x3, // new target |
448 x1, // constructor to call | 448 x1, // constructor to call |
449 x2, // allocation site feedback if available, undefined otherwise | 449 x2, // allocation site feedback if available, undefined otherwise |
450 x4 // address of the first argument | 450 x4 // address of the first argument |
451 }; | 451 }; |
452 data->InitializePlatformSpecific(arraysize(registers), registers); | 452 data->InitializePlatformSpecific(arraysize(registers), registers); |
453 } | 453 } |
454 | 454 |
| 455 void InterpreterPushArgsAndConstructArrayDescriptor::InitializePlatformSpecific( |
| 456 CallInterfaceDescriptorData* data) { |
| 457 Register registers[] = { |
| 458 x0, // argument count (not including receiver) |
| 459 x1, // target to call checked to be Array function |
| 460 x2, // allocation site feedback if available, undefined otherwise |
| 461 x3 // address of the first argument |
| 462 }; |
| 463 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 464 } |
| 465 |
455 void InterpreterCEntryDescriptor::InitializePlatformSpecific( | 466 void InterpreterCEntryDescriptor::InitializePlatformSpecific( |
456 CallInterfaceDescriptorData* data) { | 467 CallInterfaceDescriptorData* data) { |
457 Register registers[] = { | 468 Register registers[] = { |
458 x0, // argument count (argc) | 469 x0, // argument count (argc) |
459 x11, // address of first argument (argv) | 470 x11, // address of first argument (argv) |
460 x1 // the runtime function to call | 471 x1 // the runtime function to call |
461 }; | 472 }; |
462 data->InitializePlatformSpecific(arraysize(registers), registers); | 473 data->InitializePlatformSpecific(arraysize(registers), registers); |
463 } | 474 } |
464 | 475 |
465 void ResumeGeneratorDescriptor::InitializePlatformSpecific( | 476 void ResumeGeneratorDescriptor::InitializePlatformSpecific( |
466 CallInterfaceDescriptorData* data) { | 477 CallInterfaceDescriptorData* data) { |
467 Register registers[] = { | 478 Register registers[] = { |
468 x0, // the value to pass to the generator | 479 x0, // the value to pass to the generator |
469 x1, // the JSGeneratorObject to resume | 480 x1, // the JSGeneratorObject to resume |
470 x2 // the resume mode (tagged) | 481 x2 // the resume mode (tagged) |
471 }; | 482 }; |
472 data->InitializePlatformSpecific(arraysize(registers), registers); | 483 data->InitializePlatformSpecific(arraysize(registers), registers); |
473 } | 484 } |
474 | 485 |
475 } // namespace internal | 486 } // namespace internal |
476 } // namespace v8 | 487 } // namespace v8 |
477 | 488 |
478 #endif // V8_TARGET_ARCH_ARM64 | 489 #endif // V8_TARGET_ARCH_ARM64 |
OLD | NEW |