Remove redundant data member from HChange instructions.
The target representation is already stored as part of HValue::representation(). Review URL: http://codereview.chromium.org/6794014 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@7493 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
7dd6bb9144
commit
71b2572547
@ -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?");
|
||||
|
@ -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_;
|
||||
};
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user