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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 } | 148 } |
149 | 149 |
150 | 150 |
151 void TransitionElementsKindDescriptor::Initialize( | 151 void TransitionElementsKindDescriptor::Initialize( |
152 CallInterfaceDescriptorData* data) { | 152 CallInterfaceDescriptorData* data) { |
153 Register registers[] = {rsi, rax, rbx}; | 153 Register registers[] = {rsi, rax, rbx}; |
154 data->Initialize(arraysize(registers), registers, NULL); | 154 data->Initialize(arraysize(registers), registers, NULL); |
155 } | 155 } |
156 | 156 |
157 | 157 |
| 158 void AllocateHeapNumberDescriptor::Initialize( |
| 159 CallInterfaceDescriptorData* data) { |
| 160 // register state |
| 161 // rsi -- context |
| 162 Register registers[] = {rsi}; |
| 163 data->Initialize(arraysize(registers), registers, nullptr); |
| 164 } |
| 165 |
| 166 |
158 void ArrayConstructorConstantArgCountDescriptor::Initialize( | 167 void ArrayConstructorConstantArgCountDescriptor::Initialize( |
159 CallInterfaceDescriptorData* data) { | 168 CallInterfaceDescriptorData* data) { |
160 // register state | 169 // register state |
161 // rax -- number of arguments | 170 // rax -- number of arguments |
162 // rdi -- function | 171 // rdi -- function |
163 // rbx -- allocation site with elements kind | 172 // rbx -- allocation site with elements kind |
164 Register registers[] = {rsi, rdi, rbx}; | 173 Register registers[] = {rsi, rdi, rbx}; |
165 data->Initialize(arraysize(registers), registers, NULL); | 174 data->Initialize(arraysize(registers), registers, NULL); |
166 } | 175 } |
167 | 176 |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
299 Representation::Tagged(), // call_data | 308 Representation::Tagged(), // call_data |
300 Representation::Tagged(), // holder | 309 Representation::Tagged(), // holder |
301 Representation::External(), // api_function_address | 310 Representation::External(), // api_function_address |
302 }; | 311 }; |
303 data->Initialize(arraysize(registers), registers, representations); | 312 data->Initialize(arraysize(registers), registers, representations); |
304 } | 313 } |
305 } | 314 } |
306 } // namespace v8::internal | 315 } // namespace v8::internal |
307 | 316 |
308 #endif // V8_TARGET_ARCH_X64 | 317 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |