| 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 | 96 |
| 97 | 97 |
| 98 void ToNumberDescriptor::InitializePlatformSpecific( | 98 void ToNumberDescriptor::InitializePlatformSpecific( |
| 99 CallInterfaceDescriptorData* data) { | 99 CallInterfaceDescriptorData* data) { |
| 100 // ToNumberStub invokes a function, and therefore needs a context. | 100 // ToNumberStub invokes a function, and therefore needs a context. |
| 101 Register registers[] = {rax}; | 101 Register registers[] = {rax}; |
| 102 data->InitializePlatformSpecific(arraysize(registers), registers); | 102 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 103 } | 103 } |
| 104 | 104 |
| 105 | 105 |
| 106 void ToObjectDescriptor::InitializePlatformSpecific( |
| 107 CallInterfaceDescriptorData* data) { |
| 108 // ToObjectStub invokes a function, and therefore needs a context. |
| 109 Register registers[] = {rax}; |
| 110 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 111 } |
| 112 |
| 113 |
| 106 void NumberToStringDescriptor::InitializePlatformSpecific( | 114 void NumberToStringDescriptor::InitializePlatformSpecific( |
| 107 CallInterfaceDescriptorData* data) { | 115 CallInterfaceDescriptorData* data) { |
| 108 Register registers[] = {rax}; | 116 Register registers[] = {rax}; |
| 109 data->InitializePlatformSpecific(arraysize(registers), registers); | 117 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 110 } | 118 } |
| 111 | 119 |
| 112 | 120 |
| 113 void FastCloneShallowArrayDescriptor::InitializePlatformSpecific( | 121 void FastCloneShallowArrayDescriptor::InitializePlatformSpecific( |
| 114 CallInterfaceDescriptorData* data) { | 122 CallInterfaceDescriptorData* data) { |
| 115 Register registers[] = {rax, rbx, rcx}; | 123 Register registers[] = {rax, rbx, rcx}; |
| (...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 358 rdi, // math rounding function | 366 rdi, // math rounding function |
| 359 rdx, // vector slot id | 367 rdx, // vector slot id |
| 360 rbx // type vector | 368 rbx // type vector |
| 361 }; | 369 }; |
| 362 data->InitializePlatformSpecific(arraysize(registers), registers); | 370 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 363 } | 371 } |
| 364 } // namespace internal | 372 } // namespace internal |
| 365 } // namespace v8 | 373 } // namespace v8 |
| 366 | 374 |
| 367 #endif // V8_TARGET_ARCH_X64 | 375 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |