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

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

Issue 509343002: Better typing and type verification (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Small refactoring Created 6 years, 2 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 | Annotate | Revision Log
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 "src/compiler/generic-algorithm.h" 7 #include "src/compiler/generic-algorithm.h"
8 #include "src/compiler/generic-node.h" 8 #include "src/compiler/generic-node.h"
9 #include "src/compiler/generic-node-inl.h" 9 #include "src/compiler/generic-node-inl.h"
10 #include "src/compiler/graph.h" 10 #include "src/compiler/graph.h"
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 177
178 if (!use_to_def_ || OperatorProperties::IsBasicBlockBegin(node->op()) || 178 if (!use_to_def_ || OperatorProperties::IsBasicBlockBegin(node->op()) ||
179 GetControlCluster(node) == NULL) { 179 GetControlCluster(node) == NULL) {
180 for (int j = OperatorProperties::GetControlInputCount(node->op()); j > 0; 180 for (int j = OperatorProperties::GetControlInputCount(node->op()); j > 0;
181 ++i, j--) { 181 ++i, j--) {
182 os_ << "|<I" << i.index() << ">C #" << (*i)->id(); 182 os_ << "|<I" << i.index() << ">C #" << (*i)->id();
183 } 183 }
184 } 184 }
185 os_ << "}"; 185 os_ << "}";
186 186
187 if (FLAG_trace_turbo_types && !NodeProperties::IsControl(node)) { 187 if (FLAG_trace_turbo_types && NodeProperties::IsTyped(node)) {
188 Bounds bounds = NodeProperties::GetBounds(node); 188 Bounds bounds = NodeProperties::GetBounds(node);
189 OStringStream upper; 189 OStringStream upper;
190 bounds.upper->PrintTo(upper); 190 bounds.upper->PrintTo(upper);
191 OStringStream lower; 191 OStringStream lower;
192 bounds.lower->PrintTo(lower); 192 bounds.lower->PrintTo(lower);
193 os_ << "|" << Escaped(upper) << "|" << Escaped(lower); 193 os_ << "|" << Escaped(upper) << "|" << Escaped(lower);
194 } 194 }
195 os_ << "}\"\n"; 195 os_ << "}\"\n";
196 } 196 }
197 197
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 262
263 263
264 OStream& operator<<(OStream& os, const AsDOT& ad) { 264 OStream& operator<<(OStream& os, const AsDOT& ad) {
265 Zone tmp_zone(ad.graph.zone()->isolate()); 265 Zone tmp_zone(ad.graph.zone()->isolate());
266 GraphVisualizer(os, &tmp_zone, &ad.graph).Print(); 266 GraphVisualizer(os, &tmp_zone, &ad.graph).Print();
267 return os; 267 return os;
268 } 268 }
269 } 269 }
270 } 270 }
271 } // namespace v8::internal::compiler 271 } // namespace v8::internal::compiler
OLDNEW
« no previous file with comments | « src/compiler/graph.cc ('k') | src/compiler/js-graph.h » ('j') | src/compiler/js-graph.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698