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