Index: src/hydrogen-instructions.h |
diff --git a/src/hydrogen-instructions.h b/src/hydrogen-instructions.h |
index 32eda119ca89cef688a0b80e9f24cd573cf109bb..6de90deb5b3309ff9069abff3f85af5951deaf8f 100644 |
--- a/src/hydrogen-instructions.h |
+++ b/src/hydrogen-instructions.h |
@@ -890,10 +890,10 @@ class HValue: public ZoneObject { |
Representation representation() const { return representation_; } |
void ChangeRepresentation(Representation r) { |
ASSERT(CheckFlag(kFlexibleRepresentation)); |
+ ASSERT(!CheckFlag(kCannotBeTagged) || !r.IsTagged()); |
RepresentationChanged(r); |
representation_ = r; |
- if (r.IsTagged() || |
- (r.IsDouble() && CheckFlag(kCannotBeTagged))) { |
+ if (r.IsTagged()) { |
// Tagged is the bottom of the lattice, don't go any further. |
ClearFlag(kFlexibleRepresentation); |
} |