| 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 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 293 Register registers[] = {eax}; | 293 Register registers[] = {eax}; |
| 294 data->InitializePlatformSpecific(arraysize(registers), registers); | 294 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 295 } | 295 } |
| 296 | 296 |
| 297 void StringAddDescriptor::InitializePlatformSpecific( | 297 void StringAddDescriptor::InitializePlatformSpecific( |
| 298 CallInterfaceDescriptorData* data) { | 298 CallInterfaceDescriptorData* data) { |
| 299 Register registers[] = {edx, eax}; | 299 Register registers[] = {edx, eax}; |
| 300 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); | 300 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); |
| 301 } | 301 } |
| 302 | 302 |
| 303 | |
| 304 void KeyedDescriptor::InitializePlatformSpecific( | |
| 305 CallInterfaceDescriptorData* data) { | |
| 306 Register registers[] = { | |
| 307 ecx, // key | |
| 308 }; | |
| 309 data->InitializePlatformSpecific(arraysize(registers), registers); | |
| 310 } | |
| 311 | |
| 312 | |
| 313 void NamedDescriptor::InitializePlatformSpecific( | |
| 314 CallInterfaceDescriptorData* data) { | |
| 315 Register registers[] = { | |
| 316 ecx, // name | |
| 317 }; | |
| 318 data->InitializePlatformSpecific(arraysize(registers), registers); | |
| 319 } | |
| 320 | |
| 321 | |
| 322 void CallHandlerDescriptor::InitializePlatformSpecific( | |
| 323 CallInterfaceDescriptorData* data) { | |
| 324 Register registers[] = { | |
| 325 edx, // name | |
| 326 }; | |
| 327 data->InitializePlatformSpecific(arraysize(registers), registers); | |
| 328 } | |
| 329 | |
| 330 | |
| 331 void ArgumentAdaptorDescriptor::InitializePlatformSpecific( | 303 void ArgumentAdaptorDescriptor::InitializePlatformSpecific( |
| 332 CallInterfaceDescriptorData* data) { | 304 CallInterfaceDescriptorData* data) { |
| 333 Register registers[] = { | 305 Register registers[] = { |
| 334 edi, // JSFunction | 306 edi, // JSFunction |
| 335 edx, // the new target | 307 edx, // the new target |
| 336 eax, // actual number of arguments | 308 eax, // actual number of arguments |
| 337 ebx, // expected number of arguments | 309 ebx, // expected number of arguments |
| 338 }; | 310 }; |
| 339 data->InitializePlatformSpecific(arraysize(registers), registers); | 311 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 340 } | 312 } |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 408 ebx, // the JSGeneratorObject to resume | 380 ebx, // the JSGeneratorObject to resume |
| 409 edx // the resume mode (tagged) | 381 edx // the resume mode (tagged) |
| 410 }; | 382 }; |
| 411 data->InitializePlatformSpecific(arraysize(registers), registers); | 383 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 412 } | 384 } |
| 413 | 385 |
| 414 } // namespace internal | 386 } // namespace internal |
| 415 } // namespace v8 | 387 } // namespace v8 |
| 416 | 388 |
| 417 #endif // V8_TARGET_ARCH_X87 | 389 #endif // V8_TARGET_ARCH_X87 |
| OLD | NEW |