Index: src/arm/stub-cache-arm.cc |
diff --git a/src/arm/stub-cache-arm.cc b/src/arm/stub-cache-arm.cc |
index cde08a2ede3401d8ccc267fc2c4edbcb4efbd7a0..f4a4153ccaca2195ff0a6dbc55332735630be981 100644 |
--- a/src/arm/stub-cache-arm.cc |
+++ b/src/arm/stub-cache-arm.cc |
@@ -1269,8 +1269,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); |
} |
} |