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 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
268 void ArraySingleArgumentConstructorDescriptor::InitializePlatformSpecific( | 268 void ArraySingleArgumentConstructorDescriptor::InitializePlatformSpecific( |
269 CallInterfaceDescriptorData* data) { | 269 CallInterfaceDescriptorData* data) { |
270 // register state | 270 // register state |
271 // eax -- number of arguments | 271 // eax -- number of arguments |
272 // edi -- function | 272 // edi -- function |
273 // ebx -- allocation site with elements kind | 273 // ebx -- allocation site with elements kind |
274 Register registers[] = {edi, ebx, eax}; | 274 Register registers[] = {edi, ebx, eax}; |
275 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); | 275 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); |
276 } | 276 } |
277 | 277 |
278 void ArrayConstructorDescriptor::InitializePlatformSpecific( | 278 void ArrayNArgumentsConstructorDescriptor::InitializePlatformSpecific( |
279 CallInterfaceDescriptorData* data) { | 279 CallInterfaceDescriptorData* data) { |
280 // stack param count needs (constructor pointer, and single argument) | 280 // register state |
| 281 // eax -- number of arguments |
| 282 // edi -- function |
| 283 // ebx -- allocation site with elements kind |
281 Register registers[] = {edi, ebx, eax}; | 284 Register registers[] = {edi, ebx, eax}; |
282 data->InitializePlatformSpecific(arraysize(registers), registers); | 285 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); |
283 } | |
284 | |
285 | |
286 void InternalArrayConstructorDescriptor::InitializePlatformSpecific( | |
287 CallInterfaceDescriptorData* data) { | |
288 // stack param count needs (constructor pointer, and single argument) | |
289 Register registers[] = {edi, eax}; | |
290 data->InitializePlatformSpecific(arraysize(registers), registers); | |
291 } | 286 } |
292 | 287 |
293 void VarArgFunctionDescriptor::InitializePlatformSpecific( | 288 void VarArgFunctionDescriptor::InitializePlatformSpecific( |
294 CallInterfaceDescriptorData* data) { | 289 CallInterfaceDescriptorData* data) { |
295 // stack param count needs (arg count) | 290 // stack param count needs (arg count) |
296 Register registers[] = {eax}; | 291 Register registers[] = {eax}; |
297 data->InitializePlatformSpecific(arraysize(registers), registers); | 292 data->InitializePlatformSpecific(arraysize(registers), registers); |
298 } | 293 } |
299 | 294 |
300 void CompareDescriptor::InitializePlatformSpecific( | 295 void CompareDescriptor::InitializePlatformSpecific( |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
425 ebx, // the JSGeneratorObject to resume | 420 ebx, // the JSGeneratorObject to resume |
426 edx // the resume mode (tagged) | 421 edx // the resume mode (tagged) |
427 }; | 422 }; |
428 data->InitializePlatformSpecific(arraysize(registers), registers); | 423 data->InitializePlatformSpecific(arraysize(registers), registers); |
429 } | 424 } |
430 | 425 |
431 } // namespace internal | 426 } // namespace internal |
432 } // namespace v8 | 427 } // namespace v8 |
433 | 428 |
434 #endif // V8_TARGET_ARCH_IA32 | 429 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |