Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(395)

Unified Diff: runtime/vm/flow_graph_builder.cc

Issue 2112973002: Remove invalid assertion in the optimizer (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Mark initializing field stores in the parser Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: runtime/vm/flow_graph_builder.cc
diff --git a/runtime/vm/flow_graph_builder.cc b/runtime/vm/flow_graph_builder.cc
index d1e0b857c40340aed606382fbb1d3d87c7f6896a..5bec82ed2287b764024b75f2b4037f5c457aed5a 100644
--- a/runtime/vm/flow_graph_builder.cc
+++ b/runtime/vm/flow_graph_builder.cc
@@ -3660,7 +3660,7 @@ void EffectGraphVisitor::VisitStoreInstanceFieldNode(
kEmitStoreBarrier,
token_pos);
// Maybe initializing unboxed store.
- store->set_is_potential_unboxed_initialization(true);
+ store->set_is_potential_unboxed_initialization(node->is_initializer());
ReturnDefinition(store);
}
« runtime/vm/ast.h ('K') | « runtime/vm/ast.h ('k') | runtime/vm/jit_optimizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698