Index: src/ic.cc |
diff --git a/src/ic.cc b/src/ic.cc |
index bbfb2dd781283d5d03b43d3710401fa0e8779d05..35b69775b251ded004fdd75ea305e98a24923f66 100644 |
--- a/src/ic.cc |
+++ b/src/ic.cc |
@@ -1001,14 +1001,13 @@ Handle<Code> LoadIC::CompileHandler(LookupIterator* lookup, |
type)) { |
return slow_stub(); |
} |
- if (holder->IsGlobalObject()) return slow_stub(); |
+ if (!holder->HasFastProperties()) return slow_stub(); |
return compiler.CompileLoadCallback(name, info); |
} |
if (accessors->IsAccessorPair()) { |
Handle<Object> getter(Handle<AccessorPair>::cast(accessors)->getter(), |
isolate()); |
if (!getter->IsJSFunction()) return slow_stub(); |
- if (holder->IsGlobalObject()) return slow_stub(); |
if (!holder->HasFastProperties()) return slow_stub(); |
Handle<JSFunction> function = Handle<JSFunction>::cast(getter); |
if (!object->IsJSObject() && !function->IsBuiltin() && |