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 #if V8_TARGET_ARCH_X64 | 5 #if V8_TARGET_ARCH_X64 |
6 | 6 |
7 #include "src/interface-descriptors.h" | 7 #include "src/interface-descriptors.h" |
8 | 8 |
9 namespace v8 { | 9 namespace v8 { |
10 namespace internal { | 10 namespace internal { |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 // rcx : original constructor (for IsSuperConstructorCall) | 184 // rcx : original constructor (for IsSuperConstructorCall) |
185 // rdx : slot in feedback vector (Smi, for RecordCallTarget) | 185 // rdx : slot in feedback vector (Smi, for RecordCallTarget) |
186 // rdi : constructor function | 186 // rdi : constructor function |
187 // TODO(turbofan): So far we don't gather type feedback and hence skip the | 187 // TODO(turbofan): So far we don't gather type feedback and hence skip the |
188 // slot parameter, but ArrayConstructStub needs the vector to be undefined. | 188 // slot parameter, but ArrayConstructStub needs the vector to be undefined. |
189 Register registers[] = {rax, rdi, rcx, rbx}; | 189 Register registers[] = {rax, rdi, rcx, rbx}; |
190 data->InitializePlatformSpecific(arraysize(registers), registers); | 190 data->InitializePlatformSpecific(arraysize(registers), registers); |
191 } | 191 } |
192 | 192 |
193 | 193 |
| 194 void CallTrampolineDescriptor::InitializePlatformSpecific( |
| 195 CallInterfaceDescriptorData* data) { |
| 196 // rax : number of arguments |
| 197 // rdi : the target to call |
| 198 Register registers[] = {rdi, rax}; |
| 199 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 200 } |
| 201 |
| 202 |
194 void RegExpConstructResultDescriptor::InitializePlatformSpecific( | 203 void RegExpConstructResultDescriptor::InitializePlatformSpecific( |
195 CallInterfaceDescriptorData* data) { | 204 CallInterfaceDescriptorData* data) { |
196 Register registers[] = {rcx, rbx, rax}; | 205 Register registers[] = {rcx, rbx, rax}; |
197 data->InitializePlatformSpecific(arraysize(registers), registers); | 206 data->InitializePlatformSpecific(arraysize(registers), registers); |
198 } | 207 } |
199 | 208 |
200 | 209 |
201 void TransitionElementsKindDescriptor::InitializePlatformSpecific( | 210 void TransitionElementsKindDescriptor::InitializePlatformSpecific( |
202 CallInterfaceDescriptorData* data) { | 211 CallInterfaceDescriptorData* data) { |
203 Register registers[] = {rax, rbx}; | 212 Register registers[] = {rax, rbx}; |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
369 rdi, // math rounding function | 378 rdi, // math rounding function |
370 rdx, // vector slot id | 379 rdx, // vector slot id |
371 rbx // type vector | 380 rbx // type vector |
372 }; | 381 }; |
373 data->InitializePlatformSpecific(arraysize(registers), registers); | 382 data->InitializePlatformSpecific(arraysize(registers), registers); |
374 } | 383 } |
375 } // namespace internal | 384 } // namespace internal |
376 } // namespace v8 | 385 } // namespace v8 |
377 | 386 |
378 #endif // V8_TARGET_ARCH_X64 | 387 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |