Index: src/hydrogen.cc |
diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
index 791e41352ae04edc34404ed31f3ee4ed7bb15d30..7b91d9846188f52732ef538ef0c57175c421d7f8 100644 |
--- a/src/hydrogen.cc |
+++ b/src/hydrogen.cc |
@@ -6595,6 +6595,7 @@ |
GlobalPropertyAccess type = LookupGlobalProperty(var, &it, STORE); |
if (type == kUseCell) { |
Handle<PropertyCell> cell = it.GetPropertyCell(); |
+ top_info()->dependencies()->AssumePropertyCell(cell); |
auto cell_type = it.property_details().cell_type(); |
if (cell_type == PropertyCellType::kConstant || |
cell_type == PropertyCellType::kUndefined) { |
@@ -6644,7 +6645,6 @@ |
} |
} |
} |
- top_info()->dependencies()->AssumePropertyCell(cell); |
HInstruction* instr = Add<HStoreNamedField>(cell_constant, access, value); |
instr->ClearChangesFlag(kInobjectFields); |
instr->SetChangesFlag(kGlobalVars); |