Bug 928307 - Reset use count for scripts whose Ion code is invalided when finishing, r=jandem.
authorBrian Hackett <bhackett1024@gmail.com>
Fri, 18 Oct 2013 11:04:48 -0600
changeset 166135 c7bb7ba8d9a02d7babf79e3a45042151252f8488
parent 166134 d1b98bebc941694ca50bdaac9f870d1c70274858
child 166136 7038db0036610051b4809367ca3677801138a186
push id428
push userbbajaj@mozilla.com
push dateTue, 28 Jan 2014 00:16:25 +0000
treeherdermozilla-release@cd72a7ff3a75 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjandem
bugs928307
milestone27.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 928307 - Reset use count for scripts whose Ion code is invalided when finishing, r=jandem.
js/src/jsinfer.cpp
--- a/js/src/jsinfer.cpp
+++ b/js/src/jsinfer.cpp
@@ -981,16 +981,17 @@ types::FinishCompilation(JSContext *cx, 
 
         StackTypeSet *array = entry.script->types->typeArray();
         for (size_t i = 0; i < count; i++)
             array[i].add(cx, cx->typeLifoAlloc().new_<TypeConstraintFreezeStack>(entry.script), false);
     }
 
     if (!succeeded || types.constrainedOutputs->back().pendingInvalidation()) {
         types.constrainedOutputs->back().invalidate();
+        script->resetUseCount();
         return false;
     }
 
     return true;
 }
 
 namespace {