Index: src/hydrogen-check-elimination.cc |
diff --git a/src/hydrogen-check-elimination.cc b/src/hydrogen-check-elimination.cc |
index cd002a1d5c80a5d9a76ee4eded2f889461958dc6..e12f14a13fb16b740fe6f4327970c5d77f7edca2 100644 |
--- a/src/hydrogen-check-elimination.cc |
+++ b/src/hydrogen-check-elimination.cc |
@@ -341,11 +341,15 @@ class HCheckTable : public ZoneObject { |
if (maps == NULL) return; |
if (maps->Contains(instr->map())) { |
if (maps->size() == 1) { |
- // TODO(titzer): replace with goto true branch |
+ TRACE(("Marking redundant CompareMap #%d at B%d as true\n", |
+ instr->id(), instr->block()->block_id())); |
+ instr->set_known_successor_index(0); |
INC_STAT(compares_true_); |
} |
} else { |
- // TODO(titzer): replace with goto false branch |
+ TRACE(("Marking redundant CompareMap #%d at B%d as false\n", |
+ instr->id(), instr->block()->block_id())); |
+ instr->set_known_successor_index(1); |
INC_STAT(compares_false_); |
} |
} |