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

Unified Diff: runtime/vm/flow_graph_optimizer.cc

Issue 16853005: Fix bug in constant propagation with double-equality. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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 | tests/language/arithmetic_test.dart » ('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 23907)
+++ runtime/vm/flow_graph_optimizer.cc (working copy)
@@ -5186,7 +5186,7 @@
// Fold x == x, and x != x to true/false for numbers and checked strict
// comparisons.
if (instr->is_checked_strict_equal() ||
- RawObject::IsNumberClassId(instr->receiver_class_id())) {
+ RawObject::IsIntegerClassId(instr->receiver_class_id())) {
return SetValue(instr,
(instr->kind() == Token::kEQ)
? Bool::True()
« no previous file with comments | « no previous file | tests/language/arithmetic_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698