From 9ec541ddc23c4e6075e1c2e8916ba722cacb8a22 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Fri, 11 Apr 2014 06:50:10 -0700 Subject: [PATCH] Bug 994993 - IonMonkey: Don't disable math function optimization when there's no cache. r=jandem --- js/src/jit/MCallOptimize.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/js/src/jit/MCallOptimize.cpp b/js/src/jit/MCallOptimize.cpp index 86205c43316f..6c600dd38dbd 100644 --- a/js/src/jit/MCallOptimize.cpp +++ b/js/src/jit/MCallOptimize.cpp @@ -220,8 +220,6 @@ IonBuilder::inlineMathFunction(CallInfo &callInfo, MMathFunction::Function funct return InliningStatus_NotInlined; const MathCache *cache = compartment->runtime()->maybeGetMathCache(); - if (!cache) - return InliningStatus_NotInlined; callInfo.fun()->setImplicitlyUsedUnchecked(); callInfo.thisArg()->setImplicitlyUsedUnchecked();