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 399b96ff17a1f64b8bba962646d18b94d1aab958..c4d6ecfe7c96078cf76383ec9279d2c4af6aaa0d 100644 |
--- a/src/ic/x64/handler-compiler-x64.cc |
+++ b/src/ic/x64/handler-compiler-x64.cc |
@@ -660,7 +660,7 @@ void NamedLoadHandlerCompiler::GenerateLoadCallback( |
__ PushReturnAddressFrom(scratch4()); |
// Abi for CallApiGetter |
- Register api_function_address = r8; |
+ Register api_function_address = ApiGetterDescriptor::function_address(); |
Address getter_address = v8::ToCData<Address>(callback->getter()); |
__ Move(api_function_address, getter_address, RelocInfo::EXTERNAL_REFERENCE); |