void Phase::beginPhase()
{
+ if (Options::verboseValidationFailure()) {
+ StringPrintStream out;
+ m_graph.dump(out);
+ m_graphDumpBeforePhase = out.toCString();
+ }
+
if (!shouldDumpGraphAtEachPhase())
return;
+
dataLog("Beginning DFG phase ", m_name, ".\n");
dataLog("Before ", m_name, ":\n");
m_graph.dump();
{
if (!Options::validateGraphAtEachPhase())
return;
- validate(m_graph, DumpGraph);
+ validate(m_graph, DumpGraph, m_graphDumpBeforePhase);
}
} } // namespace JSC::DFG