diff options
Diffstat (limited to 'Source/JavaScriptCore/dfg/DFGPhase.cpp')
-rw-r--r-- | Source/JavaScriptCore/dfg/DFGPhase.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Source/JavaScriptCore/dfg/DFGPhase.cpp b/Source/JavaScriptCore/dfg/DFGPhase.cpp index 20301e814..32e039ec5 100644 --- a/Source/JavaScriptCore/dfg/DFGPhase.cpp +++ b/Source/JavaScriptCore/dfg/DFGPhase.cpp @@ -32,21 +32,21 @@ namespace JSC { namespace DFG { -#if DFG_ENABLE(DEBUG_PROPAGATION_VERBOSE) void Phase::beginPhase() { - dataLogF("Beginning DFG phase %s.\n", m_name); - dataLogF("Graph before %s:\n", m_name); + if (!shouldDumpGraphAtEachPhase()) + return; + dataLog("Beginning DFG phase ", m_name, ".\n"); + dataLog("Before ", m_name, ":\n"); m_graph.dump(); } -#endif -#if DFG_ENABLE(PER_PHASE_VALIDATION) void Phase::endPhase() { + if (!Options::validateGraphAtEachPhase()) + return; validate(m_graph, DumpGraph); } -#endif } } // namespace JSC::DFG |