Bug 987947 - Check NewCompilerConstraintList() return. r=efaust

This commit is contained in:
Sean Stangl 2014-03-25 13:01:22 -07:00
parent 939be317e4
commit c3a8061349

View File

@ -2178,6 +2178,9 @@ jit::AnalyzeNewScriptProperties(JSContext *cx, JSFunction *fun,
const OptimizationInfo *optimizationInfo = js_IonOptimizations.get(Optimization_Normal);
types::CompilerConstraintList *constraints = types::NewCompilerConstraintList(temp);
if (!constraints)
return false;
BaselineInspector inspector(script);
const JitCompileOptions options(cx);