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
This commit is contained in:
sigurds@chromium.org 2014-09-02 14:59:41 +00:00
parent 6b99211112
commit eb2fdf106e

View File

@ -209,14 +209,14 @@ void GraphVisualizer::PrintEdge(Node::Edge edge) {
(OperatorProperties::GetControlInputCount(from->op()) > 0 && (OperatorProperties::GetControlInputCount(from->op()) > 0 &&
NodeProperties::GetControlInput(from) != to)) { NodeProperties::GetControlInput(from) != to)) {
os_ << ":I" << index << ":n -> ID" << to->id() << ":s" os_ << ":I" << index << ":n -> ID" << to->id() << ":s"
<< "[" << (unconstrained ? "constraint=false" : "") << "[" << (unconstrained ? "constraint=false, " : "")
<< (NodeProperties::IsControlEdge(edge) ? "style=bold" : "") << (NodeProperties::IsControlEdge(edge) ? "style=bold, " : "")
<< (NodeProperties::IsEffectEdge(edge) ? "style=dotted" : "") << (NodeProperties::IsEffectEdge(edge) ? "style=dotted, " : "")
<< (NodeProperties::IsContextEdge(edge) ? "style=dashed" : "") << "]"; << (NodeProperties::IsContextEdge(edge) ? "style=dashed, " : "") << "]";
} else { } else {
os_ << " -> ID" << to->id() << ":s [color=transparent" os_ << " -> ID" << to->id() << ":s [color=transparent, "
<< (unconstrained ? ", constraint=false" : "") << (unconstrained ? "constraint=false, " : "")
<< (NodeProperties::IsControlEdge(edge) ? ", style=dashed" : "") << "]"; << (NodeProperties::IsControlEdge(edge) ? "style=dashed, " : "") << "]";
} }
os_ << "\n"; os_ << "\n";
} }