Index: src/mips/stub-cache-mips.cc |
diff --git a/src/mips/stub-cache-mips.cc b/src/mips/stub-cache-mips.cc |
index 8325afe2f9a471906d22fbbd7325652a565b8528..9a8f1a8c934acb32407ec950715d6da20c790438 100644 |
--- a/src/mips/stub-cache-mips.cc |
+++ b/src/mips/stub-cache-mips.cc |
@@ -1283,8 +1283,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); |
} |
} |