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

Unified Diff: src/compiler/js-graph.h

Issue 929123002: Move DeadControl into the JSGraph so that it can be reused. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 10 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/control-reducer.cc ('k') | src/compiler/js-graph.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/js-graph.h
diff --git a/src/compiler/js-graph.h b/src/compiler/js-graph.h
index 761b0dffe1bc6dd4ebee68ad9206d4fef464bdbc..fe9b9f7b7ccdd0aa8e7e436128c64a3ea1d399f5 100644
--- a/src/compiler/js-graph.h
+++ b/src/compiler/js-graph.h
@@ -114,6 +114,9 @@ class JSGraph : public ZoneObject {
// cannot deopt.
Node* EmptyFrameState();
+ // Create a control node that serves as control dependency for dead nodes.
+ Node* DeadControl();
+
JSOperatorBuilder* javascript() const { return javascript_; }
CommonOperatorBuilder* common() const { return common_; }
MachineOperatorBuilder* machine() const { return machine_; }
@@ -142,6 +145,7 @@ class JSGraph : public ZoneObject {
SetOncePointer<Node> one_constant_;
SetOncePointer<Node> nan_constant_;
SetOncePointer<Node> empty_frame_state_;
+ SetOncePointer<Node> dead_control_;
CommonNodeCache cache_;
« no previous file with comments | « src/compiler/control-reducer.cc ('k') | src/compiler/js-graph.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698