Index: src/crankshaft/hydrogen.cc |
diff --git a/src/crankshaft/hydrogen.cc b/src/crankshaft/hydrogen.cc |
index 67b7540475bec3f10295a0b978a20629b6ca07b7..33f58d1e4492323489418c668af383b167631925 100644 |
--- a/src/crankshaft/hydrogen.cc |
+++ b/src/crankshaft/hydrogen.cc |
@@ -5774,6 +5774,7 @@ HOptimizedGraphBuilder::LookupGlobalProperty(Variable* var, LookupIterator* it, |
return kUseGeneric; |
case LookupIterator::DATA: |
if (access_type == STORE && it->IsReadOnly()) return kUseGeneric; |
+ if (!it->GetHolder<JSObject>()->IsJSGlobalObject()) return kUseGeneric; |
return kUseCell; |
case LookupIterator::JSPROXY: |
case LookupIterator::TRANSITION: |