Index: src/ia32/interface-descriptors-ia32.cc |
diff --git a/src/ia32/interface-descriptors-ia32.cc b/src/ia32/interface-descriptors-ia32.cc |
index 07c568f3ae67d7f4cd9375d3104ab8e17d21a0e2..795b868257f7d8b748c6d7f250c5bfb12096a66b 100644 |
--- a/src/ia32/interface-descriptors-ia32.cc |
+++ b/src/ia32/interface-descriptors-ia32.cc |
@@ -296,11 +296,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 |
@@ -317,7 +317,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 |