| Index: src/compiler/binary-operator-reducer.h
|
| diff --git a/src/compiler/common-operator-reducer.h b/src/compiler/binary-operator-reducer.h
|
| similarity index 63%
|
| copy from src/compiler/common-operator-reducer.h
|
| copy to src/compiler/binary-operator-reducer.h
|
| index 7184755885dab4ed0407ce1be1194337f84fb03d..fd0d381c30e13da9ee4b0c643654db9622aa287c 100644
|
| --- a/src/compiler/common-operator-reducer.h
|
| +++ b/src/compiler/binary-operator-reducer.h
|
| @@ -2,8 +2,8 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#ifndef V8_COMPILER_COMMON_OPERATOR_REDUCER_H_
|
| -#define V8_COMPILER_COMMON_OPERATOR_REDUCER_H_
|
| +#ifndef V8_COMPILER_BINARY_OPERATOR_REDUCER_H_
|
| +#define V8_COMPILER_BINARY_OPERATOR_REDUCER_H_
|
|
|
| #include "src/compiler/graph-reducer.h"
|
|
|
| @@ -19,26 +19,20 @@ class Operator;
|
|
|
|
|
| // Performs strength reduction on nodes that have common operators.
|
| -class CommonOperatorReducer final : public AdvancedReducer {
|
| +class BinaryOperatorReducer final : public AdvancedReducer {
|
| public:
|
| - CommonOperatorReducer(Editor* editor, Graph* graph,
|
| + BinaryOperatorReducer(Editor* editor, Graph* graph,
|
| CommonOperatorBuilder* common,
|
| MachineOperatorBuilder* machine);
|
| - ~CommonOperatorReducer() final {}
|
| + ~BinaryOperatorReducer() final {}
|
|
|
| Reduction Reduce(Node* node) final;
|
|
|
| private:
|
| - Reduction ReduceBranch(Node* node);
|
| - Reduction ReduceMerge(Node* node);
|
| - Reduction ReduceEffectPhi(Node* node);
|
| - Reduction ReducePhi(Node* node);
|
| - Reduction ReduceReturn(Node* node);
|
| - Reduction ReduceSelect(Node* node);
|
| - Reduction ReduceGuard(Node* node);
|
| + Reduction ReduceFloat52Mul(Node* node);
|
| + Reduction ReduceFloat52Div(Node* node);
|
|
|
| Reduction Change(Node* node, Operator const* op, Node* a);
|
| - Reduction Change(Node* node, Operator const* op, Node* a, Node* b);
|
|
|
| Graph* graph() const { return graph_; }
|
| CommonOperatorBuilder* common() const { return common_; }
|
| @@ -55,4 +49,4 @@ class CommonOperatorReducer final : public AdvancedReducer {
|
| } // namespace internal
|
| } // namespace v8
|
|
|
| -#endif // V8_COMPILER_COMMON_OPERATOR_REDUCER_H_
|
| +#endif // V8_COMPILER_BINARY_OPERATOR_REDUCER_H_
|
|
|