| 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 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 358 }; | 358 }; |
| 359 Representation representations[] = { | 359 Representation representations[] = { |
| 360 Representation::Tagged(), // context | 360 Representation::Tagged(), // context |
| 361 Representation::Tagged(), // callee | 361 Representation::Tagged(), // callee |
| 362 Representation::Tagged(), // call_data | 362 Representation::Tagged(), // call_data |
| 363 Representation::Tagged(), // holder | 363 Representation::Tagged(), // holder |
| 364 Representation::External(), // api_function_address | 364 Representation::External(), // api_function_address |
| 365 }; | 365 }; |
| 366 data->Initialize(arraysize(registers), registers, representations); | 366 data->Initialize(arraysize(registers), registers, representations); |
| 367 } | 367 } |
| 368 |
| 369 |
| 370 void MathRoundVariantDescriptor::Initialize(CallInterfaceDescriptorData* data) { |
| 371 Register registers[] = { |
| 372 rsi, // context |
| 373 rdi, // math rounding function |
| 374 rdx, // vector slot id |
| 375 }; |
| 376 Representation representations[] = { |
| 377 Representation::Tagged(), // |
| 378 Representation::Tagged(), // |
| 379 Representation::Tagged(), // |
| 380 }; |
| 381 data->Initialize(arraysize(registers), registers, representations); |
| 382 } |
| 368 } | 383 } |
| 369 } // namespace v8::internal | 384 } // namespace v8::internal |
| 370 | 385 |
| 371 #endif // V8_TARGET_ARCH_X64 | 386 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |