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 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
364 Register registers[] = { | 364 Register registers[] = { |
365 r1, // JSFunction | 365 r1, // JSFunction |
366 r3, // the new target | 366 r3, // the new target |
367 r0, // actual number of arguments | 367 r0, // actual number of arguments |
368 r2, // expected number of arguments | 368 r2, // expected number of arguments |
369 }; | 369 }; |
370 data->InitializePlatformSpecific(arraysize(registers), registers, | 370 data->InitializePlatformSpecific(arraysize(registers), registers, |
371 &default_descriptor); | 371 &default_descriptor); |
372 } | 372 } |
373 | 373 |
374 void ApiCallbackDescriptorBase::InitializePlatformSpecific( | 374 void ApiCallbackDescriptor::InitializePlatformSpecific( |
375 CallInterfaceDescriptorData* data) { | 375 CallInterfaceDescriptorData* data) { |
376 static PlatformInterfaceDescriptor default_descriptor = | 376 static PlatformInterfaceDescriptor default_descriptor = |
377 PlatformInterfaceDescriptor(CAN_INLINE_TARGET_ADDRESS); | 377 PlatformInterfaceDescriptor(CAN_INLINE_TARGET_ADDRESS); |
378 | 378 |
379 Register registers[] = { | 379 Register registers[] = { |
380 r0, // callee | 380 r0, // callee |
381 r4, // call_data | 381 r4, // call_data |
382 r2, // holder | 382 r2, // holder |
383 r1, // api_function_address | 383 r1, // api_function_address |
384 }; | 384 }; |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
444 r1, // the JSGeneratorObject to resume | 444 r1, // the JSGeneratorObject to resume |
445 r2 // the resume mode (tagged) | 445 r2 // the resume mode (tagged) |
446 }; | 446 }; |
447 data->InitializePlatformSpecific(arraysize(registers), registers); | 447 data->InitializePlatformSpecific(arraysize(registers), registers); |
448 } | 448 } |
449 | 449 |
450 } // namespace internal | 450 } // namespace internal |
451 } // namespace v8 | 451 } // namespace v8 |
452 | 452 |
453 #endif // V8_TARGET_ARCH_ARM | 453 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |