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

Unified Diff: src/compiler/node.cc

Issue 541643002: [turbofan] Properly delete nodes in the GraphReducer. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Kill 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/node.h ('k') | test/cctest/compiler/test-graph-reducer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/node.cc
diff --git a/src/compiler/node.cc b/src/compiler/node.cc
index dcb3bfe9e34e38f72ae6bbbb36ff9c5540027ca9..8e5c0df215449c78ad48d906d8752ddab33eda4a 100644
--- a/src/compiler/node.cc
+++ b/src/compiler/node.cc
@@ -10,6 +10,14 @@ namespace v8 {
namespace internal {
namespace compiler {
+void Node::Kill() {
+ DCHECK_NOT_NULL(op());
+ RemoveAllInputs();
+ DCHECK(uses().empty());
+ set_op(NULL);
+}
+
+
void Node::CollectProjections(NodeVector* projections) {
for (size_t i = 0; i < projections->size(); i++) {
(*projections)[i] = NULL;
« no previous file with comments | « src/compiler/node.h ('k') | test/cctest/compiler/test-graph-reducer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698