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

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

Issue 727743002: Revert "[turbofan] Smartify the GraphReducer." (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 6 years, 1 month 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 | « no previous file | src/compiler/graph-reducer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/graph-reducer.h
diff --git a/src/compiler/graph-reducer.h b/src/compiler/graph-reducer.h
index d54c3186c045c7197526c5fa7ddf4dbca1bb7f33..e0e4f7a3d30b14b53f246efe8b3f5d221be17052 100644
--- a/src/compiler/graph-reducer.h
+++ b/src/compiler/graph-reducer.h
@@ -55,39 +55,20 @@ class Reducer {
// Performs an iterative reduction of a node graph.
class GraphReducer FINAL {
public:
- GraphReducer(Graph* graph, Zone* zone);
+ explicit GraphReducer(Graph* graph);
Graph* graph() const { return graph_; }
- void AddReducer(Reducer* reducer);
+ void AddReducer(Reducer* reducer) { reducers_.push_back(reducer); }
// Reduce a single node.
- void ReduceNode(Node* const);
+ void ReduceNode(Node* node);
// Reduce the whole graph.
void ReduceGraph();
private:
- enum class State : uint8_t;
-
- // Reduce a single node.
- Reduction Reduce(Node* const);
- // Reduce the node on top of the stack.
- void ReduceTop();
-
- // Node stack operations.
- void Pop();
- void Push(Node* const);
- Node* Top() const;
-
- // Revisit queue operations.
- bool Recurse(Node* const);
- void Revisit(Node* const);
-
Graph* graph_;
ZoneVector<Reducer*> reducers_;
- ZoneStack<Node*> revisit_;
- ZoneStack<Node*> stack_;
- ZoneDeque<State> state_;
DISALLOW_COPY_AND_ASSIGN(GraphReducer);
};
« no previous file with comments | « no previous file | src/compiler/graph-reducer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698