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 "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 Loading... |
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 Loading... |
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 |
OLD | NEW |