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) { | |
Camillo Bruni
2015/09/08 11:19:13
// rdi: target
// rax: number of arguments
Benedikt Meurer
2015/09/08 13:08:58
Done.
| |
196 Register registers[] = {rdi, rax}; | |
197 data->InitializePlatformSpecific(arraysize(registers), registers); | |
198 } | |
199 | |
200 | |
194 void RegExpConstructResultDescriptor::InitializePlatformSpecific( | 201 void RegExpConstructResultDescriptor::InitializePlatformSpecific( |
195 CallInterfaceDescriptorData* data) { | 202 CallInterfaceDescriptorData* data) { |
196 Register registers[] = {rcx, rbx, rax}; | 203 Register registers[] = {rcx, rbx, rax}; |
197 data->InitializePlatformSpecific(arraysize(registers), registers); | 204 data->InitializePlatformSpecific(arraysize(registers), registers); |
198 } | 205 } |
199 | 206 |
200 | 207 |
201 void TransitionElementsKindDescriptor::InitializePlatformSpecific( | 208 void TransitionElementsKindDescriptor::InitializePlatformSpecific( |
202 CallInterfaceDescriptorData* data) { | 209 CallInterfaceDescriptorData* data) { |
203 Register registers[] = {rax, rbx}; | 210 Register registers[] = {rax, rbx}; |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
369 rdi, // math rounding function | 376 rdi, // math rounding function |
370 rdx, // vector slot id | 377 rdx, // vector slot id |
371 rbx // type vector | 378 rbx // type vector |
372 }; | 379 }; |
373 data->InitializePlatformSpecific(arraysize(registers), registers); | 380 data->InitializePlatformSpecific(arraysize(registers), registers); |
374 } | 381 } |
375 } // namespace internal | 382 } // namespace internal |
376 } // namespace v8 | 383 } // namespace v8 |
377 | 384 |
378 #endif // V8_TARGET_ARCH_X64 | 385 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |