diff --git a/js/src/ion/BaselineIC.cpp b/js/src/ion/BaselineIC.cpp index 59100ecc730..463d00d43ce 100644 --- a/js/src/ion/BaselineIC.cpp +++ b/js/src/ion/BaselineIC.cpp @@ -727,13 +727,13 @@ static bool DoUseCountFallback(JSContext *cx, ICUseCount_Fallback *stub, BaselineFrame *frame, IonOsrTempData **infoPtr) { + JS_ASSERT(infoPtr); + *infoPtr = NULL; + // A TI OOM will disable TI and Ion. if (!ion::IsEnabled(cx)) return true; - JS_ASSERT(infoPtr); - *infoPtr = NULL; - RootedScript script(cx, frame->script()); jsbytecode *pc = stub->icEntry()->pc(script); bool isLoopEntry = JSOp(*pc) == JSOP_LOOPENTRY;