Bug 608865 - Enable methodjit in chrome [r=mbrubeck]
authorMark Finkle <mfinkle@mozilla.com>
Tue, 02 Nov 2010 01:45:27 -0400
changeset 66934 e08466a1febbcc2f992dc780c7896328b658d35e
parent 66933 74458f5c71bb3f96d7cfcbec497ed9eaf5258f63
child 66935 b59a80b5a03330f3b00fdc6d877ef347ac25e863
push id1
push userroot
push dateTue, 26 Apr 2011 22:38:44 +0000
treeherdermozilla-beta@bfdb6e623a36 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmbrubeck
bugs608865
Bug 608865 - Enable methodjit in chrome [r=mbrubeck]
mobile/app/mobile.js
mobile/chrome/content/browser.js
--- a/mobile/app/mobile.js
+++ b/mobile/app/mobile.js
@@ -338,16 +338,17 @@ pref("geo.enabled", true);
 // content sink control -- controls responsiveness during page load
 // see https://bugzilla.mozilla.org/show_bug.cgi?id=481566#c9
 pref("content.sink.enable_perf_mode",  2); // 0 - switch, 1 - interactive, 2 - perf
 pref("content.sink.pending_event_mode", 0);
 pref("content.sink.perf_deflect_count", 1000000);
 pref("content.sink.perf_parse_time", 50000000);
 
 pref("javascript.options.mem.gc_frequency", 300);
+pref("javascript.options.methodjit.chrome", true);
 
 pref("dom.max_chrome_script_run_time", 0); // disable slow script dialog for chrome
 pref("dom.max_script_run_time", 20);
 
 // JS error console
 pref("browser.console.showInPanel", false);
 
 // kinetic tweakables
--- a/mobile/chrome/content/browser.js
+++ b/mobile/chrome/content/browser.js
@@ -1346,20 +1346,22 @@ const BrowserSearch = {
         break;
       case "engine-current":
         // Not relevant
         break;
     }
   },
 
   get engines() {
+    dump("------ engines\n")
     if (this._engines)
       return this._engines;
 
     this._engines = Services.search.getVisibleEngines({ });
+    dump("------ engines.length:" + this._engines.length + "\n")
     return this._engines;
   },
 
   updatePageSearchEngines: function updatePageSearchEngines(aNode) {
     let items = Browser.selectedBrowser.searchEngines.filter(this.isPermanentSearchEngine);
     if (!items.length)
       return false;