Fix OdinMonkey when --disable-ion (no bug, r=me)
This commit is contained in:
@@ -407,12 +407,14 @@ frontend::CompileFunctionBody(JSContext *cx, HandleFunction fun, CompileOptions
|
||||
pn = fn->pn_body;
|
||||
}
|
||||
|
||||
#ifdef JS_ION
|
||||
/*
|
||||
* Do asm.js compilation once the parse tree has been fully assembled but
|
||||
* before emitting since we need to know whether to emit JSOP_LINKASMJS.
|
||||
*/
|
||||
if (fn->pn_funbox->useAsm && !CompileAsmJS(cx, parser.tokenStream, fn, script))
|
||||
return false;
|
||||
#endif
|
||||
|
||||
if (!SetSourceMap(cx, parser.tokenStream, ss, script))
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user