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/v8.h" | 5 #include "src/v8.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 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
346 r0, // callee | 346 r0, // callee |
347 r4, // call_data | 347 r4, // call_data |
348 r2, // holder | 348 r2, // holder |
349 r1, // api_function_address | 349 r1, // api_function_address |
350 }; | 350 }; |
351 data->InitializePlatformSpecific(arraysize(registers), registers, | 351 data->InitializePlatformSpecific(arraysize(registers), registers, |
352 &default_descriptor); | 352 &default_descriptor); |
353 } | 353 } |
354 | 354 |
355 | 355 |
356 void MathRoundVariantCallFromUnoptimizedCodeDescriptor:: | 356 void MathRoundVariantDescriptor::InitializePlatformSpecific( |
357 InitializePlatformSpecific(CallInterfaceDescriptorData* data) { | 357 CallInterfaceDescriptorData* data) { |
358 Register registers[] = { | 358 Register registers[] = { |
359 r1, // math rounding function | 359 r1, // math rounding function |
360 r3, // vector slot id | 360 r3, // vector slot id |
361 }; | 361 }; |
362 data->InitializePlatformSpecific(arraysize(registers), registers); | 362 data->InitializePlatformSpecific(arraysize(registers), registers); |
363 } | 363 } |
364 | |
365 | |
366 void MathRoundVariantCallFromOptimizedCodeDescriptor:: | |
367 InitializePlatformSpecific(CallInterfaceDescriptorData* data) { | |
368 Register registers[] = { | |
369 r1, // math rounding function | |
370 r3, // vector slot id | |
371 r4, // type vector | |
372 }; | |
373 data->InitializePlatformSpecific(arraysize(registers), registers); | |
374 } | |
375 } // namespace internal | 364 } // namespace internal |
376 } // namespace v8 | 365 } // namespace v8 |
377 | 366 |
378 #endif // V8_TARGET_ARCH_ARM | 367 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |