From eb2fdf106e808acf732795ae0ab6a33062dcffe4 Mon Sep 17 00:00:00 2001 From: "sigurds@chromium.org" Date: Tue, 2 Sep 2014 14:59:41 +0000 Subject: [PATCH] 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 --- src/compiler/graph-visualizer.cc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/compiler/graph-visualizer.cc b/src/compiler/graph-visualizer.cc index 0edc0d3d5c..10d6698a2c 100644 --- a/src/compiler/graph-visualizer.cc +++ b/src/compiler/graph-visualizer.cc @@ -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"; }