Index: src/compiler/graph.h |
diff --git a/src/compiler/graph.h b/src/compiler/graph.h |
index e59cc8870fb8aac19132fd019c6bff0d7882d6ac..07eb02f9c99bfa26d11485055b6ea62e717439e5 100644 |
--- a/src/compiler/graph.h |
+++ b/src/compiler/graph.h |
@@ -25,39 +25,36 @@ class Graph : public GenericGraph<Node> { |
explicit Graph(Zone* zone); |
// Base implementation used by all factory methods. |
- Node* NewNode(Operator* op, int input_count, Node** inputs); |
+ Node* NewNode(const Operator* op, int input_count, Node** inputs); |
// Factories for nodes with static input counts. |
- Node* NewNode(Operator* op) { |
+ Node* NewNode(const Operator* op) { |
return NewNode(op, 0, static_cast<Node**>(NULL)); |
} |
- Node* NewNode(Operator* op, Node* n1) { return NewNode(op, 1, &n1); } |
- Node* NewNode(Operator* op, Node* n1, Node* n2) { |
+ Node* NewNode(const Operator* op, Node* n1) { return NewNode(op, 1, &n1); } |
+ Node* NewNode(const Operator* op, Node* n1, Node* n2) { |
Node* nodes[] = {n1, n2}; |
return NewNode(op, arraysize(nodes), nodes); |
} |
- Node* NewNode(Operator* op, Node* n1, Node* n2, Node* n3) { |
+ Node* NewNode(const Operator* op, Node* n1, Node* n2, Node* n3) { |
Node* nodes[] = {n1, n2, n3}; |
return NewNode(op, arraysize(nodes), nodes); |
} |
- Node* NewNode(Operator* op, Node* n1, Node* n2, Node* n3, Node* n4) { |
+ Node* NewNode(const Operator* op, Node* n1, Node* n2, Node* n3, Node* n4) { |
Node* nodes[] = {n1, n2, n3, n4}; |
return NewNode(op, arraysize(nodes), nodes); |
} |
- Node* NewNode(Operator* op, Node* n1, Node* n2, Node* n3, Node* n4, |
+ Node* NewNode(const Operator* op, Node* n1, Node* n2, Node* n3, Node* n4, |
Node* n5) { |
Node* nodes[] = {n1, n2, n3, n4, n5}; |
return NewNode(op, arraysize(nodes), nodes); |
} |
- Node* NewNode(Operator* op, Node* n1, Node* n2, Node* n3, Node* n4, Node* n5, |
- Node* n6) { |
+ Node* NewNode(const Operator* op, Node* n1, Node* n2, Node* n3, Node* n4, |
+ Node* n5, Node* n6) { |
Node* nodes[] = {n1, n2, n3, n4, n5, n6}; |
return NewNode(op, arraysize(nodes), nodes); |
} |
- void ChangeOperator(Node* node, Operator* op); |
- void DeleteNode(Node* node); |
- |
template <class Visitor> |
void VisitNodeUsesFrom(Node* node, Visitor* visitor); |
@@ -88,8 +85,9 @@ class GraphDecorator : public ZoneObject { |
virtual ~GraphDecorator() {} |
virtual void Decorate(Node* node) = 0; |
}; |
-} |
-} |
-} // namespace v8::internal::compiler |
+ |
+} // namespace compiler |
+} // namespace internal |
+} // namespace v8 |
#endif // V8_COMPILER_GRAPH_H_ |