Fix --disable-methodjit build.
authorBrian Hackett <bhackett1024@gmail.com>
Wed, 07 Sep 2011 15:02:40 -0700
changeset 76694 6e2d980874f752f62923852a0ef37a15cee3f512
parent 76693 9b35a07f21b13bb576d9732bd6c25a369a198b9c
child 76695 01751bc07cca0ce2275d52f792b09d5e72b0ca02
push id3
push userfelipc@gmail.com
push dateFri, 30 Sep 2011 20:09:13 +0000
milestone9.0a1
Fix --disable-methodjit build.
js/src/jscompartment.cpp
--- a/js/src/jscompartment.cpp
+++ b/js/src/jscompartment.cpp
@@ -591,22 +591,24 @@ JSCompartment::sweep(JSContext *cx, uint
 #endif
 
     if (activeAnalysis) {
         /*
          * Analysis information is in use, so don't clear the analysis pool.
          * jitcode still needs to be released, if this is a shape-regenerating
          * GC then shape numbers baked into the code may change.
          */
+#ifdef JS_METHODJIT
         if (types.inferenceEnabled) {
             for (CellIterUnderGC i(this, FINALIZE_SCRIPT); !i.done(); i.next()) {
                 JSScript *script = i.get<JSScript>();
                 mjit::ReleaseScriptCode(cx, script);
             }
         }
+#endif
     } else {
         /*
          * Clear the analysis pool, but don't release its data yet. While
          * sweeping types any live data will be allocated into the pool.
          */
         JSArenaPool oldPool;
         MoveArenaPool(&pool, &oldPool);