Index: src/hydrogen-instructions.cc |
=================================================================== |
--- src/hydrogen-instructions.cc (revision 7884) |
+++ src/hydrogen-instructions.cc (working copy) |
@@ -67,6 +67,16 @@ |
} |
+void HValue::AssumeRepresentation(Representation r) { |
+ if (CheckFlag(kFlexibleRepresentation)) { |
+ ChangeRepresentation(r); |
+ // The representation of the value is dictated by type feedback and |
+ // will not be changed later. |
+ ClearFlag(kFlexibleRepresentation); |
+ } |
+} |
+ |
+ |
static int32_t ConvertAndSetOverflow(int64_t result, bool* overflow) { |
if (result > kMaxInt) { |
*overflow = true; |