Bug 1315930: Spew instructions in release builds too; r=nbp
authorBenjamin Bouvier <benj@benj.me>
Tue, 08 Nov 2016 12:18:17 +0100
changeset 351611 37a28e758b41ed01d3bb11f7f2442b564c94f0af
parent 351610 d8528906686e36ee960249dd9131020768b1476c
child 351612 39feb13d796211eb37dda17e3b2c74a5ea283aa6
push id6795
push userjlund@mozilla.com
push dateMon, 23 Jan 2017 14:19:46 +0000
treeherdermozilla-esr52@76101b503191 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersnbp
bugs1315930
milestone52.0a1
Bug 1315930: Spew instructions in release builds too; r=nbp MozReview-Commit-ID: 94klMhO0bN8
js/src/jit/RegisterAllocator.cpp
--- a/js/src/jit/RegisterAllocator.cpp
+++ b/js/src/jit/RegisterAllocator.cpp
@@ -544,17 +544,17 @@ RegisterAllocator::getMoveGroupAfter(LIn
 
     ins->block()->insertAfter(ins, moves);
     return moves;
 }
 
 void
 RegisterAllocator::dumpInstructions()
 {
-#ifdef DEBUG
+#ifdef JS_JITSPEW
     fprintf(stderr, "Instructions:\n");
 
     for (size_t blockIndex = 0; blockIndex < graph.numBlocks(); blockIndex++) {
         LBlock* block = graph.getBlock(blockIndex);
         MBasicBlock* mir = block->mir();
 
         fprintf(stderr, "\nBlock %lu", static_cast<unsigned long>(blockIndex));
         for (size_t i = 0; i < mir->numSuccessors(); i++)
@@ -605,10 +605,10 @@ RegisterAllocator::dumpInstructions()
                 if (!alloc->isBogus())
                     fprintf(stderr, " [use %s]", alloc->toString().get());
             }
 
             fprintf(stderr, "\n");
         }
     }
     fprintf(stderr, "\n");
-#endif // DEBUG
+#endif // JS_JITSPEW
 }