Chromium Code Reviews| 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 49 // out-of-line indexed by the Node's id. | 49 // out-of-line indexed by the Node's id. |
| 50 class Node FINAL : public GenericNode<NodeData, Node> { | 50 class Node FINAL : public GenericNode<NodeData, Node> { |
| 51 public: | 51 public: |
| 52 Node(GenericGraphBase* graph, int input_count) | 52 Node(GenericGraphBase* graph, int input_count) |
| 53 : GenericNode<NodeData, Node>(graph, input_count) {} | 53 : GenericNode<NodeData, Node>(graph, input_count) {} |
| 54 | 54 |
| 55 void Initialize(const Operator* op) { set_op(op); } | 55 void Initialize(const Operator* op) { set_op(op); } |
| 56 void Kill(); | 56 void Kill(); |
| 57 | 57 |
| 58 void CollectProjections(ZoneVector<Node*>* projections); | 58 void CollectProjections(ZoneVector<Node*>* projections); |
| 59 Node* FindProjection(int32_t projection_index); | 59 Node* FindProjection(int projection_index); |
|
titzer
2014/09/05 10:26:08
Can we move the changes to the Projection's static
Benedikt Meurer
2014/09/05 10:50:49
Done.
| |
| 60 }; | 60 }; |
| 61 | 61 |
| 62 OStream& operator<<(OStream& os, const Node& n); | 62 OStream& operator<<(OStream& os, const Node& n); |
| 63 | 63 |
| 64 typedef GenericGraphVisit::NullNodeVisitor<NodeData, Node> NullNodeVisitor; | 64 typedef GenericGraphVisit::NullNodeVisitor<NodeData, Node> NullNodeVisitor; |
| 65 | 65 |
| 66 typedef std::set<Node*, std::less<Node*>, zone_allocator<Node*> > NodeSet; | 66 typedef std::set<Node*, std::less<Node*>, zone_allocator<Node*> > NodeSet; |
| 67 typedef NodeSet::iterator NodeSetIter; | 67 typedef NodeSet::iterator NodeSetIter; |
| 68 typedef NodeSet::reverse_iterator NodeSetRIter; | 68 typedef NodeSet::reverse_iterator NodeSetRIter; |
| 69 | 69 |
| (...skipping 12 matching lines...) Expand all Loading... | |
| 82 template <typename T> | 82 template <typename T> |
| 83 static inline T OpParameter(const Node* node) { | 83 static inline T OpParameter(const Node* node) { |
| 84 return OpParameter<T>(node->op()); | 84 return OpParameter<T>(node->op()); |
| 85 } | 85 } |
| 86 | 86 |
| 87 } // namespace compiler | 87 } // namespace compiler |
| 88 } // namespace internal | 88 } // namespace internal |
| 89 } // namespace v8 | 89 } // namespace v8 |
| 90 | 90 |
| 91 #endif // V8_COMPILER_NODE_H_ | 91 #endif // V8_COMPILER_NODE_H_ |
| OLD | NEW |