| 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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 | 167 |
| 168 | 168 |
| 169 void CallTrampolineDescriptor::InitializePlatformSpecific( | 169 void CallTrampolineDescriptor::InitializePlatformSpecific( |
| 170 CallInterfaceDescriptorData* data) { | 170 CallInterfaceDescriptorData* data) { |
| 171 // eax : number of arguments | 171 // eax : number of arguments |
| 172 // edi : the target to call | 172 // edi : the target to call |
| 173 Register registers[] = {edi, eax}; | 173 Register registers[] = {edi, eax}; |
| 174 data->InitializePlatformSpecific(arraysize(registers), registers); | 174 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 175 } | 175 } |
| 176 | 176 |
| 177 void CallForwardVarargsDescriptor::InitializePlatformSpecific( |
| 178 CallInterfaceDescriptorData* data) { |
| 179 // ecx : start index (to support rest parameters) |
| 180 // edi : the target to call |
| 181 Register registers[] = {edi, ecx}; |
| 182 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 183 } |
| 177 | 184 |
| 178 void ConstructStubDescriptor::InitializePlatformSpecific( | 185 void ConstructStubDescriptor::InitializePlatformSpecific( |
| 179 CallInterfaceDescriptorData* data) { | 186 CallInterfaceDescriptorData* data) { |
| 180 // eax : number of arguments | 187 // eax : number of arguments |
| 181 // edx : the new target | 188 // edx : the new target |
| 182 // edi : the target to call | 189 // edi : the target to call |
| 183 // ebx : allocation site or undefined | 190 // ebx : allocation site or undefined |
| 184 Register registers[] = {edi, edx, eax, ebx}; | 191 Register registers[] = {edi, edx, eax, ebx}; |
| 185 data->InitializePlatformSpecific(arraysize(registers), registers); | 192 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 186 } | 193 } |
| (...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 405 ebx, // the JSGeneratorObject to resume | 412 ebx, // the JSGeneratorObject to resume |
| 406 edx // the resume mode (tagged) | 413 edx // the resume mode (tagged) |
| 407 }; | 414 }; |
| 408 data->InitializePlatformSpecific(arraysize(registers), registers); | 415 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 409 } | 416 } |
| 410 | 417 |
| 411 } // namespace internal | 418 } // namespace internal |
| 412 } // namespace v8 | 419 } // namespace v8 |
| 413 | 420 |
| 414 #endif // V8_TARGET_ARCH_X87 | 421 #endif // V8_TARGET_ARCH_X87 |
| OLD | NEW |