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

Unified Diff: src/compiler/node-properties.h

Issue 935033004: Introduce and test NodeProperties::CollectControlProjections. (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-flow-optimizer.cc ('k') | src/compiler/node-properties.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/node-properties.h
diff --git a/src/compiler/node-properties.h b/src/compiler/node-properties.h
index b40faf39d407916c48501dc0d5d7dfe3ad92ed99..a13eea3a02d550840d58f05249aaee8bc98fc48a 100644
--- a/src/compiler/node-properties.h
+++ b/src/compiler/node-properties.h
@@ -90,6 +90,12 @@ class NodeProperties FINAL {
static Node* FindProjection(Node* node, size_t projection_index);
+ // Collect the branch-related projections from a node, such as IfTrue,
+ // IfFalse, IfValue and IfDefault.
+ // - Branch: [ IfTrue, IfFalse ]
+ // - Switch: [ IfValue, ..., IfDefault ]
+ static void CollectControlProjections(Node* node, Node** proj, size_t count);
+
// ---------------------------------------------------------------------------
// Type Bounds.
« no previous file with comments | « src/compiler/control-flow-optimizer.cc ('k') | src/compiler/node-properties.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698