| 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 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 294 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); | 294 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); |
| 295 } | 295 } |
| 296 | 296 |
| 297 | 297 |
| 298 void BinaryOpWithAllocationSiteDescriptor::InitializePlatformSpecific( | 298 void BinaryOpWithAllocationSiteDescriptor::InitializePlatformSpecific( |
| 299 CallInterfaceDescriptorData* data) { | 299 CallInterfaceDescriptorData* data) { |
| 300 Register registers[] = {ecx, edx, eax}; | 300 Register registers[] = {ecx, edx, eax}; |
| 301 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); | 301 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); |
| 302 } | 302 } |
| 303 | 303 |
| 304 void BinaryOpWithVectorDescriptor::InitializePlatformSpecific( |
| 305 CallInterfaceDescriptorData* data) { |
| 306 // register state |
| 307 // edx -- lhs |
| 308 // eax -- rhs |
| 309 // edi -- slot id |
| 310 // ebx -- vector |
| 311 Register registers[] = {edx, eax, edi, ebx}; |
| 312 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 313 } |
| 314 |
| 304 void CountOpDescriptor::InitializePlatformSpecific( | 315 void CountOpDescriptor::InitializePlatformSpecific( |
| 305 CallInterfaceDescriptorData* data) { | 316 CallInterfaceDescriptorData* data) { |
| 306 Register registers[] = {eax}; | 317 Register registers[] = {eax}; |
| 307 data->InitializePlatformSpecific(arraysize(registers), registers); | 318 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 308 } | 319 } |
| 309 | 320 |
| 310 void StringAddDescriptor::InitializePlatformSpecific( | 321 void StringAddDescriptor::InitializePlatformSpecific( |
| 311 CallInterfaceDescriptorData* data) { | 322 CallInterfaceDescriptorData* data) { |
| 312 Register registers[] = {edx, eax}; | 323 Register registers[] = {edx, eax}; |
| 313 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); | 324 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 409 ebx, // the JSGeneratorObject to resume | 420 ebx, // the JSGeneratorObject to resume |
| 410 edx // the resume mode (tagged) | 421 edx // the resume mode (tagged) |
| 411 }; | 422 }; |
| 412 data->InitializePlatformSpecific(arraysize(registers), registers); | 423 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 413 } | 424 } |
| 414 | 425 |
| 415 } // namespace internal | 426 } // namespace internal |
| 416 } // namespace v8 | 427 } // namespace v8 |
| 417 | 428 |
| 418 #endif // V8_TARGET_ARCH_X87 | 429 #endif // V8_TARGET_ARCH_X87 |
| OLD | NEW |