Index: src/ic/x87/handler-compiler-x87.cc |
diff --git a/src/ic/x87/handler-compiler-x87.cc b/src/ic/x87/handler-compiler-x87.cc |
index ce5657b35d27dc25d70d1927b71d25ec99c0451d..c40da817ed33e7338aee8b5b7480cc1ba0ca3910 100644 |
--- a/src/ic/x87/handler-compiler-x87.cc |
+++ b/src/ic/x87/handler-compiler-x87.cc |
@@ -667,7 +667,7 @@ void NamedLoadHandlerCompiler::GenerateLoadCallback( |
__ push(scratch3()); // Restore return address. |
// Abi for CallApiGetter |
- Register getter_address = edx; |
+ Register getter_address = ApiGetterDescriptor::function_address(); |
Address function_address = v8::ToCData<Address>(callback->getter()); |
__ mov(getter_address, Immediate(function_address)); |