Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(115)

Unified Diff: src/compiler/graph.h

Issue 797903003: [turbofan] Various cleanups. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/compiler/js-builtin-reducer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_; }
« no previous file with comments | « no previous file | src/compiler/js-builtin-reducer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698