Index: src/compiler/graph.h |
diff --git a/src/compiler/graph.h b/src/compiler/graph.h |
index 7b38035a9ca7f86b4a030433805244dcd4a64ca4..d619da252fa3fea0dc52122ec5106db4cfd3a8ff 100644 |
--- a/src/compiler/graph.h |
+++ b/src/compiler/graph.h |
@@ -16,8 +16,10 @@ namespace v8 { |
namespace internal { |
namespace compiler { |
+// Forward declarations. |
class GraphDecorator; |
+ |
class Graph : public ZoneObject { |
public: |
explicit Graph(Zone* zone); |
@@ -28,7 +30,7 @@ class Graph : public ZoneObject { |
// Factories for nodes with static input counts. |
Node* NewNode(const Operator* op) { |
- return NewNode(op, 0, static_cast<Node**>(NULL)); |
+ return NewNode(op, 0, static_cast<Node**>(nullptr)); |
} |
Node* NewNode(const Operator* op, Node* n1) { return NewNode(op, 1, &n1); } |
Node* NewNode(const Operator* op, Node* n1, Node* n2) { |
@@ -60,7 +62,7 @@ class Graph : public ZoneObject { |
} |
template <class Visitor> |
- void VisitNodeInputsFromEnd(Visitor* visitor); |
+ inline void VisitNodeInputsFromEnd(Visitor* visitor); |
Zone* zone() const { return zone_; } |
Node* start() const { return start_; } |