| 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 |
| 453 void InterpreterPushArgsAndCallDescriptor::InitializePlatformSpecific( | 465 void InterpreterPushArgsAndCallDescriptor::InitializePlatformSpecific( |
| 454 CallInterfaceDescriptorData* data) { | 466 CallInterfaceDescriptorData* data) { |
| 455 Register registers[] = { | 467 Register registers[] = { |
| 456 r0, // argument count (not including receiver) | 468 r0, // argument count (not including receiver) |
| 457 r2, // address of first argument | 469 r2, // address of first argument |
| 458 r1 // the target callable to be call | 470 r1 // the target callable to be call |
| 459 }; | 471 }; |
| 460 data->InitializePlatformSpecific(arraysize(registers), registers); | 472 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 461 } | 473 } |
| 462 | 474 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 478 r2, // address of first argument (argv) | 490 r2, // address of first argument (argv) |
| 479 r1 // the runtime function to call | 491 r1 // the runtime function to call |
| 480 }; | 492 }; |
| 481 data->InitializePlatformSpecific(arraysize(registers), registers); | 493 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 482 } | 494 } |
| 483 | 495 |
| 484 } // namespace internal | 496 } // namespace internal |
| 485 } // namespace v8 | 497 } // namespace v8 |
| 486 | 498 |
| 487 #endif // V8_TARGET_ARCH_ARM | 499 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |