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

Unified Diff: runtime/vm/flow_graph_optimizer.cc

Issue 10876079: Clean up LoadInstanceField and StoreInstanceField. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 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 11378)
+++ runtime/vm/flow_graph_optimizer.cc (working copy)
@@ -472,9 +472,7 @@
AddCheckClass(instr, comp, comp->ArgumentAt(0)->value()->CopyValue());
LoadInstanceFieldComp* load =
- new LoadInstanceFieldComp(field,
- comp->ArgumentAt(0)->value(),
- NULL); // Can not deoptimize.
+ new LoadInstanceFieldComp(field, comp->ArgumentAt(0)->value());
instr->set_computation(load);
RemovePushArguments(comp);
return true;
@@ -671,8 +669,7 @@
StoreInstanceFieldComp* store = new StoreInstanceFieldComp(
field,
comp->ArgumentAt(0)->value(),
- comp->ArgumentAt(1)->value(),
- NULL); // Can not deoptimize.
+ comp->ArgumentAt(1)->value());
instr->set_computation(store);
RemovePushArguments(comp);
return true;

Powered by Google App Engine
This is Rietveld 408576698