Emily Bernier | d0a1eb7 | 2015-03-24 16:35:39 -0400 | [diff] [blame^] | 1 | // Copyright 2014 the V8 project authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #ifndef V8_COMPILER_COMMON_OPERATOR_REDUCER_H_ |
| 6 | #define V8_COMPILER_COMMON_OPERATOR_REDUCER_H_ |
| 7 | |
| 8 | #include "src/compiler/graph-reducer.h" |
| 9 | |
| 10 | namespace v8 { |
| 11 | namespace internal { |
| 12 | namespace compiler { |
| 13 | |
| 14 | // Performs strength reduction on nodes that have common operators. |
| 15 | class CommonOperatorReducer FINAL : public Reducer { |
| 16 | public: |
| 17 | CommonOperatorReducer() {} |
| 18 | ~CommonOperatorReducer() FINAL {} |
| 19 | |
| 20 | Reduction Reduce(Node* node) FINAL; |
| 21 | }; |
| 22 | |
| 23 | } // namespace compiler |
| 24 | } // namespace internal |
| 25 | } // namespace v8 |
| 26 | |
| 27 | #endif // V8_COMPILER_COMMON_OPERATOR_REDUCER_H_ |