OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "src/compiler/graph-visualizer.h" | 5 #include "src/compiler/graph-visualizer.h" |
6 | 6 |
7 #include <sstream> | 7 #include <sstream> |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "src/code-stubs.h" | 10 #include "src/code-stubs.h" |
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
249 void GraphVisualizer::PrintNode(Node* node, bool gray) { | 249 void GraphVisualizer::PrintNode(Node* node, bool gray) { |
250 Node* control_cluster = GetControlCluster(node); | 250 Node* control_cluster = GetControlCluster(node); |
251 if (control_cluster != NULL) { | 251 if (control_cluster != NULL) { |
252 os_ << " subgraph cluster_BasicBlock" << control_cluster->id() << " {\n"; | 252 os_ << " subgraph cluster_BasicBlock" << control_cluster->id() << " {\n"; |
253 } | 253 } |
254 os_ << " ID" << SafeId(node) << " [\n"; | 254 os_ << " ID" << SafeId(node) << " [\n"; |
255 | 255 |
256 os_ << " shape=\"record\"\n"; | 256 os_ << " shape=\"record\"\n"; |
257 switch (node->opcode()) { | 257 switch (node->opcode()) { |
258 case IrOpcode::kEnd: | 258 case IrOpcode::kEnd: |
259 case IrOpcode::kDeadControl: | 259 case IrOpcode::kDead: |
260 case IrOpcode::kStart: | 260 case IrOpcode::kStart: |
261 os_ << " style=\"diagonals\"\n"; | 261 os_ << " style=\"diagonals\"\n"; |
262 break; | 262 break; |
263 case IrOpcode::kMerge: | 263 case IrOpcode::kMerge: |
264 case IrOpcode::kIfTrue: | 264 case IrOpcode::kIfTrue: |
265 case IrOpcode::kIfFalse: | 265 case IrOpcode::kIfFalse: |
266 case IrOpcode::kLoop: | 266 case IrOpcode::kLoop: |
267 os_ << " style=\"rounded\"\n"; | 267 os_ << " style=\"rounded\"\n"; |
268 break; | 268 break; |
269 default: | 269 default: |
(...skipping 552 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
822 os << "#" << SafeId(i) << ":" << SafeMnemonic(i); | 822 os << "#" << SafeId(i) << ":" << SafeMnemonic(i); |
823 } | 823 } |
824 os << ")" << std::endl; | 824 os << ")" << std::endl; |
825 } | 825 } |
826 } | 826 } |
827 return os; | 827 return os; |
828 } | 828 } |
829 } // namespace compiler | 829 } // namespace compiler |
830 } // namespace internal | 830 } // namespace internal |
831 } // namespace v8 | 831 } // namespace v8 |
OLD | NEW |