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

Unified Diff: src/data-flow.h

Issue 1530003: Rework flow graph construction. (Closed)
Patch Set: Created 10 years, 9 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.cc ('k') | src/data-flow.cc » ('j') | src/data-flow.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/data-flow.h
diff --git a/src/data-flow.h b/src/data-flow.h
index 66df63514ecf811aefe6bf3ab88e346d81c7a6b6..079da65b4d9aaa9c328799288a3559d6e397cd74 100644
--- a/src/data-flow.h
+++ b/src/data-flow.h
@@ -272,65 +272,6 @@ class AssignedVariablesAnalyzer : public AstVisitor {
};
-class ReachingDefinitions BASE_EMBEDDED {
- public:
- ReachingDefinitions(ZoneList<Node*>* postorder,
- ZoneList<Expression*>* body_definitions,
- int variable_count)
- : postorder_(postorder),
- body_definitions_(body_definitions),
- variable_count_(variable_count) {
- }
-
- static int IndexFor(Variable* var, int variable_count);
-
- void Compute();
-
- private:
- // A (postorder) list of flow-graph nodes in the body.
- ZoneList<Node*>* postorder_;
-
- // A list of all the definitions in the body.
- ZoneList<Expression*>* body_definitions_;
-
- int variable_count_;
-
- DISALLOW_COPY_AND_ASSIGN(ReachingDefinitions);
-};
-
-
-class TypeAnalyzer BASE_EMBEDDED {
- public:
- TypeAnalyzer(ZoneList<Node*>* postorder,
- ZoneList<Expression*>* body_definitions,
- int variable_count,
- int param_count)
- : postorder_(postorder),
- body_definitions_(body_definitions),
- variable_count_(variable_count),
- param_count_(param_count) {}
-
- void Compute();
-
- private:
- // Get the primitity of definition number i. Definitions are numbered
- // by the flow graph builder.
- bool IsPrimitiveDef(int def_num);
-
- ZoneList<Node*>* postorder_;
- ZoneList<Expression*>* body_definitions_;
- int variable_count_;
- int param_count_;
-
- DISALLOW_COPY_AND_ASSIGN(TypeAnalyzer);
-};
-
-
-void MarkLiveCode(ZoneList<Node*>* nodes,
- ZoneList<Expression*>* body_definitions,
- int variable_count);
-
-
} } // namespace v8::internal
« no previous file with comments | « src/compiler.cc ('k') | src/data-flow.cc » ('j') | src/data-flow.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698