Index: src/ia32/stub-cache-ia32.cc |
diff --git a/src/ia32/stub-cache-ia32.cc b/src/ia32/stub-cache-ia32.cc |
index 4964c02f6a4f81c60bd9036f71a38adbed957125..11e96fc8ae269c38adf66f4409abae2fee16e53f 100644 |
--- a/src/ia32/stub-cache-ia32.cc |
+++ b/src/ia32/stub-cache-ia32.cc |
@@ -1124,8 +1124,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); |
} |
} |