| 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 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 380 } | 380 } |
| 381 | 381 |
| 382 | 382 |
| 383 void ArgumentAdaptorDescriptor::InitializePlatformSpecific( | 383 void ArgumentAdaptorDescriptor::InitializePlatformSpecific( |
| 384 CallInterfaceDescriptorData* data) { | 384 CallInterfaceDescriptorData* data) { |
| 385 static PlatformInterfaceDescriptor default_descriptor = | 385 static PlatformInterfaceDescriptor default_descriptor = |
| 386 PlatformInterfaceDescriptor(CAN_INLINE_TARGET_ADDRESS); | 386 PlatformInterfaceDescriptor(CAN_INLINE_TARGET_ADDRESS); |
| 387 | 387 |
| 388 Register registers[] = { | 388 Register registers[] = { |
| 389 x1, // JSFunction | 389 x1, // JSFunction |
| 390 x3, // the new target |
| 390 x0, // actual number of arguments | 391 x0, // actual number of arguments |
| 391 x2, // expected number of arguments | 392 x2, // expected number of arguments |
| 392 }; | 393 }; |
| 393 data->InitializePlatformSpecific(arraysize(registers), registers, | 394 data->InitializePlatformSpecific(arraysize(registers), registers, |
| 394 &default_descriptor); | 395 &default_descriptor); |
| 395 } | 396 } |
| 396 | 397 |
| 397 | 398 |
| 398 void ApiFunctionDescriptor::InitializePlatformSpecific( | 399 void ApiFunctionDescriptor::InitializePlatformSpecific( |
| 399 CallInterfaceDescriptorData* data) { | 400 CallInterfaceDescriptorData* data) { |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 480 x1 // the runtime function to call | 481 x1 // the runtime function to call |
| 481 }; | 482 }; |
| 482 data->InitializePlatformSpecific(arraysize(registers), registers); | 483 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 483 } | 484 } |
| 484 | 485 |
| 485 | 486 |
| 486 } // namespace internal | 487 } // namespace internal |
| 487 } // namespace v8 | 488 } // namespace v8 |
| 488 | 489 |
| 489 #endif // V8_TARGET_ARCH_ARM64 | 490 #endif // V8_TARGET_ARCH_ARM64 |
| OLD | NEW |