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

Unified Diff: runtime/vm/flow_graph_optimizer.cc

Issue 10546154: Restore changes lost in merge for r8626 (equality operation). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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
« no previous file with comments | « no previous file | runtime/vm/intermediate_language_ia32.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/flow_graph_optimizer.cc
===================================================================
--- runtime/vm/flow_graph_optimizer.cc (revision 8626)
+++ runtime/vm/flow_graph_optimizer.cc (working copy)
@@ -622,6 +622,15 @@
void FlowGraphOptimizer::VisitEqualityCompare(EqualityCompareComp* comp) {
+ if (!comp->HasICData()) return;
+ const ICData& ic_data = *comp->ic_data();
+ if (ic_data.NumberOfChecks() != 1) return;
+ ASSERT(HasOneTarget(ic_data));
+ if (HasTwoSmi(ic_data)) {
+ comp->set_operands_class_id(kSmi);
+ } else {
+ return;
+ }
// TODO(vegorov): recognize the pattern with BooleanNegate between comparsion
// and a branch.
TryFuseComparisonWithBranch(comp);
« no previous file with comments | « no previous file | runtime/vm/intermediate_language_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698