Have --ion-eager imply --ion. (No bug, r=dvander)
authorSean Stangl <sstangl@mozilla.com>
Fri, 02 Sep 2011 17:55:09 -0700
changeset 105233 4a44c143b3ee9c42039e1216f6412f2702dd8350
parent 105232 aa856d61ef8537a2cec9b05c6fa41f13464fca1a
child 105234 8d78407cbf7edb6d436f7dcd25c289a3fe095f2e
push id14706
push usereakhgari@mozilla.com
push dateTue, 11 Sep 2012 20:39:52 +0000
treeherdermozilla-inbound@d50bf1edaabe [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdvander
milestone9.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Have --ion-eager imply --ion. (No bug, r=dvander)
js/src/shell/js.cpp
--- a/js/src/shell/js.cpp
+++ b/js/src/shell/js.cpp
@@ -5430,18 +5430,20 @@ ProcessArgs(JSContext *cx, JSObject *obj
         if (strcmp(str, "lsra") == 0)
             ion::js_IonOptions.lsra = true;
         else if (strcmp(str, "greedy") == 0)
             ion::js_IonOptions.lsra = false;
         else
             return OptionFailure("ion-regalloc", str);
     }
 
-    if (op->getBoolOption("ion-eager"))
+    if (op->getBoolOption("ion-eager")) {
+        ion::js_IonOptions.enabled = true;
         ion::js_IonOptions.setEagerCompilation();
+    }
 #endif
 
     /* |scriptArgs| gets bound on the global before any code is run. */
     if (!BindScriptArgs(cx, obj, op))
         return EXIT_FAILURE;
 
     MultiStringRange filePaths = op->getMultiStringOption('f');
     MultiStringRange codeChunks = op->getMultiStringOption('e');