Bug 997992 - Fix build error on non ion builds. r=jandem, a=lsblakk
authorSteve Singer <steve@ssinger.info>
Fri, 02 May 2014 09:03:00 -0400
changeset 192201 5958a9259d6a
parent 192200 c219fc2b4cc2
child 192202 71955ffaf20e
child 192204 c714ac7fb431
child 192206 f15b4b99adc4
push id3520
push userryanvm@gmail.com
push date2014-05-05 17:12 +0000
treeherdermozilla-beta@5958a9259d6a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjandem, lsblakk
bugs997992
milestone30.0
Bug 997992 - Fix build error on non ion builds. r=jandem, a=lsblakk
js/src/jsinfer.cpp
--- a/js/src/jsinfer.cpp
+++ b/js/src/jsinfer.cpp
@@ -4389,31 +4389,32 @@ TypeZone::sweep(FreeOp *fop, bool releas
      * Clear the analysis pool, but don't release its data yet. While
      * sweeping types any live data will be allocated into the pool.
      */
     LifoAlloc oldAlloc(typeLifoAlloc.defaultChunkSize());
     oldAlloc.steal(&typeLifoAlloc);
 
     /* Sweep and find compressed indexes for each compiler output. */
     size_t newCompilerOutputCount = 0;
+#ifdef JS_ION
     if (compilerOutputs) {
         for (size_t i = 0; i < compilerOutputs->length(); i++) {
             CompilerOutput &output = (*compilerOutputs)[i];
             if (output.isValid()) {
                 JSScript *script = output.script();
                 if (IsScriptAboutToBeFinalized(&script)) {
                     jit::GetIonScript(script, output.mode())->recompileInfoRef() = uint32_t(-1);
                     output.invalidate();
                 } else {
                     output.setSweepIndex(newCompilerOutputCount++);
                 }
             }
         }
     }
-
+#endif
     if (inferenceEnabled) {
         gcstats::AutoPhase ap2(rt->gcStats, gcstats::PHASE_DISCARD_TI);
 
         for (CellIterUnderGC i(zone(), FINALIZE_SCRIPT); !i.done(); i.next()) {
             JSScript *script = i.get<JSScript>();
             if (script->types) {
                 types::TypeScript::Sweep(fop, script, oom);