mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-21 09:15:35 +00:00
Bug 1316830 - Use default value instead of duplicating code. r=bbouvier
This commit is contained in:
parent
9c8d7b0849
commit
6ff62e4d56
@ -6790,18 +6790,7 @@ class MAdd : public MBinaryArithInstruction
|
||||
setResultType(MIRType::Value);
|
||||
}
|
||||
|
||||
MAdd(MDefinition* left, MDefinition* right, MIRType type)
|
||||
: MAdd(left, right)
|
||||
{
|
||||
specialization_ = type;
|
||||
setResultType(type);
|
||||
if (type == MIRType::Int32) {
|
||||
setTruncateKind(Truncate);
|
||||
setCommutative();
|
||||
}
|
||||
}
|
||||
|
||||
MAdd(MDefinition* left, MDefinition* right, MIRType type, TruncateKind truncateKind)
|
||||
MAdd(MDefinition* left, MDefinition* right, MIRType type, TruncateKind truncateKind = Truncate)
|
||||
: MAdd(left, right)
|
||||
{
|
||||
specialization_ = type;
|
||||
|
Loading…
Reference in New Issue
Block a user