| Index: src/compiler/js-global-object-specialization.cc
|
| diff --git a/src/compiler/js-global-object-specialization.cc b/src/compiler/js-global-object-specialization.cc
|
| index 2fe5cabc22ed0be9bb8d68b32764e1067884a7a6..5f2bca9e6ad574bca4443430a5be3ceb0eedb427 100644
|
| --- a/src/compiler/js-global-object-specialization.cc
|
| +++ b/src/compiler/js-global-object-specialization.cc
|
| @@ -62,6 +62,7 @@ FieldAccess ForPropertyCellValue(MachineRepresentation representation,
|
| kTaggedBase, PropertyCell::kValueOffset, name, map, type, r, kind};
|
| return access;
|
| }
|
| +
|
| } // namespace
|
|
|
| Reduction JSGlobalObjectSpecialization::ReduceJSLoadGlobal(Node* node) {
|
| @@ -85,6 +86,7 @@ Reduction JSGlobalObjectSpecialization::ReduceJSLoadGlobal(Node* node) {
|
| // Lookup on the global object instead. We only deal with own data
|
| // properties of the global object here (represented as PropertyCell).
|
| LookupIterator it(global_object(), name, LookupIterator::OWN);
|
| + it.TryLookupCachedProperty();
|
| if (it.state() != LookupIterator::DATA) return NoChange();
|
| if (!it.GetHolder<JSObject>()->IsJSGlobalObject()) return NoChange();
|
| Handle<PropertyCell> property_cell = it.GetPropertyCell();
|
|
|