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_GRAPH_H_ | 5 #ifndef V8_COMPILER_GRAPH_H_ |
6 #define V8_COMPILER_GRAPH_H_ | 6 #define V8_COMPILER_GRAPH_H_ |
7 | 7 |
8 #include "src/zone.h" | 8 #include "src/zone.h" |
9 #include "src/zone-containers.h" | 9 #include "src/zone-containers.h" |
10 | 10 |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 Node* NewNode(const Operator* op, Node* n1, Node* n2, Node* n3, Node* n4, | 67 Node* NewNode(const Operator* op, Node* n1, Node* n2, Node* n3, Node* n4, |
68 Node* n5, Node* n6, Node* n7) { | 68 Node* n5, Node* n6, Node* n7) { |
69 Node* nodes[] = {n1, n2, n3, n4, n5, n6, n7}; | 69 Node* nodes[] = {n1, n2, n3, n4, n5, n6, n7}; |
70 return NewNode(op, arraysize(nodes), nodes); | 70 return NewNode(op, arraysize(nodes), nodes); |
71 } | 71 } |
72 Node* NewNode(const Operator* op, Node* n1, Node* n2, Node* n3, Node* n4, | 72 Node* NewNode(const Operator* op, Node* n1, Node* n2, Node* n3, Node* n4, |
73 Node* n5, Node* n6, Node* n7, Node* n8) { | 73 Node* n5, Node* n6, Node* n7, Node* n8) { |
74 Node* nodes[] = {n1, n2, n3, n4, n5, n6, n7, n8}; | 74 Node* nodes[] = {n1, n2, n3, n4, n5, n6, n7, n8}; |
75 return NewNode(op, arraysize(nodes), nodes); | 75 return NewNode(op, arraysize(nodes), nodes); |
76 } | 76 } |
| 77 Node* NewNode(const Operator* op, Node* n1, Node* n2, Node* n3, Node* n4, |
| 78 Node* n5, Node* n6, Node* n7, Node* n8, Node* n9) { |
| 79 Node* nodes[] = {n1, n2, n3, n4, n5, n6, n7, n8, n9}; |
| 80 return NewNode(op, arraysize(nodes), nodes); |
| 81 } |
77 | 82 |
78 template <class Visitor> | 83 template <class Visitor> |
79 inline void VisitNodeInputsFromEnd(Visitor* visitor); | 84 inline void VisitNodeInputsFromEnd(Visitor* visitor); |
80 | 85 |
81 Zone* zone() const { return zone_; } | 86 Zone* zone() const { return zone_; } |
82 Node* start() const { return start_; } | 87 Node* start() const { return start_; } |
83 Node* end() const { return end_; } | 88 Node* end() const { return end_; } |
84 | 89 |
85 void SetStart(Node* start) { start_ = start; } | 90 void SetStart(Node* start) { start_ = start; } |
86 void SetEnd(Node* end) { end_ = end; } | 91 void SetEnd(Node* end) { end_ = end; } |
(...skipping 26 matching lines...) Expand all Loading... |
113 public: | 118 public: |
114 virtual ~GraphDecorator() {} | 119 virtual ~GraphDecorator() {} |
115 virtual void Decorate(Node* node, bool incomplete) = 0; | 120 virtual void Decorate(Node* node, bool incomplete) = 0; |
116 }; | 121 }; |
117 | 122 |
118 } // namespace compiler | 123 } // namespace compiler |
119 } // namespace internal | 124 } // namespace internal |
120 } // namespace v8 | 125 } // namespace v8 |
121 | 126 |
122 #endif // V8_COMPILER_GRAPH_H_ | 127 #endif // V8_COMPILER_GRAPH_H_ |
OLD | NEW |