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

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

Issue 658543002: Better typing and type verification (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comments 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
« no previous file with comments | « src/compiler/graph-builder.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/compiler/generic-algorithm.h" 10 #include "src/compiler/generic-algorithm.h"
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 292
293 if (!use_to_def_ || OperatorProperties::IsBasicBlockBegin(node->op()) || 293 if (!use_to_def_ || OperatorProperties::IsBasicBlockBegin(node->op()) ||
294 GetControlCluster(node) == NULL) { 294 GetControlCluster(node) == NULL) {
295 for (int j = OperatorProperties::GetControlInputCount(node->op()); j > 0; 295 for (int j = OperatorProperties::GetControlInputCount(node->op()); j > 0;
296 ++i, j--) { 296 ++i, j--) {
297 os_ << "|<I" << i.index() << ">C #" << (*i)->id(); 297 os_ << "|<I" << i.index() << ">C #" << (*i)->id();
298 } 298 }
299 } 299 }
300 os_ << "}"; 300 os_ << "}";
301 301
302 if (FLAG_trace_turbo_types && !NodeProperties::IsControl(node)) { 302 if (FLAG_trace_turbo_types && NodeProperties::IsTyped(node)) {
303 Bounds bounds = NodeProperties::GetBounds(node); 303 Bounds bounds = NodeProperties::GetBounds(node);
304 std::ostringstream upper; 304 std::ostringstream upper;
305 bounds.upper->PrintTo(upper); 305 bounds.upper->PrintTo(upper);
306 std::ostringstream lower; 306 std::ostringstream lower;
307 bounds.lower->PrintTo(lower); 307 bounds.lower->PrintTo(lower);
308 os_ << "|" << Escaped(upper) << "|" << Escaped(lower); 308 os_ << "|" << Escaped(upper) << "|" << Escaped(lower);
309 } 309 }
310 os_ << "}\"\n"; 310 os_ << "}\"\n";
311 } 311 }
312 312
(...skipping 464 matching lines...) Expand 10 before | Expand all | Expand 10 after
777 777
778 778
779 std::ostream& operator<<(std::ostream& os, const AsC1VAllocator& ac) { 779 std::ostream& operator<<(std::ostream& os, const AsC1VAllocator& ac) {
780 Zone tmp_zone(ac.allocator_->code()->zone()->isolate()); 780 Zone tmp_zone(ac.allocator_->code()->zone()->isolate());
781 GraphC1Visualizer(os, &tmp_zone).PrintAllocator(ac.phase_, ac.allocator_); 781 GraphC1Visualizer(os, &tmp_zone).PrintAllocator(ac.phase_, ac.allocator_);
782 return os; 782 return os;
783 } 783 }
784 } 784 }
785 } 785 }
786 } // namespace v8::internal::compiler 786 } // namespace v8::internal::compiler
OLDNEW
« no previous file with comments | « src/compiler/graph-builder.cc ('k') | src/compiler/js-graph.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698