Index: src/x87/interface-descriptors-x87.cc |
diff --git a/src/x87/interface-descriptors-x87.cc b/src/x87/interface-descriptors-x87.cc |
index 9ab630f85fe093ea3f4b49e3f26c53f9c228a07f..45a12794408abaa2514fbfa848820e7d2a7f5554 100644 |
--- a/src/x87/interface-descriptors-x87.cc |
+++ b/src/x87/interface-descriptors-x87.cc |
@@ -306,11 +306,11 @@ void ArgumentAdaptorDescriptor::Initialize(CallInterfaceDescriptorData* data) { |
void ApiFunctionDescriptor::Initialize(CallInterfaceDescriptorData* data) { |
Register registers[] = { |
esi, // context |
- eax, // callee |
+ edi, // callee |
ebx, // call_data |
ecx, // holder |
edx, // api_function_address |
- edi, // actual number of arguments |
+ eax, // actual number of arguments |
}; |
Representation representations[] = { |
Representation::Tagged(), // context |
@@ -327,7 +327,7 @@ void ApiFunctionDescriptor::Initialize(CallInterfaceDescriptorData* data) { |
void ApiAccessorDescriptor::Initialize(CallInterfaceDescriptorData* data) { |
Register registers[] = { |
esi, // context |
- eax, // callee |
+ edi, // callee |
ebx, // call_data |
ecx, // holder |
edx, // api_function_address |