Bug 930477: Inline MPow with Float32 inputs even if it's not specialized; r=jandem

This commit is contained in:
Benjamin Bouvier 2014-02-20 19:20:08 +01:00
parent 7563d524e8
commit 5ce759a0eb

View File

@ -775,9 +775,9 @@ IonBuilder::inlineMathPow(CallInfo &callInfo)
if (outputType != MIRType_Int32 && outputType != MIRType_Double)
return InliningStatus_NotInlined;
if (baseType != MIRType_Int32 && baseType != MIRType_Double)
if (!IsNumberType(baseType))
return InliningStatus_NotInlined;
if (powerType != MIRType_Int32 && powerType != MIRType_Double)
if (!IsNumberType(powerType))
return InliningStatus_NotInlined;
callInfo.setImplicitlyUsedUnchecked();