diff --git a/src/hydrogen-instructions.cc b/src/hydrogen-instructions.cc index 6b0c8e486f..eec1237f69 100644 --- a/src/hydrogen-instructions.cc +++ b/src/hydrogen-instructions.cc @@ -726,7 +726,7 @@ void HTypeofIs::PrintDataTo(StringStream* stream) { void HChange::PrintDataTo(StringStream* stream) { HUnaryOperation::PrintDataTo(stream); - stream->Add(" %s to %s", from_.Mnemonic(), to_.Mnemonic()); + stream->Add(" %s to %s", from_.Mnemonic(), to().Mnemonic()); if (CanTruncateToInt32()) stream->Add(" truncating-int32"); if (CheckFlag(kBailoutOnMinusZero)) stream->Add(" -0?"); diff --git a/src/hydrogen-instructions.h b/src/hydrogen-instructions.h index ddef8b7584..fb45ee9d9f 100644 --- a/src/hydrogen-instructions.h +++ b/src/hydrogen-instructions.h @@ -932,7 +932,7 @@ class HChange: public HUnaryOperation { Representation from, Representation to, bool is_truncating) - : HUnaryOperation(value), from_(from), to_(to) { + : HUnaryOperation(value), from_(from) { ASSERT(!from.IsNone() && !to.IsNone()); ASSERT(!from.Equals(to)); set_representation(to); @@ -947,7 +947,7 @@ class HChange: public HUnaryOperation { virtual HValue* EnsureAndPropagateNotMinusZero(BitVector* visited); Representation from() const { return from_; } - Representation to() const { return to_; } + Representation to() const { return representation(); } virtual Representation RequiredInputRepresentation(int index) const { return from_; } @@ -969,7 +969,6 @@ class HChange: public HUnaryOperation { private: Representation from_; - Representation to_; };