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 #ifndef V8_COMPILER_NODE_H_ | 5 #ifndef V8_COMPILER_NODE_H_ |
6 #define V8_COMPILER_NODE_H_ | 6 #define V8_COMPILER_NODE_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <set> | 9 #include <set> |
10 #include <vector> | 10 #include <vector> |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 OStream& operator<<(OStream& os, const Node& n); | 64 OStream& operator<<(OStream& os, const Node& n); |
65 | 65 |
66 typedef GenericGraphVisit::NullNodeVisitor<NodeData, Node> NullNodeVisitor; | 66 typedef GenericGraphVisit::NullNodeVisitor<NodeData, Node> NullNodeVisitor; |
67 | 67 |
68 typedef std::set<Node*, std::less<Node*>, zone_allocator<Node*> > NodeSet; | 68 typedef std::set<Node*, std::less<Node*>, zone_allocator<Node*> > NodeSet; |
69 typedef NodeSet::iterator NodeSetIter; | 69 typedef NodeSet::iterator NodeSetIter; |
70 typedef NodeSet::reverse_iterator NodeSetRIter; | 70 typedef NodeSet::reverse_iterator NodeSetRIter; |
71 | 71 |
72 typedef ZoneVector<Node*> NodeVector; | 72 typedef ZoneVector<Node*> NodeVector; |
73 typedef NodeVector::iterator NodeVectorIter; | 73 typedef NodeVector::iterator NodeVectorIter; |
74 typedef NodeVector::const_iterator NodeVectorConstIter; | |
75 typedef NodeVector::reverse_iterator NodeVectorRIter; | 74 typedef NodeVector::reverse_iterator NodeVectorRIter; |
76 | 75 |
77 typedef ZoneVector<NodeVector> NodeVectorVector; | 76 typedef ZoneVector<NodeVector> NodeVectorVector; |
78 typedef NodeVectorVector::iterator NodeVectorVectorIter; | 77 typedef NodeVectorVector::iterator NodeVectorVectorIter; |
79 typedef NodeVectorVector::reverse_iterator NodeVectorVectorRIter; | 78 typedef NodeVectorVector::reverse_iterator NodeVectorVectorRIter; |
80 | 79 |
81 typedef Node::Uses::iterator UseIter; | 80 typedef Node::Uses::iterator UseIter; |
82 typedef Node::Inputs::iterator InputIter; | 81 typedef Node::Inputs::iterator InputIter; |
83 | 82 |
84 // Helper to extract parameters from Operator1<*> nodes. | 83 // Helper to extract parameters from Operator1<*> nodes. |
85 template <typename T> | 84 template <typename T> |
86 static inline const T& OpParameter(const Node* node) { | 85 static inline const T& OpParameter(const Node* node) { |
87 return OpParameter<T>(node->op()); | 86 return OpParameter<T>(node->op()); |
88 } | 87 } |
89 | 88 |
90 } // namespace compiler | 89 } // namespace compiler |
91 } // namespace internal | 90 } // namespace internal |
92 } // namespace v8 | 91 } // namespace v8 |
93 | 92 |
94 #endif // V8_COMPILER_NODE_H_ | 93 #endif // V8_COMPILER_NODE_H_ |
OLD | NEW |