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

Unified Diff: src/compiler/node.h

Issue 540253003: [turbofan] Nodes are killed by resetting all their inputs to zero. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Nit Created 6 years, 3 months 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 | « src/compiler/graph-reducer-unittest.cc ('k') | src/compiler/node.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/node.h
diff --git a/src/compiler/node.h b/src/compiler/node.h
index d8a44939f389d322e0a0708d05d767aaabe102f0..ac2f332210b00c4e08a6e6529652fd78d65272c2 100644
--- a/src/compiler/node.h
+++ b/src/compiler/node.h
@@ -53,6 +53,8 @@ class Node FINAL : public GenericNode<NodeData, Node> {
: GenericNode<NodeData, Node>(graph, input_count) {}
void Initialize(const Operator* op) { set_op(op); }
+
+ bool IsDead() const { return InputCount() > 0 && InputAt(0) == NULL; }
void Kill();
void CollectProjections(ZoneVector<Node*>* projections);
« no previous file with comments | « src/compiler/graph-reducer-unittest.cc ('k') | src/compiler/node.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698