| 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 Node* NewNode(const Operator* op, Node* n1, Node* n2, Node* n3, Node* n4, | 62 Node* NewNode(const Operator* op, Node* n1, Node* n2, Node* n3, Node* n4, |
| 63 Node* n5, Node* n6) { | 63 Node* n5, Node* n6) { |
| 64 Node* nodes[] = {n1, n2, n3, n4, n5, n6}; | 64 Node* nodes[] = {n1, n2, n3, n4, n5, n6}; |
| 65 return NewNode(op, arraysize(nodes), nodes); | 65 return NewNode(op, arraysize(nodes), nodes); |
| 66 } | 66 } |
| 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, |
| 73 Node* n5, Node* n6, Node* n7, Node* n8) { |
| 74 Node* nodes[] = {n1, n2, n3, n4, n5, n6, n7, n8}; |
| 75 return NewNode(op, arraysize(nodes), nodes); |
| 76 } |
| 72 | 77 |
| 73 template <class Visitor> | 78 template <class Visitor> |
| 74 inline void VisitNodeInputsFromEnd(Visitor* visitor); | 79 inline void VisitNodeInputsFromEnd(Visitor* visitor); |
| 75 | 80 |
| 76 Zone* zone() const { return zone_; } | 81 Zone* zone() const { return zone_; } |
| 77 Node* start() const { return start_; } | 82 Node* start() const { return start_; } |
| 78 Node* end() const { return end_; } | 83 Node* end() const { return end_; } |
| 79 | 84 |
| 80 void SetStart(Node* start) { start_ = start; } | 85 void SetStart(Node* start) { start_ = start; } |
| 81 void SetEnd(Node* end) { end_ = end; } | 86 void SetEnd(Node* end) { end_ = end; } |
| (...skipping 26 matching lines...) Expand all Loading... |
| 108 public: | 113 public: |
| 109 virtual ~GraphDecorator() {} | 114 virtual ~GraphDecorator() {} |
| 110 virtual void Decorate(Node* node, bool incomplete) = 0; | 115 virtual void Decorate(Node* node, bool incomplete) = 0; |
| 111 }; | 116 }; |
| 112 | 117 |
| 113 } // namespace compiler | 118 } // namespace compiler |
| 114 } // namespace internal | 119 } // namespace internal |
| 115 } // namespace v8 | 120 } // namespace v8 |
| 116 | 121 |
| 117 #endif // V8_COMPILER_GRAPH_H_ | 122 #endif // V8_COMPILER_GRAPH_H_ |
| OLD | NEW |