Chromium Code Reviews| Index: src/ia32/interface-descriptors-ia32.cc |
| diff --git a/src/ia32/interface-descriptors-ia32.cc b/src/ia32/interface-descriptors-ia32.cc |
| index 22d85d8cc3dc86bbf75e5b32edcc4e027237a530..50c6a13200cc1dbcf8945ae4a64fbc7c03926ae2 100644 |
| --- a/src/ia32/interface-descriptors-ia32.cc |
| +++ b/src/ia32/interface-descriptors-ia32.cc |
| @@ -400,16 +400,27 @@ void MathRoundVariantCallFromOptimizedCodeDescriptor:: |
| } |
| -void PushArgsAndCallDescriptor::InitializePlatformSpecific( |
| +void InterpreterPushArgsAndCallDescriptor::InitializePlatformSpecific( |
| CallInterfaceDescriptorData* data) { |
| Register registers[] = { |
| - eax, // argument count (including receiver) |
| + eax, // argument count (not including receiver) |
|
Michael Starzinger
2015/09/29 08:28:34
nit: This comment seems to be out of sync with oth
rmcilroy
2015/10/01 17:02:45
The original comment was wrong, I meant to update
|
| ebx, // address of first argument |
| edi // the target callable to be call |
| }; |
| data->InitializePlatformSpecific(arraysize(registers), registers); |
| } |
| + |
| +void InterpreterCEntryDescriptor::InitializePlatformSpecific( |
| + CallInterfaceDescriptorData* data) { |
| + Register registers[] = { |
| + eax, // argument count (argc) |
| + ecx, // address of first argument (argv) |
| + ebx // the runtime function to call |
| + }; |
| + data->InitializePlatformSpecific(arraysize(registers), registers); |
| +} |
| + |
| } // namespace internal |
| } // namespace v8 |