Land bug 950452. r=jandem

--HG--
extra : rebase_source : 43f49a241cd6553bd4160df3bc9c316c64fbc746
This commit is contained in:
Brian Hackett 2013-12-19 16:55:56 -08:00
parent d8a56de683
commit f6aef0e482

View File

@ -9265,6 +9265,11 @@ IonBuilder::jsop_setarg(uint32_t arg)
JS_ASSERT(op->resultTypeSet() == &argTypes[arg]);
if (!argTypes[arg].addType(types::Type::UnknownType(), alloc_->lifoAlloc()))
return false;
if (val->isMul())
val->setResultType(MIRType_Double);
else
JS_ASSERT(val->type() == MIRType_Int32);
val->setResultTypeSet(nullptr);
}
}
}