| 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_X64 | 7 #if V8_TARGET_ARCH_X64 |
| 8 | 8 |
| 9 #include "src/interface-descriptors.h" | 9 #include "src/interface-descriptors.h" |
| 10 | 10 |
| (...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 325 Register registers[] = { | 325 Register registers[] = { |
| 326 rdi, // callee | 326 rdi, // callee |
| 327 rbx, // call_data | 327 rbx, // call_data |
| 328 rcx, // holder | 328 rcx, // holder |
| 329 rdx, // api_function_address | 329 rdx, // api_function_address |
| 330 }; | 330 }; |
| 331 data->InitializePlatformSpecific(arraysize(registers), registers); | 331 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 332 } | 332 } |
| 333 | 333 |
| 334 | 334 |
| 335 void MathRoundVariantDescriptor::InitializePlatformSpecific( | 335 void MathRoundVariantCallFromUnoptimizedCodeDescriptor:: |
| 336 CallInterfaceDescriptorData* data) { | 336 InitializePlatformSpecific(CallInterfaceDescriptorData* data) { |
| 337 Register registers[] = { | 337 Register registers[] = { |
| 338 rdi, // math rounding function | 338 rdi, // math rounding function |
| 339 rdx, // vector slot id | 339 rdx, // vector slot id |
| 340 }; | 340 }; |
| 341 data->InitializePlatformSpecific(arraysize(registers), registers); | 341 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 342 } | 342 } |
| 343 |
| 344 |
| 345 void MathRoundVariantCallFromOptimizedCodeDescriptor:: |
| 346 InitializePlatformSpecific(CallInterfaceDescriptorData* data) { |
| 347 Register registers[] = { |
| 348 rdi, // math rounding function |
| 349 rdx, // vector slot id |
| 350 rbx // type vector |
| 351 }; |
| 352 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 353 } |
| 343 } // namespace internal | 354 } // namespace internal |
| 344 } // namespace v8 | 355 } // namespace v8 |
| 345 | 356 |
| 346 #endif // V8_TARGET_ARCH_X64 | 357 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |