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 |