| 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 422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 433 void InterpreterPushArgsAndCallDescriptor::InitializePlatformSpecific( | 433 void InterpreterPushArgsAndCallDescriptor::InitializePlatformSpecific( |
| 434 CallInterfaceDescriptorData* data) { | 434 CallInterfaceDescriptorData* data) { |
| 435 Register registers[] = { | 435 Register registers[] = { |
| 436 eax, // argument count (not including receiver) | 436 eax, // argument count (not including receiver) |
| 437 ebx, // address of first argument | 437 ebx, // address of first argument |
| 438 edi // the target callable to be call | 438 edi // the target callable to be call |
| 439 }; | 439 }; |
| 440 data->InitializePlatformSpecific(arraysize(registers), registers); | 440 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 441 } | 441 } |
| 442 | 442 |
| 443 void InterpreterPushArgsAndCallICDescriptor::InitializePlatformSpecific( |
| 444 CallInterfaceDescriptorData* data) { |
| 445 Register registers[] = { |
| 446 eax, // argument count (not including receiver) |
| 447 ebx, // address of first argument |
| 448 edi, // the target callable to be call |
| 449 edx, // feedback vector slot id |
| 450 ecx // type feedback vector |
| 451 }; |
| 452 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 453 } |
| 454 |
| 443 void InterpreterPushArgsAndConstructDescriptor::InitializePlatformSpecific( | 455 void InterpreterPushArgsAndConstructDescriptor::InitializePlatformSpecific( |
| 444 CallInterfaceDescriptorData* data) { | 456 CallInterfaceDescriptorData* data) { |
| 445 Register registers[] = { | 457 Register registers[] = { |
| 446 eax, // argument count (not including receiver) | 458 eax, // argument count (not including receiver) |
| 447 edx, // new target | 459 edx, // new target |
| 448 edi, // constructor | 460 edi, // constructor |
| 449 ebx, // address of first argument | 461 ebx, // address of first argument |
| 450 }; | 462 }; |
| 451 data->InitializePlatformSpecific(arraysize(registers), registers); | 463 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 452 } | 464 } |
| 453 | 465 |
| 454 void InterpreterCEntryDescriptor::InitializePlatformSpecific( | 466 void InterpreterCEntryDescriptor::InitializePlatformSpecific( |
| 455 CallInterfaceDescriptorData* data) { | 467 CallInterfaceDescriptorData* data) { |
| 456 Register registers[] = { | 468 Register registers[] = { |
| 457 eax, // argument count (argc) | 469 eax, // argument count (argc) |
| 458 ecx, // address of first argument (argv) | 470 ecx, // address of first argument (argv) |
| 459 ebx // the runtime function to call | 471 ebx // the runtime function to call |
| 460 }; | 472 }; |
| 461 data->InitializePlatformSpecific(arraysize(registers), registers); | 473 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 462 } | 474 } |
| 463 | 475 |
| 464 } // namespace internal | 476 } // namespace internal |
| 465 } // namespace v8 | 477 } // namespace v8 |
| 466 | 478 |
| 467 #endif // V8_TARGET_ARCH_IA32 | 479 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |