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 385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
396 Register registers[] = { | 396 Register registers[] = { |
397 x1, // JSFunction | 397 x1, // JSFunction |
398 x3, // the new target | 398 x3, // the new target |
399 x0, // actual number of arguments | 399 x0, // actual number of arguments |
400 x2, // expected number of arguments | 400 x2, // expected number of arguments |
401 }; | 401 }; |
402 data->InitializePlatformSpecific(arraysize(registers), registers, | 402 data->InitializePlatformSpecific(arraysize(registers), registers, |
403 &default_descriptor); | 403 &default_descriptor); |
404 } | 404 } |
405 | 405 |
406 void ApiCallbackDescriptorBase::InitializePlatformSpecific( | 406 void ApiCallbackDescriptor::InitializePlatformSpecific( |
407 CallInterfaceDescriptorData* data) { | 407 CallInterfaceDescriptorData* data) { |
408 static PlatformInterfaceDescriptor default_descriptor = | 408 static PlatformInterfaceDescriptor default_descriptor = |
409 PlatformInterfaceDescriptor(CAN_INLINE_TARGET_ADDRESS); | 409 PlatformInterfaceDescriptor(CAN_INLINE_TARGET_ADDRESS); |
410 | 410 |
411 Register registers[] = { | 411 Register registers[] = { |
412 x0, // callee | 412 x0, // callee |
413 x4, // call_data | 413 x4, // call_data |
414 x2, // holder | 414 x2, // holder |
415 x1, // api_function_address | 415 x1, // api_function_address |
416 }; | 416 }; |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
476 x1, // the JSGeneratorObject to resume | 476 x1, // the JSGeneratorObject to resume |
477 x2 // the resume mode (tagged) | 477 x2 // the resume mode (tagged) |
478 }; | 478 }; |
479 data->InitializePlatformSpecific(arraysize(registers), registers); | 479 data->InitializePlatformSpecific(arraysize(registers), registers); |
480 } | 480 } |
481 | 481 |
482 } // namespace internal | 482 } // namespace internal |
483 } // namespace v8 | 483 } // namespace v8 |
484 | 484 |
485 #endif // V8_TARGET_ARCH_ARM64 | 485 #endif // V8_TARGET_ARCH_ARM64 |
OLD | NEW |