| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_PPC | 7 #if V8_TARGET_ARCH_PPC |
| 8 | 8 |
| 9 #include "src/interface-descriptors.h" | 9 #include "src/interface-descriptors.h" |
| 10 | 10 |
| (...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 322 Register registers[] = { | 322 Register registers[] = { |
| 323 r3, // callee | 323 r3, // callee |
| 324 r7, // call_data | 324 r7, // call_data |
| 325 r5, // holder | 325 r5, // holder |
| 326 r4, // api_function_address | 326 r4, // api_function_address |
| 327 }; | 327 }; |
| 328 data->InitializePlatformSpecific(arraysize(registers), registers); | 328 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 329 } | 329 } |
| 330 | 330 |
| 331 | 331 |
| 332 void MathRoundVariantDescriptor::InitializePlatformSpecific( | 332 void MathRoundVariantCallFromUnoptimizedCodeDescriptor:: |
| 333 CallInterfaceDescriptorData* data) { | 333 InitializePlatformSpecific(CallInterfaceDescriptorData* data) { |
| 334 Register registers[] = { | 334 Register registers[] = { |
| 335 r4, // math rounding function | 335 r4, // math rounding function |
| 336 r6, // vector slot id | 336 r6, // vector slot id |
| 337 }; | 337 }; |
| 338 data->InitializePlatformSpecific(arraysize(registers), registers); | 338 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 339 } | 339 } |
| 340 |
| 341 |
| 342 void MathRoundVariantCallFromOptimizedCodeDescriptor:: |
| 343 InitializePlatformSpecific(CallInterfaceDescriptorData* data) { |
| 344 Register registers[] = { |
| 345 r4, // math rounding function |
| 346 r6, // vector slot id |
| 347 r7, // type vector |
| 348 }; |
| 349 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 350 } |
| 340 } // namespace internal | 351 } // namespace internal |
| 341 } // namespace v8 | 352 } // namespace v8 |
| 342 | 353 |
| 343 #endif // V8_TARGET_ARCH_PPC | 354 #endif // V8_TARGET_ARCH_PPC |
| OLD | NEW |