10543db8c68234783ab21ce434627ea6c0eb65cc
[platform/upstream/nodejs.git] / deps / v8 / src / compiler / common-operator-reducer.h
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_