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 | |
455 void InterpreterPushArgsAndConstructDescriptor::InitializePlatformSpecific( | 443 void InterpreterPushArgsAndConstructDescriptor::InitializePlatformSpecific( |
456 CallInterfaceDescriptorData* data) { | 444 CallInterfaceDescriptorData* data) { |
457 Register registers[] = { | 445 Register registers[] = { |
458 eax, // argument count (not including receiver) | 446 eax, // argument count (not including receiver) |
459 edx, // new target | 447 edx, // new target |
460 edi, // constructor | 448 edi, // constructor |
461 ebx, // address of first argument | 449 ebx, // address of first argument |
462 }; | 450 }; |
463 data->InitializePlatformSpecific(arraysize(registers), registers); | 451 data->InitializePlatformSpecific(arraysize(registers), registers); |
464 } | 452 } |
465 | 453 |
466 void InterpreterCEntryDescriptor::InitializePlatformSpecific( | 454 void InterpreterCEntryDescriptor::InitializePlatformSpecific( |
467 CallInterfaceDescriptorData* data) { | 455 CallInterfaceDescriptorData* data) { |
468 Register registers[] = { | 456 Register registers[] = { |
469 eax, // argument count (argc) | 457 eax, // argument count (argc) |
470 ecx, // address of first argument (argv) | 458 ecx, // address of first argument (argv) |
471 ebx // the runtime function to call | 459 ebx // the runtime function to call |
472 }; | 460 }; |
473 data->InitializePlatformSpecific(arraysize(registers), registers); | 461 data->InitializePlatformSpecific(arraysize(registers), registers); |
474 } | 462 } |
475 | 463 |
476 } // namespace internal | 464 } // namespace internal |
477 } // namespace v8 | 465 } // namespace v8 |
478 | 466 |
479 #endif // V8_TARGET_ARCH_IA32 | 467 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |