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/common-operator-reducer.h

Issue 1192063002: [turbofan] Improve interplay of ControlReducer and CommonOperatorReducer. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 6 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 | « no previous file | src/compiler/common-operator-reducer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/common-operator-reducer.h
diff --git a/src/compiler/common-operator-reducer.h b/src/compiler/common-operator-reducer.h
index 851971fac876a49c5d9d1296093e8f95df6a0778..5cf568e70b4258c900c2124b5c52f220788e8e7a 100644
--- a/src/compiler/common-operator-reducer.h
+++ b/src/compiler/common-operator-reducer.h
@@ -14,15 +14,20 @@ namespace compiler {
// Forward declarations.
class CommonOperatorBuilder;
class Graph;
-class JSGraph;
class MachineOperatorBuilder;
class Operator;
// Performs strength reduction on nodes that have common operators.
-class CommonOperatorReducer final : public Reducer {
+class CommonOperatorReducer final : public AdvancedReducer {
public:
- explicit CommonOperatorReducer(JSGraph* jsgraph) : jsgraph_(jsgraph) {}
+ CommonOperatorReducer(Editor* editor, Graph* graph,
+ CommonOperatorBuilder* common,
+ MachineOperatorBuilder* machine)
+ : AdvancedReducer(editor),
+ graph_(graph),
+ common_(common),
+ machine_(machine) {}
~CommonOperatorReducer() final {}
Reduction Reduce(Node* node) final;
@@ -35,12 +40,13 @@ class CommonOperatorReducer final : public Reducer {
Reduction Change(Node* node, Operator const* op, Node* a);
Reduction Change(Node* node, Operator const* op, Node* a, Node* b);
- CommonOperatorBuilder* common() const;
- Graph* graph() const;
- JSGraph* jsgraph() const { return jsgraph_; }
- MachineOperatorBuilder* machine() const;
+ Graph* graph() const { return graph_; }
+ CommonOperatorBuilder* common() const { return common_; }
+ MachineOperatorBuilder* machine() const { return machine_; }
- JSGraph* const jsgraph_;
+ Graph* const graph_;
+ CommonOperatorBuilder* const common_;
+ MachineOperatorBuilder* const machine_;
};
} // namespace compiler
« no previous file with comments | « no previous file | src/compiler/common-operator-reducer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698