Bug 876458 - Fix MUnbox::congruentTo, r=jandem.

This commit is contained in:
Brian Hackett 2013-05-29 13:31:35 -06:00
parent 2c3afd1543
commit c106ea366d

View File

@ -1999,6 +1999,8 @@ class MUnbox : public MUnaryInstruction, public BoxInputsPolicy
return mode() != Infallible;
}
bool congruentTo(MDefinition *const &ins) const {
if (!ins->isUnbox() || ins->toUnbox()->mode() != mode())
return false;
return congruentIfOperandsEqual(ins);
}
AliasSet getAliasSet() const {