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

Unified Diff: runtime/vm/intermediate_language.cc

Issue 10914314: Simple redundant load elimination. (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
« runtime/vm/flow_graph_optimizer.cc ('K') | « runtime/vm/intermediate_language.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/intermediate_language.cc
===================================================================
--- runtime/vm/intermediate_language.cc (revision 12420)
+++ runtime/vm/intermediate_language.cc (working copy)
@@ -72,6 +72,20 @@
}
+bool BinarySmiOpInstr::AttributesEqual(Definition* other) const {
+ BinarySmiOpInstr* other_op = other->AsBinarySmiOp();
+ ASSERT(other_op != NULL);
+ return op_kind() == other_op->op_kind();
+}
+
+
+bool StrictCompareInstr::AttributesEqual(Definition* other) const {
+ StrictCompareInstr* other_op = other->AsStrictCompare();
+ ASSERT(other_op != NULL);
+ return kind() == other_op->kind();
+}
+
+
bool LoadFieldInstr::AttributesEqual(Definition* other) const {
LoadFieldInstr* other_load = other->AsLoadField();
ASSERT(other_load != NULL);
« runtime/vm/flow_graph_optimizer.cc ('K') | « runtime/vm/intermediate_language.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698