Fix use of resetUseCount outside JS_METHODJIT. bug 687885, r=bhackett
authorLandry Breuil <landry@openbsd.org>
Tue, 20 Sep 2011 10:21:19 -0700
changeset 77209 21a39c2f9060c50afcc1e3e593bd49b55345e19d
parent 77208 2718a99132a26f0f4d125f8a487d4dc686b745a6
child 77210 f94b4d73777fdf543a620a6f6744cdf32cca14fa
push id21187
push usermak77@bonardo.net
push dateWed, 21 Sep 2011 08:36:41 +0000
treeherdermozilla-central@3178f1c42505 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbhackett
bugs687885
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
Fix use of resetUseCount outside JS_METHODJIT. bug 687885, r=bhackett
js/src/jsinfer.cpp
--- a/js/src/jsinfer.cpp
+++ b/js/src/jsinfer.cpp
@@ -6026,24 +6026,24 @@ TypeScript::Sweep(JSContext *cx, JSScrip
      */
 
     /*
      * Method JIT code depends on the type inference data which is about to
      * be purged, so purge the jitcode as well.
      */
 #ifdef JS_METHODJIT
     mjit::ReleaseScriptCode(cx, script);
-#endif
 
     /*
      * Use counts for scripts are reset on GC. After discarding code we need to
      * let it warm back up to get information like which opcodes are setting
      * array holes or accessing getter properties.
      */
     script->resetUseCount();
+#endif
 }
 
 void
 TypeScript::destroy()
 {
     while (dynamicList) {
         TypeResult *next = dynamicList->next;
         Foreground::delete_(dynamicList);