From 5ce759a0eb10b75f846249587c6368a8f31d89f3 Mon Sep 17 00:00:00 2001 From: Benjamin Bouvier Date: Thu, 20 Feb 2014 19:20:08 +0100 Subject: [PATCH] Bug 930477: Inline MPow with Float32 inputs even if it's not specialized; r=jandem --- js/src/jit/MCallOptimize.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/src/jit/MCallOptimize.cpp b/js/src/jit/MCallOptimize.cpp index 6352ec89941..92121b2aa2f 100644 --- a/js/src/jit/MCallOptimize.cpp +++ b/js/src/jit/MCallOptimize.cpp @@ -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();