Fix OdinMonkey when --disable-ion (no bug, r=me)

This commit is contained in:
Luke Wagner
2013-03-18 11:14:56 -07:00
parent 3ea6df426e
commit ca6a70a150
6 changed files with 23 additions and 6 deletions

View File

@@ -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;