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