Index: src/hydrogen-representation-changes.cc |
diff --git a/src/hydrogen-representation-changes.cc b/src/hydrogen-representation-changes.cc |
index ebb03b503ae2fdf7a48f224c78c8894511f14bf6..bfc8271a9b694762bc6bd18407c56bc02d9385db 100644 |
--- a/src/hydrogen-representation-changes.cc |
+++ b/src/hydrogen-representation-changes.cc |
@@ -63,7 +63,17 @@ static bool IsNonDeoptingIntToSmiChange(HChange* change) { |
void HRepresentationChangesPhase::InsertRepresentationChangesForValue( |
HValue* value) { |
Representation r = value->representation(); |
- if (r.IsNone()) return; |
+ if (r.IsNone()) { |
+#ifdef DEBUG |
+ for (HUseIterator it(value->uses()); !it.Done(); it.Advance()) { |
+ HValue* use_value = it.value(); |
+ int use_index = it.index(); |
+ Representation req = use_value->RequiredInputRepresentation(use_index); |
+ DCHECK(req.IsNone()); |
+ } |
+#endif |
+ return; |
+ } |
if (value->HasNoUses()) { |
if (value->IsForceRepresentation()) value->DeleteAndReplaceWith(NULL); |
return; |