Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(171)

Side by Side Diff: src/compiler/graph-visualizer.cc

Issue 1186033006: [turbofan] Introduce DeadValue and DeadEffect operators. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Addressed comments. Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/compiler/control-reducer.cc ('k') | src/compiler/js-graph.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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::kDead: 259 case IrOpcode::kDeadControl:
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
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
OLDNEW
« no previous file with comments | « src/compiler/control-reducer.cc ('k') | src/compiler/js-graph.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698