Index: src/ic/x64/handler-compiler-x64.cc |
diff --git a/src/ic/x64/handler-compiler-x64.cc b/src/ic/x64/handler-compiler-x64.cc |
index 13b5fa804c2280ba01404b6dbf63f3bf43fc5eb9..5750da16c50a77eabde28689cdb3ddf65853a71b 100644 |
--- a/src/ic/x64/handler-compiler-x64.cc |
+++ b/src/ic/x64/handler-compiler-x64.cc |
@@ -147,11 +147,11 @@ void PropertyHandlerCompiler::GenerateApiAccessorCall( |
// Stack now matches JSFunction abi. |
// Abi for CallApiFunctionStub. |
- Register callee = rax; |
+ Register callee = rdi; |
Register call_data = rbx; |
Register holder = rcx; |
Register api_function_address = rdx; |
- Register scratch = rdi; // scratch_in is no longer valid. |
+ Register scratch = rax; // scratch_in is no longer valid. |
// Put holder in place. |
CallOptimization::HolderLookup holder_lookup; |