Commit d76c1193 authored by dcarney's avatar dcarney Committed by Commit bot

fix bad rebase in r27966

TBR=verwaest@chromium.org

BUG=

Review URL: https://codereview.chromium.org/1083923005

Cr-Commit-Position: refs/heads/master@{#27970}
parent f76d6a99
...@@ -6595,7 +6595,6 @@ void HOptimizedGraphBuilder::HandleGlobalVariableAssignment( ...@@ -6595,7 +6595,6 @@ void HOptimizedGraphBuilder::HandleGlobalVariableAssignment(
GlobalPropertyAccess type = LookupGlobalProperty(var, &it, STORE); GlobalPropertyAccess type = LookupGlobalProperty(var, &it, STORE);
if (type == kUseCell) { if (type == kUseCell) {
Handle<PropertyCell> cell = it.GetPropertyCell(); Handle<PropertyCell> cell = it.GetPropertyCell();
top_info()->dependencies()->AssumePropertyCell(cell);
auto cell_type = it.property_details().cell_type(); auto cell_type = it.property_details().cell_type();
if (cell_type == PropertyCellType::kConstant || if (cell_type == PropertyCellType::kConstant ||
cell_type == PropertyCellType::kUndefined) { cell_type == PropertyCellType::kUndefined) {
...@@ -6645,6 +6644,7 @@ void HOptimizedGraphBuilder::HandleGlobalVariableAssignment( ...@@ -6645,6 +6644,7 @@ void HOptimizedGraphBuilder::HandleGlobalVariableAssignment(
} }
} }
} }
top_info()->dependencies()->AssumePropertyCell(cell);
HInstruction* instr = Add<HStoreNamedField>(cell_constant, access, value); HInstruction* instr = Add<HStoreNamedField>(cell_constant, access, value);
instr->ClearChangesFlag(kInobjectFields); instr->ClearChangesFlag(kInobjectFields);
instr->SetChangesFlag(kGlobalVars); instr->SetChangesFlag(kGlobalVars);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment