Index: src/ia32/interface-descriptors-ia32.cc |
diff --git a/src/ia32/interface-descriptors-ia32.cc b/src/ia32/interface-descriptors-ia32.cc |
index 96a029cbc8e996a8c5b50aca1a979ea04569f532..f138bff38fc252727e1ed7292c41c46927e7c947 100644 |
--- a/src/ia32/interface-descriptors-ia32.cc |
+++ b/src/ia32/interface-descriptors-ia32.cc |
@@ -390,13 +390,27 @@ |
data->InitializePlatformSpecific(arraysize(registers), registers); |
} |
-void ApiCallbackDescriptorBase::InitializePlatformSpecific( |
+ |
+void ApiFunctionDescriptor::InitializePlatformSpecific( |
CallInterfaceDescriptorData* data) { |
Register registers[] = { |
edi, // callee |
ebx, // call_data |
ecx, // holder |
edx, // api_function_address |
+ eax, // actual number of arguments |
+ }; |
+ data->InitializePlatformSpecific(arraysize(registers), registers); |
+} |
+ |
+ |
+void ApiAccessorDescriptor::InitializePlatformSpecific( |
+ CallInterfaceDescriptorData* data) { |
+ Register registers[] = { |
+ edi, // callee |
+ ebx, // call_data |
+ ecx, // holder |
+ edx, // api_function_address |
}; |
data->InitializePlatformSpecific(arraysize(registers), registers); |
} |