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/node.h" | 5 #include "src/compiler/node.h" |
6 #include "src/compiler/node-properties.h" | 6 #include "src/compiler/node-properties.h" |
7 #include "src/compiler/node-properties-inl.h" | 7 #include "src/compiler/node-properties-inl.h" |
8 #include "src/compiler/schedule.h" | 8 #include "src/compiler/schedule.h" |
9 #include "src/ostreams.h" | 9 #include "src/ostreams.h" |
10 | 10 |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 j != predecessors.end(); ++j) { | 47 j != predecessors.end(); ++j) { |
48 if (comma) os << ", "; | 48 if (comma) os << ", "; |
49 comma = true; | 49 comma = true; |
50 os << "B" << (*j)->id(); | 50 os << "B" << (*j)->id(); |
51 } | 51 } |
52 os << " ---\n"; | 52 os << " ---\n"; |
53 for (BasicBlock::const_iterator j = block->begin(); j != block->end(); | 53 for (BasicBlock::const_iterator j = block->begin(); j != block->end(); |
54 ++j) { | 54 ++j) { |
55 Node* node = *j; | 55 Node* node = *j; |
56 os << " " << *node; | 56 os << " " << *node; |
57 if (!NodeProperties::IsControl(node)) { | 57 if (NodeProperties::IsTyped(node)) { |
58 Bounds bounds = NodeProperties::GetBounds(node); | 58 Bounds bounds = NodeProperties::GetBounds(node); |
59 os << " : "; | 59 os << " : "; |
60 bounds.lower->PrintTo(os); | 60 bounds.lower->PrintTo(os); |
61 if (!bounds.upper->Is(bounds.lower)) { | 61 if (!bounds.upper->Is(bounds.lower)) { |
62 os << ".."; | 62 os << ".."; |
63 bounds.upper->PrintTo(os); | 63 bounds.upper->PrintTo(os); |
64 } | 64 } |
65 } | 65 } |
66 os << "\n"; | 66 os << "\n"; |
67 } | 67 } |
(...skipping 15 matching lines...) Expand all Loading... |
83 os << "B" << (*j)->id(); | 83 os << "B" << (*j)->id(); |
84 } | 84 } |
85 os << "\n"; | 85 os << "\n"; |
86 } | 86 } |
87 } | 87 } |
88 return os; | 88 return os; |
89 } | 89 } |
90 } // namespace compiler | 90 } // namespace compiler |
91 } // namespace internal | 91 } // namespace internal |
92 } // namespace v8 | 92 } // namespace v8 |
OLD | NEW |