Index: src/x64/stub-cache-x64.cc |
diff --git a/src/x64/stub-cache-x64.cc b/src/x64/stub-cache-x64.cc |
index 2cfe17b5bedd60de819d6b2b3305b1b57b2f1ced..9e117d304862258ac5175344e220772572ac1394 100644 |
--- a/src/x64/stub-cache-x64.cc |
+++ b/src/x64/stub-cache-x64.cc |
@@ -1110,8 +1110,9 @@ void StubCompiler::GenerateLoadInterceptor(Handle<JSObject> object, |
compile_followup_inline = true; |
} else if (lookup->type() == CALLBACKS && |
lookup->GetCallbackObject()->IsAccessorInfo()) { |
- compile_followup_inline = |
- AccessorInfo::cast(lookup->GetCallbackObject())->getter() != NULL; |
+ AccessorInfo* callback = AccessorInfo::cast(lookup->GetCallbackObject()); |
+ compile_followup_inline = callback->getter() != NULL && |
+ callback->IsCompatibleReceiver(*object); |
} |
} |