| 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/base/compiler-specific.h" | 8 #include "src/base/compiler-specific.h" |
| 9 #include "src/globals.h" | 9 #include "src/globals.h" |
| 10 #include "src/zone/zone-containers.h" | 10 #include "src/zone/zone-containers.h" |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 Node* NewNode(const Operator* op, Node* n1, Node* n2, Node* n3, Node* n4, | 97 Node* NewNode(const Operator* op, Node* n1, Node* n2, Node* n3, Node* n4, |
| 98 Node* n5, Node* n6, Node* n7, Node* n8) { | 98 Node* n5, Node* n6, Node* n7, Node* n8) { |
| 99 Node* nodes[] = {n1, n2, n3, n4, n5, n6, n7, n8}; | 99 Node* nodes[] = {n1, n2, n3, n4, n5, n6, n7, n8}; |
| 100 return NewNode(op, arraysize(nodes), nodes); | 100 return NewNode(op, arraysize(nodes), nodes); |
| 101 } | 101 } |
| 102 Node* NewNode(const Operator* op, Node* n1, Node* n2, Node* n3, Node* n4, | 102 Node* NewNode(const Operator* op, Node* n1, Node* n2, Node* n3, Node* n4, |
| 103 Node* n5, Node* n6, Node* n7, Node* n8, Node* n9) { | 103 Node* n5, Node* n6, Node* n7, Node* n8, Node* n9) { |
| 104 Node* nodes[] = {n1, n2, n3, n4, n5, n6, n7, n8, n9}; | 104 Node* nodes[] = {n1, n2, n3, n4, n5, n6, n7, n8, n9}; |
| 105 return NewNode(op, arraysize(nodes), nodes); | 105 return NewNode(op, arraysize(nodes), nodes); |
| 106 } | 106 } |
| 107 Node* NewNode(const Operator* op, Node* n1, Node* n2, Node* n3, Node* n4, |
| 108 Node* n5, Node* n6, Node* n7, Node* n8, Node* n9, Node* n10) { |
| 109 Node* nodes[] = {n1, n2, n3, n4, n5, n6, n7, n8, n9, n10}; |
| 110 return NewNode(op, arraysize(nodes), nodes); |
| 111 } |
| 112 Node* NewNode(const Operator* op, Node* n1, Node* n2, Node* n3, Node* n4, |
| 113 Node* n5, Node* n6, Node* n7, Node* n8, Node* n9, Node* n10, |
| 114 Node* n11) { |
| 115 Node* nodes[] = {n1, n2, n3, n4, n5, n6, n7, n8, n9, n10, n11}; |
| 116 return NewNode(op, arraysize(nodes), nodes); |
| 117 } |
| 107 | 118 |
| 108 // Clone the {node}, and assign a new node id to the copy. | 119 // Clone the {node}, and assign a new node id to the copy. |
| 109 Node* CloneNode(const Node* node); | 120 Node* CloneNode(const Node* node); |
| 110 | 121 |
| 111 Zone* zone() const { return zone_; } | 122 Zone* zone() const { return zone_; } |
| 112 Node* start() const { return start_; } | 123 Node* start() const { return start_; } |
| 113 Node* end() const { return end_; } | 124 Node* end() const { return end_; } |
| 114 | 125 |
| 115 void SetStart(Node* start) { start_ = start; } | 126 void SetStart(Node* start) { start_ = start; } |
| 116 void SetEnd(Node* end) { end_ = end; } | 127 void SetEnd(Node* end) { end_ = end; } |
| (...skipping 29 matching lines...) Expand all Loading... |
| 146 public: | 157 public: |
| 147 virtual ~GraphDecorator() {} | 158 virtual ~GraphDecorator() {} |
| 148 virtual void Decorate(Node* node) = 0; | 159 virtual void Decorate(Node* node) = 0; |
| 149 }; | 160 }; |
| 150 | 161 |
| 151 } // namespace compiler | 162 } // namespace compiler |
| 152 } // namespace internal | 163 } // namespace internal |
| 153 } // namespace v8 | 164 } // namespace v8 |
| 154 | 165 |
| 155 #endif // V8_COMPILER_GRAPH_H_ | 166 #endif // V8_COMPILER_GRAPH_H_ |
| OLD | NEW |