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

Unified Diff: runtime/vm/flow_graph_optimizer.cc

Issue 10933046: Cleanup: Replace LoadInstanceFieldInstr with LoadVMFieldInstr. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 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_optimizer.cc
===================================================================
--- runtime/vm/flow_graph_optimizer.cc (revision 12267)
+++ runtime/vm/flow_graph_optimizer.cc (working copy)
@@ -614,8 +614,10 @@
// Detach environment from the original instruction because it can't
// deoptimize.
call->set_env(NULL);
- LoadInstanceFieldInstr* load =
- new LoadInstanceFieldInstr(field, call->ArgumentAt(0)->value());
+ LoadVMFieldInstr* load = new LoadVMFieldInstr(
+ call->ArgumentAt(0)->value(),
+ field.Offset(),
+ AbstractType::ZoneHandle(field.type()));
call->ReplaceWith(load, current_iterator());
RemovePushArguments(call);
return true;

Powered by Google App Engine
This is Rietveld 408576698