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_IA32 | 5 #if V8_TARGET_ARCH_IA32 |
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 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
191 // ecx : original constructor (for IsSuperConstructorCall) | 191 // ecx : original constructor (for IsSuperConstructorCall) |
192 // edx : slot in feedback vector (Smi, for RecordCallTarget) | 192 // edx : slot in feedback vector (Smi, for RecordCallTarget) |
193 // edi : constructor function | 193 // edi : constructor function |
194 // TODO(turbofan): So far we don't gather type feedback and hence skip the | 194 // TODO(turbofan): So far we don't gather type feedback and hence skip the |
195 // slot parameter, but ArrayConstructStub needs the vector to be undefined. | 195 // slot parameter, but ArrayConstructStub needs the vector to be undefined. |
196 Register registers[] = {eax, edi, ecx, ebx}; | 196 Register registers[] = {eax, edi, ecx, ebx}; |
197 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); | 197 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); |
198 } | 198 } |
199 | 199 |
200 | 200 |
201 void CallTrampolineDescriptor::InitializePlatformSpecific( | |
202 CallInterfaceDescriptorData* data) { | |
Camillo Bruni
2015/09/08 11:19:13
// edi: target
// eax: number of arguments
Benedikt Meurer
2015/09/08 13:08:58
Done.
| |
203 Register registers[] = {edi, eax}; | |
204 data->InitializePlatformSpecific(arraysize(registers), registers); | |
205 } | |
206 | |
207 | |
201 void RegExpConstructResultDescriptor::InitializePlatformSpecific( | 208 void RegExpConstructResultDescriptor::InitializePlatformSpecific( |
202 CallInterfaceDescriptorData* data) { | 209 CallInterfaceDescriptorData* data) { |
203 Register registers[] = {ecx, ebx, eax}; | 210 Register registers[] = {ecx, ebx, eax}; |
204 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); | 211 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); |
205 } | 212 } |
206 | 213 |
207 | 214 |
208 void TransitionElementsKindDescriptor::InitializePlatformSpecific( | 215 void TransitionElementsKindDescriptor::InitializePlatformSpecific( |
209 CallInterfaceDescriptorData* data) { | 216 CallInterfaceDescriptorData* data) { |
210 Register registers[] = {eax, ebx}; | 217 Register registers[] = {eax, ebx}; |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
377 edi, // math rounding function | 384 edi, // math rounding function |
378 edx, // vector slot id | 385 edx, // vector slot id |
379 ebx // type vector | 386 ebx // type vector |
380 }; | 387 }; |
381 data->InitializePlatformSpecific(arraysize(registers), registers); | 388 data->InitializePlatformSpecific(arraysize(registers), registers); |
382 } | 389 } |
383 } // namespace internal | 390 } // namespace internal |
384 } // namespace v8 | 391 } // namespace v8 |
385 | 392 |
386 #endif // V8_TARGET_ARCH_IA32 | 393 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |