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 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 } | 187 } |
188 | 188 |
189 | 189 |
190 void CallFunctionWithFeedbackAndVectorDescriptor::InitializePlatformSpecific( | 190 void CallFunctionWithFeedbackAndVectorDescriptor::InitializePlatformSpecific( |
191 CallInterfaceDescriptorData* data) { | 191 CallInterfaceDescriptorData* data) { |
192 Register registers[] = {edi, edx, ebx}; | 192 Register registers[] = {edi, edx, ebx}; |
193 data->InitializePlatformSpecific(arraysize(registers), registers); | 193 data->InitializePlatformSpecific(arraysize(registers), registers); |
194 } | 194 } |
195 | 195 |
196 | 196 |
197 void CallConstructDescriptor::InitializePlatformSpecific( | 197 void ConstructDescriptor::InitializePlatformSpecific( |
198 CallInterfaceDescriptorData* data) { | 198 CallInterfaceDescriptorData* data) { |
199 // eax : number of arguments | 199 // eax : number of arguments |
200 // ebx : feedback vector | 200 // ebx : feedback vector |
201 // ecx : new target (for IsSuperConstructorCall) | |
202 // edx : slot in feedback vector (Smi, for RecordCallTarget) | 201 // edx : slot in feedback vector (Smi, for RecordCallTarget) |
203 // edi : constructor function | 202 // edi : constructor function |
204 // TODO(turbofan): So far we don't gather type feedback and hence skip the | 203 // TODO(turbofan): So far we don't gather type feedback and hence skip the |
205 // slot parameter, but ArrayConstructStub needs the vector to be undefined. | 204 // slot parameter, but ArrayConstructStub needs the vector to be undefined. |
206 Register registers[] = {eax, edi, ecx, ebx}; | 205 Register registers[] = {eax, edi, edx, ebx}; |
207 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); | 206 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); |
208 } | 207 } |
209 | 208 |
210 | 209 |
211 void CallTrampolineDescriptor::InitializePlatformSpecific( | 210 void CallTrampolineDescriptor::InitializePlatformSpecific( |
212 CallInterfaceDescriptorData* data) { | 211 CallInterfaceDescriptorData* data) { |
213 // eax : number of arguments | 212 // eax : number of arguments |
214 // edi : the target to call | 213 // edi : the target to call |
215 Register registers[] = {edi, eax}; | 214 Register registers[] = {edi, eax}; |
216 data->InitializePlatformSpecific(arraysize(registers), registers); | 215 data->InitializePlatformSpecific(arraysize(registers), registers); |
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
449 ecx, // address of first argument (argv) | 448 ecx, // address of first argument (argv) |
450 ebx // the runtime function to call | 449 ebx // the runtime function to call |
451 }; | 450 }; |
452 data->InitializePlatformSpecific(arraysize(registers), registers); | 451 data->InitializePlatformSpecific(arraysize(registers), registers); |
453 } | 452 } |
454 | 453 |
455 } // namespace internal | 454 } // namespace internal |
456 } // namespace v8 | 455 } // namespace v8 |
457 | 456 |
458 #endif // V8_TARGET_ARCH_X87 | 457 #endif // V8_TARGET_ARCH_X87 |
OLD | NEW |