Index: src/x87/interface-descriptors-x87.cc |
diff --git a/src/x87/interface-descriptors-x87.cc b/src/x87/interface-descriptors-x87.cc |
index 349364bf4e4a224738658147a0efae4e951bdbd2..5cf27ac7f3b8179f36395a198ded6f57cedba380 100644 |
--- a/src/x87/interface-descriptors-x87.cc |
+++ b/src/x87/interface-descriptors-x87.cc |
@@ -387,13 +387,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); |
} |