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/compiler/generic-algorithm.h" | 10 #include "src/compiler/generic-algorithm.h" |
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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 |
OLD | NEW |