Bug 1328228: Fix unused variable, r=failures
authorHannes Verschore <hv1989@gmail.com>
Mon, 09 Jan 2017 15:33:46 +0100
changeset 356571 6da5cbbfd764f845207c2194b1bce21075c0a03d
parent 356570 953bb49f3aafaea044051d11d501df0980c3d2e2
child 356572 be756f2f53a530db44f0b3796acc4a3624ca4b00
push id10621
push userjlund@mozilla.com
push dateMon, 23 Jan 2017 16:02:43 +0000
treeherdermozilla-aurora@dca7b42e6c67 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfailures
bugs1328228
milestone53.0a1
Bug 1328228: Fix unused variable, r=failures
js/src/jit/CodeGenerator.cpp
--- a/js/src/jit/CodeGenerator.cpp
+++ b/js/src/jit/CodeGenerator.cpp
@@ -5186,23 +5186,25 @@ CodeGenerator::emitDebugForceBailing(LIn
 #endif
 
 static void
 DumpTrackedSite(const BytecodeSite* site)
 {
     if (!JitSpewEnabled(JitSpew_OptimizationTracking))
         return;
 
+#ifdef JS_JITSPEW
     unsigned column = 0;
     unsigned lineNumber = PCToLineNumber(site->script(), site->pc(), &column);
     JitSpew(JitSpew_OptimizationTracking, "Types for %s at %s:%u:%u",
             CodeName[JSOp(*site->pc())],
             site->script()->filename(),
             lineNumber,
             column);
+#endif
 }
 
 static void
 DumpTrackedOptimizations(TrackedOptimizations* optimizations)
 {
     if (!JitSpewEnabled(JitSpew_OptimizationTracking))
         return;