Index: src/x64/interface-descriptors-x64.cc |
diff --git a/src/x64/interface-descriptors-x64.cc b/src/x64/interface-descriptors-x64.cc |
index 86c92469c77834f038c360a52c9f9a0a0e90b946..014fe3dfbb35e2de5798c551e9195aee4880b707 100644 |
--- a/src/x64/interface-descriptors-x64.cc |
+++ b/src/x64/interface-descriptors-x64.cc |
@@ -297,11 +297,11 @@ void ArgumentAdaptorDescriptor::Initialize(CallInterfaceDescriptorData* data) { |
void ApiFunctionDescriptor::Initialize(CallInterfaceDescriptorData* data) { |
Register registers[] = { |
rsi, // context |
- rax, // callee |
+ rdi, // callee |
rbx, // call_data |
rcx, // holder |
rdx, // api_function_address |
- rdi, // actual number of arguments |
+ rax, // actual number of arguments |
}; |
Representation representations[] = { |
Representation::Tagged(), // context |
@@ -318,7 +318,7 @@ void ApiFunctionDescriptor::Initialize(CallInterfaceDescriptorData* data) { |
void ApiAccessorDescriptor::Initialize(CallInterfaceDescriptorData* data) { |
Register registers[] = { |
rsi, // context |
- rax, // callee |
+ rdi, // callee |
rbx, // call_data |
rcx, // holder |
rdx, // api_function_address |