| 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 417 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 428 }; | 428 }; |
| 429 data->InitializePlatformSpecific(arraysize(registers), registers); | 429 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 430 } | 430 } |
| 431 | 431 |
| 432 void InterpreterPushArgsAndConstructDescriptor::InitializePlatformSpecific( | 432 void InterpreterPushArgsAndConstructDescriptor::InitializePlatformSpecific( |
| 433 CallInterfaceDescriptorData* data) { | 433 CallInterfaceDescriptorData* data) { |
| 434 Register registers[] = { | 434 Register registers[] = { |
| 435 x0, // argument count (not including receiver) | 435 x0, // argument count (not including receiver) |
| 436 x3, // new target | 436 x3, // new target |
| 437 x1, // constructor to call | 437 x1, // constructor to call |
| 438 x2, // allocation site feedback if available, undefined otherwise | 438 x2 // address of the first argument |
| 439 x4 // address of the first argument | |
| 440 }; | 439 }; |
| 441 data->InitializePlatformSpecific(arraysize(registers), registers); | 440 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 442 } | 441 } |
| 443 | 442 |
| 444 void InterpreterCEntryDescriptor::InitializePlatformSpecific( | 443 void InterpreterCEntryDescriptor::InitializePlatformSpecific( |
| 445 CallInterfaceDescriptorData* data) { | 444 CallInterfaceDescriptorData* data) { |
| 446 Register registers[] = { | 445 Register registers[] = { |
| 447 x0, // argument count (argc) | 446 x0, // argument count (argc) |
| 448 x11, // address of first argument (argv) | 447 x11, // address of first argument (argv) |
| 449 x1 // the runtime function to call | 448 x1 // the runtime function to call |
| 450 }; | 449 }; |
| 451 data->InitializePlatformSpecific(arraysize(registers), registers); | 450 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 452 } | 451 } |
| 453 | 452 |
| 454 void ResumeGeneratorDescriptor::InitializePlatformSpecific( | 453 void ResumeGeneratorDescriptor::InitializePlatformSpecific( |
| 455 CallInterfaceDescriptorData* data) { | 454 CallInterfaceDescriptorData* data) { |
| 456 Register registers[] = { | 455 Register registers[] = { |
| 457 x0, // the value to pass to the generator | 456 x0, // the value to pass to the generator |
| 458 x1, // the JSGeneratorObject to resume | 457 x1, // the JSGeneratorObject to resume |
| 459 x2 // the resume mode (tagged) | 458 x2 // the resume mode (tagged) |
| 460 }; | 459 }; |
| 461 data->InitializePlatformSpecific(arraysize(registers), registers); | 460 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 462 } | 461 } |
| 463 | 462 |
| 464 } // namespace internal | 463 } // namespace internal |
| 465 } // namespace v8 | 464 } // namespace v8 |
| 466 | 465 |
| 467 #endif // V8_TARGET_ARCH_ARM64 | 466 #endif // V8_TARGET_ARCH_ARM64 |
| OLD | NEW |