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 432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
443 | 443 |
444 void InterpreterDispatchDescriptor::InitializePlatformSpecific( | 444 void InterpreterDispatchDescriptor::InitializePlatformSpecific( |
445 CallInterfaceDescriptorData* data) { | 445 CallInterfaceDescriptorData* data) { |
446 Register registers[] = { | 446 Register registers[] = { |
447 kInterpreterAccumulatorRegister, kInterpreterRegisterFileRegister, | 447 kInterpreterAccumulatorRegister, kInterpreterRegisterFileRegister, |
448 kInterpreterBytecodeOffsetRegister, kInterpreterBytecodeArrayRegister, | 448 kInterpreterBytecodeOffsetRegister, kInterpreterBytecodeArrayRegister, |
449 kInterpreterDispatchTableRegister}; | 449 kInterpreterDispatchTableRegister}; |
450 data->InitializePlatformSpecific(arraysize(registers), registers); | 450 data->InitializePlatformSpecific(arraysize(registers), registers); |
451 } | 451 } |
452 | 452 |
453 void InterpreterPushArgsAndCallICDescriptor::InitializePlatformSpecific( | |
454 CallInterfaceDescriptorData* data) { | |
455 Register registers[] = { | |
456 r0, // argument count (not including receiver) | |
457 r4, // address of first argument | |
458 r1, // the target callable to be call | |
459 r3, // slot id | |
460 r2 // type feedback vector | |
461 }; | |
462 data->InitializePlatformSpecific(arraysize(registers), registers); | |
463 } | |
464 | |
465 void InterpreterPushArgsAndCallDescriptor::InitializePlatformSpecific( | 453 void InterpreterPushArgsAndCallDescriptor::InitializePlatformSpecific( |
466 CallInterfaceDescriptorData* data) { | 454 CallInterfaceDescriptorData* data) { |
467 Register registers[] = { | 455 Register registers[] = { |
468 r0, // argument count (not including receiver) | 456 r0, // argument count (not including receiver) |
469 r2, // address of first argument | 457 r2, // address of first argument |
470 r1 // the target callable to be call | 458 r1 // the target callable to be call |
471 }; | 459 }; |
472 data->InitializePlatformSpecific(arraysize(registers), registers); | 460 data->InitializePlatformSpecific(arraysize(registers), registers); |
473 } | 461 } |
474 | 462 |
(...skipping 15 matching lines...) Expand all Loading... |
490 r2, // address of first argument (argv) | 478 r2, // address of first argument (argv) |
491 r1 // the runtime function to call | 479 r1 // the runtime function to call |
492 }; | 480 }; |
493 data->InitializePlatformSpecific(arraysize(registers), registers); | 481 data->InitializePlatformSpecific(arraysize(registers), registers); |
494 } | 482 } |
495 | 483 |
496 } // namespace internal | 484 } // namespace internal |
497 } // namespace v8 | 485 } // namespace v8 |
498 | 486 |
499 #endif // V8_TARGET_ARCH_ARM | 487 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |