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 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
410 InitializePlatformSpecific(CallInterfaceDescriptorData* data) { | 410 InitializePlatformSpecific(CallInterfaceDescriptorData* data) { |
411 Register registers[] = { | 411 Register registers[] = { |
412 r1, // math rounding function | 412 r1, // math rounding function |
413 r3, // vector slot id | 413 r3, // vector slot id |
414 r4, // type vector | 414 r4, // type vector |
415 }; | 415 }; |
416 data->InitializePlatformSpecific(arraysize(registers), registers); | 416 data->InitializePlatformSpecific(arraysize(registers), registers); |
417 } | 417 } |
418 | 418 |
419 | 419 |
420 void InterpreterPushArgsAndCallDescriptor::InitializePlatformSpecific( | 420 void PushArgsAndCallDescriptor::InitializePlatformSpecific( |
421 CallInterfaceDescriptorData* data) { | 421 CallInterfaceDescriptorData* data) { |
422 Register registers[] = { | 422 Register registers[] = { |
423 r0, // argument count (not including receiver) | 423 r0, // argument count (including receiver) |
424 r2, // address of first argument | 424 r2, // address of first argument |
425 r1 // the target callable to be call | 425 r1 // the target callable to be call |
426 }; | 426 }; |
427 data->InitializePlatformSpecific(arraysize(registers), registers); | 427 data->InitializePlatformSpecific(arraysize(registers), registers); |
428 } | 428 } |
429 | 429 |
430 | |
431 void InterpreterCEntryDescriptor::InitializePlatformSpecific( | |
432 CallInterfaceDescriptorData* data) { | |
433 Register registers[] = { | |
434 r0, // argument count (argc) | |
435 r2, // address of first argument (argv) | |
436 r1 // the runtime function to call | |
437 }; | |
438 data->InitializePlatformSpecific(arraysize(registers), registers); | |
439 } | |
440 | |
441 } // namespace internal | 430 } // namespace internal |
442 } // namespace v8 | 431 } // namespace v8 |
443 | 432 |
444 #endif // V8_TARGET_ARCH_ARM | 433 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |