Index: src/compiler/common-operator-reducer.h |
diff --git a/src/compiler/load-elimination.h b/src/compiler/common-operator-reducer.h |
similarity index 54% |
copy from src/compiler/load-elimination.h |
copy to src/compiler/common-operator-reducer.h |
index 6917ce36d68682ef3dbf484c8e17a9d46bd014c2..10543db8c68234783ab21ce434627ea6c0eb65cc 100644 |
--- a/src/compiler/load-elimination.h |
+++ b/src/compiler/common-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_LOAD_ELIMINATION_H_ |
-#define V8_COMPILER_LOAD_ELIMINATION_H_ |
+#ifndef V8_COMPILER_COMMON_OPERATOR_REDUCER_H_ |
+#define V8_COMPILER_COMMON_OPERATOR_REDUCER_H_ |
#include "src/compiler/graph-reducer.h" |
@@ -11,19 +11,17 @@ namespace v8 { |
namespace internal { |
namespace compiler { |
-class LoadElimination FINAL : public Reducer { |
+// Performs strength reduction on nodes that have common operators. |
+class CommonOperatorReducer FINAL : public Reducer { |
public: |
- LoadElimination() {} |
- ~LoadElimination() FINAL; |
+ CommonOperatorReducer() {} |
+ ~CommonOperatorReducer() FINAL {} |
Reduction Reduce(Node* node) FINAL; |
- |
- private: |
- Reduction ReduceLoadField(Node* node); |
}; |
} // namespace compiler |
} // namespace internal |
} // namespace v8 |
-#endif // V8_COMPILER_LOAD_ELIMINATION_H_ |
+#endif // V8_COMPILER_COMMON_OPERATOR_REDUCER_H_ |