| 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/arm/interface-descriptors-arm.h" | 5 #include "src/arm/interface-descriptors-arm.h" |
| 6 | 6 |
| 7 #if V8_TARGET_ARCH_ARM | 7 #if V8_TARGET_ARCH_ARM |
| 8 | 8 |
| 9 #include "src/interface-descriptors.h" | 9 #include "src/interface-descriptors.h" |
| 10 | 10 |
| (...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 351 } | 351 } |
| 352 | 352 |
| 353 | 353 |
| 354 void ArgumentAdaptorDescriptor::InitializePlatformSpecific( | 354 void ArgumentAdaptorDescriptor::InitializePlatformSpecific( |
| 355 CallInterfaceDescriptorData* data) { | 355 CallInterfaceDescriptorData* data) { |
| 356 static PlatformInterfaceDescriptor default_descriptor = | 356 static PlatformInterfaceDescriptor default_descriptor = |
| 357 PlatformInterfaceDescriptor(CAN_INLINE_TARGET_ADDRESS); | 357 PlatformInterfaceDescriptor(CAN_INLINE_TARGET_ADDRESS); |
| 358 | 358 |
| 359 Register registers[] = { | 359 Register registers[] = { |
| 360 r1, // JSFunction | 360 r1, // JSFunction |
| 361 r3, // the new target |
| 361 r0, // actual number of arguments | 362 r0, // actual number of arguments |
| 362 r2, // expected number of arguments | 363 r2, // expected number of arguments |
| 363 }; | 364 }; |
| 364 data->InitializePlatformSpecific(arraysize(registers), registers, | 365 data->InitializePlatformSpecific(arraysize(registers), registers, |
| 365 &default_descriptor); | 366 &default_descriptor); |
| 366 } | 367 } |
| 367 | 368 |
| 368 | 369 |
| 369 void ApiFunctionDescriptor::InitializePlatformSpecific( | 370 void ApiFunctionDescriptor::InitializePlatformSpecific( |
| 370 CallInterfaceDescriptorData* data) { | 371 CallInterfaceDescriptorData* data) { |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 450 r2, // address of first argument (argv) | 451 r2, // address of first argument (argv) |
| 451 r1 // the runtime function to call | 452 r1 // the runtime function to call |
| 452 }; | 453 }; |
| 453 data->InitializePlatformSpecific(arraysize(registers), registers); | 454 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 454 } | 455 } |
| 455 | 456 |
| 456 } // namespace internal | 457 } // namespace internal |
| 457 } // namespace v8 | 458 } // namespace v8 |
| 458 | 459 |
| 459 #endif // V8_TARGET_ARCH_ARM | 460 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |