Bug 807464 - Increase Ion script size limit to 2000. r=dvander
authorSean Stangl <sstangl@mozilla.com>
Mon, 10 Dec 2012 15:27:47 -0800
changeset 115572 862fe97bd3a4
parent 115571 7686d9b787e1
child 115573 988ef008a1d7
push id24015
push useremorley@mozilla.com
push dateTue, 11 Dec 2012 15:51:15 +0000
treeherdermozilla-central@87f8165c5a0b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdvander
bugs807464
milestone20.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
Bug 807464 - Increase Ion script size limit to 2000. r=dvander
js/src/ion/Ion.cpp
--- a/js/src/ion/Ion.cpp
+++ b/js/src/ion/Ion.cpp
@@ -1283,17 +1283,17 @@ CheckScript(JSScript *script)
 }
 
 static bool
 CheckScriptSize(JSScript *script)
 {
     if (!js_IonOptions.limitScriptSize)
         return true;
 
-    static const uint32_t MAX_SCRIPT_SIZE = 1500;
+    static const uint32_t MAX_SCRIPT_SIZE = 2000;
     static const uint32_t MAX_LOCALS_AND_ARGS = 256;
 
     if (script->length > MAX_SCRIPT_SIZE) {
         IonSpew(IonSpew_Abort, "Script too large (%u bytes)", script->length);
         return false;
     }
 
     uint32_t numLocalsAndArgs = analyze::TotalSlots(script);