| 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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 | 149 |
| 150 | 150 |
| 151 void CallTrampolineDescriptor::InitializePlatformSpecific( | 151 void CallTrampolineDescriptor::InitializePlatformSpecific( |
| 152 CallInterfaceDescriptorData* data) { | 152 CallInterfaceDescriptorData* data) { |
| 153 // eax : number of arguments | 153 // eax : number of arguments |
| 154 // edi : the target to call | 154 // edi : the target to call |
| 155 Register registers[] = {edi, eax}; | 155 Register registers[] = {edi, eax}; |
| 156 data->InitializePlatformSpecific(arraysize(registers), registers); | 156 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 157 } | 157 } |
| 158 | 158 |
| 159 void CallVarargsDescriptor::InitializePlatformSpecific( |
| 160 CallInterfaceDescriptorData* data) { |
| 161 // eax : number of arguments (on the stack, not including receiver) |
| 162 // edi : the target to call |
| 163 // ebx : arguments list (FixedArray) |
| 164 // ecx : arguments list length (untagged) |
| 165 Register registers[] = {edi, eax, ebx, ecx}; |
| 166 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 167 } |
| 168 |
| 159 void CallForwardVarargsDescriptor::InitializePlatformSpecific( | 169 void CallForwardVarargsDescriptor::InitializePlatformSpecific( |
| 160 CallInterfaceDescriptorData* data) { | 170 CallInterfaceDescriptorData* data) { |
| 161 // eax : number of arguments | 171 // eax : number of arguments |
| 162 // ecx : start index (to support rest parameters) | 172 // ecx : start index (to support rest parameters) |
| 163 // edi : the target to call | 173 // edi : the target to call |
| 164 Register registers[] = {edi, eax, ecx}; | 174 Register registers[] = {edi, eax, ecx}; |
| 165 data->InitializePlatformSpecific(arraysize(registers), registers); | 175 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 166 } | 176 } |
| 167 | 177 |
| 178 void CallWithArrayLikeDescriptor::InitializePlatformSpecific( |
| 179 CallInterfaceDescriptorData* data) { |
| 180 // edi : the target to call |
| 181 // ebx : the arguments list |
| 182 Register registers[] = {edi, ebx}; |
| 183 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 184 } |
| 185 |
| 186 void ConstructVarargsDescriptor::InitializePlatformSpecific( |
| 187 CallInterfaceDescriptorData* data) { |
| 188 // eax : number of arguments (on the stack, not including receiver) |
| 189 // edi : the target to call |
| 190 // edx : the new target |
| 191 // ebx : arguments list (FixedArray) |
| 192 // ecx : arguments list length (untagged) |
| 193 Register registers[] = {edi, edx, eax, ebx, ecx}; |
| 194 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 195 } |
| 196 |
| 168 void ConstructForwardVarargsDescriptor::InitializePlatformSpecific( | 197 void ConstructForwardVarargsDescriptor::InitializePlatformSpecific( |
| 169 CallInterfaceDescriptorData* data) { | 198 CallInterfaceDescriptorData* data) { |
| 170 // eax : number of arguments | 199 // eax : number of arguments |
| 171 // edx : the new target | 200 // edx : the new target |
| 172 // ecx : start index (to support rest parameters) | 201 // ecx : start index (to support rest parameters) |
| 173 // edi : the target to call | 202 // edi : the target to call |
| 174 Register registers[] = {edi, edx, eax, ecx}; | 203 Register registers[] = {edi, edx, eax, ecx}; |
| 175 data->InitializePlatformSpecific(arraysize(registers), registers); | 204 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 176 } | 205 } |
| 177 | 206 |
| 207 void ConstructWithArrayLikeDescriptor::InitializePlatformSpecific( |
| 208 CallInterfaceDescriptorData* data) { |
| 209 // edi : the target to call |
| 210 // edx : the new target |
| 211 // ebx : the arguments list |
| 212 Register registers[] = {edi, edx, ebx}; |
| 213 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 214 } |
| 215 |
| 178 void ConstructStubDescriptor::InitializePlatformSpecific( | 216 void ConstructStubDescriptor::InitializePlatformSpecific( |
| 179 CallInterfaceDescriptorData* data) { | 217 CallInterfaceDescriptorData* data) { |
| 180 // eax : number of arguments | 218 // eax : number of arguments |
| 181 // edx : the new target | 219 // edx : the new target |
| 182 // edi : the target to call | 220 // edi : the target to call |
| 183 // ebx : allocation site or undefined | 221 // ebx : allocation site or undefined |
| 184 Register registers[] = {edi, edx, eax, ebx}; | 222 Register registers[] = {edi, edx, eax, ebx}; |
| 185 data->InitializePlatformSpecific(arraysize(registers), registers); | 223 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 186 } | 224 } |
| 187 | 225 |
| (...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 385 Register registers[] = { | 423 Register registers[] = { |
| 386 ebx, // loaded new FP | 424 ebx, // loaded new FP |
| 387 }; | 425 }; |
| 388 data->InitializePlatformSpecific(arraysize(registers), registers); | 426 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 389 } | 427 } |
| 390 | 428 |
| 391 } // namespace internal | 429 } // namespace internal |
| 392 } // namespace v8 | 430 } // namespace v8 |
| 393 | 431 |
| 394 #endif // V8_TARGET_ARCH_IA32 | 432 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |