Index: src/x64/stub-cache-x64.cc |
diff --git a/src/x64/stub-cache-x64.cc b/src/x64/stub-cache-x64.cc |
index 36fcb84de2e4929bb5ffa2f0e2fb8b4e95df5a5b..c1cab8f2a2cf287fea538af4337fa5709ac2158c 100644 |
--- a/src/x64/stub-cache-x64.cc |
+++ b/src/x64/stub-cache-x64.cc |
@@ -1303,9 +1303,9 @@ void BaseLoadStubCompiler::GenerateLoadCallback( |
} else { |
__ Push(Handle<Object>(callback->data(), isolate())); |
} |
- __ PushAddress(ExternalReference::isolate_address(isolate())); |
__ LoadRoot(kScratchRegister, Heap::kUndefinedValueRootIndex); |
__ push(kScratchRegister); // return value |
+ __ PushAddress(ExternalReference::isolate_address(isolate())); |
__ push(name()); // name |
// Save a pointer to where we pushed the arguments pointer. This will be |
// passed as the const ExecutableAccessorInfo& to the C++ callback. |
@@ -1350,7 +1350,7 @@ void BaseLoadStubCompiler::GenerateLoadCallback( |
__ CallApiFunctionAndReturn(getter_address, |
kStackSpace, |
returns_handle, |
- 3); |
+ 4); |
} |