No bug - Always initialize DoUseCountFallback out-param. r=djvj on IRC

This commit is contained in:
Jan de Mooij 2013-03-20 20:50:56 +01:00
parent 9f9a4e5985
commit 28cdede9c8

View File

@ -727,13 +727,13 @@ static bool
DoUseCountFallback(JSContext *cx, ICUseCount_Fallback *stub, BaselineFrame *frame, DoUseCountFallback(JSContext *cx, ICUseCount_Fallback *stub, BaselineFrame *frame,
IonOsrTempData **infoPtr) IonOsrTempData **infoPtr)
{ {
JS_ASSERT(infoPtr);
*infoPtr = NULL;
// A TI OOM will disable TI and Ion. // A TI OOM will disable TI and Ion.
if (!ion::IsEnabled(cx)) if (!ion::IsEnabled(cx))
return true; return true;
JS_ASSERT(infoPtr);
*infoPtr = NULL;
RootedScript script(cx, frame->script()); RootedScript script(cx, frame->script());
jsbytecode *pc = stub->icEntry()->pc(script); jsbytecode *pc = stub->icEntry()->pc(script);
bool isLoopEntry = JSOp(*pc) == JSOP_LOOPENTRY; bool isLoopEntry = JSOp(*pc) == JSOP_LOOPENTRY;