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

Unified Diff: runtime/vm/flow_graph_builder.cc

Issue 14872002: Improve load forwarding: (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 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 b4b833ad9bd9c7a97ad7bfd6a73fe396d64403c2..ef6b1614a0a44ef6fb83350882f91202a519228b 100644
--- a/runtime/vm/flow_graph_builder.cc
+++ b/runtime/vm/flow_graph_builder.cc
@@ -2634,6 +2634,7 @@ void EffectGraphVisitor::VisitLoadInstanceFieldNode(
for_instance.value(),
node->field().Offset(),
AbstractType::ZoneHandle(node->field().type()));
+ load->set_field(&Field::ZoneHandle(node->field().raw()));
srdjan 2013/05/02 21:00:54 That works, but I wonder why you do not reuse the
Vyacheslav Egorov (Google) 2013/05/02 21:20:25 Cleaned this up. set_field was requiring non-const
ReturnDefinition(load);
}

Powered by Google App Engine
This is Rietveld 408576698