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_X87 | 5 #if V8_TARGET_ARCH_X87 |
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) { |
| 203 // eax : number of arguments |
| 204 // edi : the target to call |
| 205 Register registers[] = {edi, eax}; |
| 206 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 207 } |
| 208 |
| 209 |
201 void RegExpConstructResultDescriptor::InitializePlatformSpecific( | 210 void RegExpConstructResultDescriptor::InitializePlatformSpecific( |
202 CallInterfaceDescriptorData* data) { | 211 CallInterfaceDescriptorData* data) { |
203 Register registers[] = {ecx, ebx, eax}; | 212 Register registers[] = {ecx, ebx, eax}; |
204 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); | 213 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); |
205 } | 214 } |
206 | 215 |
207 | 216 |
208 void TransitionElementsKindDescriptor::InitializePlatformSpecific( | 217 void TransitionElementsKindDescriptor::InitializePlatformSpecific( |
209 CallInterfaceDescriptorData* data) { | 218 CallInterfaceDescriptorData* data) { |
210 Register registers[] = {eax, ebx}; | 219 Register registers[] = {eax, ebx}; |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
377 edi, // math rounding function | 386 edi, // math rounding function |
378 edx, // vector slot id | 387 edx, // vector slot id |
379 ebx // type vector | 388 ebx // type vector |
380 }; | 389 }; |
381 data->InitializePlatformSpecific(arraysize(registers), registers); | 390 data->InitializePlatformSpecific(arraysize(registers), registers); |
382 } | 391 } |
383 } // namespace internal | 392 } // namespace internal |
384 } // namespace v8 | 393 } // namespace v8 |
385 | 394 |
386 #endif // V8_TARGET_ARCH_X87 | 395 #endif // V8_TARGET_ARCH_X87 |
OLD | NEW |