Commit eb2fdf10 authored by sigurds@chromium.org's avatar sigurds@chromium.org

Fix bug in graph visualizer.

R=mstarzinger@chromium.org

Review URL: https://codereview.chromium.org/526373002

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@23622 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 6b992111
......@@ -209,14 +209,14 @@ void GraphVisualizer::PrintEdge(Node::Edge edge) {
(OperatorProperties::GetControlInputCount(from->op()) > 0 &&
NodeProperties::GetControlInput(from) != to)) {
os_ << ":I" << index << ":n -> ID" << to->id() << ":s"
<< "[" << (unconstrained ? "constraint=false" : "")
<< (NodeProperties::IsControlEdge(edge) ? "style=bold" : "")
<< (NodeProperties::IsEffectEdge(edge) ? "style=dotted" : "")
<< (NodeProperties::IsContextEdge(edge) ? "style=dashed" : "") << "]";
<< "[" << (unconstrained ? "constraint=false, " : "")
<< (NodeProperties::IsControlEdge(edge) ? "style=bold, " : "")
<< (NodeProperties::IsEffectEdge(edge) ? "style=dotted, " : "")
<< (NodeProperties::IsContextEdge(edge) ? "style=dashed, " : "") << "]";
} else {
os_ << " -> ID" << to->id() << ":s [color=transparent"
<< (unconstrained ? ", constraint=false" : "")
<< (NodeProperties::IsControlEdge(edge) ? ", style=dashed" : "") << "]";
os_ << " -> ID" << to->id() << ":s [color=transparent, "
<< (unconstrained ? "constraint=false, " : "")
<< (NodeProperties::IsControlEdge(edge) ? "style=dashed, " : "") << "]";
}
os_ << "\n";
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment