Bug 1315930: Spew instructions in release builds too; r?nbp draft
authorBenjamin Bouvier <benj@benj.me>
Tue, 08 Nov 2016 12:18:17 +0100
changeset 435309 2a624fd8e1e571ac8ddfa3fffd8c57ef6b7a3a3c
parent 435280 efc9b52a218f7ffd40ba346de74fd846a9059ceb
child 536271 dfe411781300b53b6c2efb408506f189de934ad2
push id34995
push userbbouvier@mozilla.com
push dateTue, 08 Nov 2016 11:21:53 +0000
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
 }