Bug 1315930: Spew instructions in release builds too; r?nbp
MozReview-Commit-ID: 94klMhO0bN8
--- 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
}