| 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 398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 409 r0, // callee | 409 r0, // callee |
| 410 r4, // call_data | 410 r4, // call_data |
| 411 r2, // holder | 411 r2, // holder |
| 412 r1, // api_function_address | 412 r1, // api_function_address |
| 413 }; | 413 }; |
| 414 data->InitializePlatformSpecific(arraysize(registers), registers, | 414 data->InitializePlatformSpecific(arraysize(registers), registers, |
| 415 &default_descriptor); | 415 &default_descriptor); |
| 416 } | 416 } |
| 417 | 417 |
| 418 | 418 |
| 419 void MathRoundVariantCallFromUnoptimizedCodeDescriptor:: | |
| 420 InitializePlatformSpecific(CallInterfaceDescriptorData* data) { | |
| 421 Register registers[] = { | |
| 422 r1, // math rounding function | |
| 423 r3, // vector slot id | |
| 424 }; | |
| 425 data->InitializePlatformSpecific(arraysize(registers), registers); | |
| 426 } | |
| 427 | |
| 428 | |
| 429 void MathRoundVariantCallFromOptimizedCodeDescriptor:: | |
| 430 InitializePlatformSpecific(CallInterfaceDescriptorData* data) { | |
| 431 Register registers[] = { | |
| 432 r1, // math rounding function | |
| 433 r3, // vector slot id | |
| 434 r4, // type vector | |
| 435 }; | |
| 436 data->InitializePlatformSpecific(arraysize(registers), registers); | |
| 437 } | |
| 438 | |
| 439 | |
| 440 void InterpreterPushArgsAndCallDescriptor::InitializePlatformSpecific( | 419 void InterpreterPushArgsAndCallDescriptor::InitializePlatformSpecific( |
| 441 CallInterfaceDescriptorData* data) { | 420 CallInterfaceDescriptorData* data) { |
| 442 Register registers[] = { | 421 Register registers[] = { |
| 443 r0, // argument count (not including receiver) | 422 r0, // argument count (not including receiver) |
| 444 r2, // address of first argument | 423 r2, // address of first argument |
| 445 r1 // the target callable to be call | 424 r1 // the target callable to be call |
| 446 }; | 425 }; |
| 447 data->InitializePlatformSpecific(arraysize(registers), registers); | 426 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 448 } | 427 } |
| 449 | 428 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 467 r2, // address of first argument (argv) | 446 r2, // address of first argument (argv) |
| 468 r1 // the runtime function to call | 447 r1 // the runtime function to call |
| 469 }; | 448 }; |
| 470 data->InitializePlatformSpecific(arraysize(registers), registers); | 449 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 471 } | 450 } |
| 472 | 451 |
| 473 } // namespace internal | 452 } // namespace internal |
| 474 } // namespace v8 | 453 } // namespace v8 |
| 475 | 454 |
| 476 #endif // V8_TARGET_ARCH_ARM | 455 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |