mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 715498 - Revive the -c "compile only" option for the JS shell. r=cdleary
--HG-- extra : rebase_source : 06f8f4f642df4c5facbac0c906e64a8a58261005
This commit is contained in:
parent
000092c9ba
commit
66d485f43c
@ -5064,6 +5064,9 @@ ProcessArgs(JSContext *cx, JSObject *obj, OptionParser *op)
|
||||
if (op->getBoolOption('a'))
|
||||
JS_ToggleOptions(cx, JSOPTION_METHODJIT_ALWAYS);
|
||||
|
||||
if (op->getBoolOption('c'))
|
||||
compileOnly = true;
|
||||
|
||||
if (op->getBoolOption('m')) {
|
||||
enableMethodJit = true;
|
||||
JS_ToggleOptions(cx, JSOPTION_METHODJIT);
|
||||
@ -5331,6 +5334,7 @@ main(int argc, char **argv, char **envp)
|
||||
|| !op.addBoolOption('i', "shell", "Enter prompt after running code")
|
||||
|| !op.addBoolOption('m', "methodjit", "Enable the JaegerMonkey method JIT")
|
||||
|| !op.addBoolOption('n', "typeinfer", "Enable type inference")
|
||||
|| !op.addBoolOption('c', "compileonly", "Only compile, don't run (syntax checking mode)")
|
||||
|| !op.addBoolOption('d', "debugjit", "Enable runtime debug mode for method JIT code")
|
||||
|| !op.addBoolOption('a', "always-mjit",
|
||||
"Do not try to run in the interpreter before method jitting.")
|
||||
|
Loading…
Reference in New Issue
Block a user