Bug 783464 - Fix condition for removing the constrained output vector. r=bhackett
authorNicolas B. Pierron <nicolas.b.pierron@mozilla.com>
Mon, 20 Aug 2012 11:32:37 -0700
changeset 104445 8b2c0239f5bcff290f08be9ae4b1cb1320978c81
parent 104444 8dfc1dbac04b0d0c7d562d741acb6150f509b819
child 104446 ab4f8a3762c636799b25d88b9a03942bcb429acc
push id1247
push usernpierron@mozilla.com
push dateMon, 20 Aug 2012 20:15:06 +0000
reviewersbhackett
bugs783464
milestone17.0a1
Bug 783464 - Fix condition for removing the constrained output vector. r=bhackett
js/src/jsinfer.cpp
--- a/js/src/jsinfer.cpp
+++ b/js/src/jsinfer.cpp
@@ -5833,17 +5833,17 @@ TypeCompartment::sweep(FreeOp *fop)
 }
 
 void
 TypeCompartment::sweepCompilerOutputs(FreeOp *fop)
 {
 
     if (constrainedOutputs) {
         bool isCompiling = compiledInfo.outputIndex != RecompileInfo::NoCompilerRunning;
-        if (isCompiling && !compartment()->activeAnalysis)
+        if (!isCompiling && !compartment()->activeAnalysis)
         {
 #if DEBUG
             for (unsigned i = 0; i < constrainedOutputs->length(); i++) {
                 CompilerOutput &co = (*constrainedOutputs)[i];
                 JS_ASSERT(!co.isValid());
             }
 #endif
             fop->delete_(constrainedOutputs);