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