| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_COMPILER_SIMPLIFIED_OPERATOR_REDUCER_H_ | 5 #ifndef V8_COMPILER_SIMPLIFIED_OPERATOR_REDUCER_H_ |
| 6 #define V8_COMPILER_SIMPLIFIED_OPERATOR_REDUCER_H_ | 6 #define V8_COMPILER_SIMPLIFIED_OPERATOR_REDUCER_H_ |
| 7 | 7 |
| 8 #include "src/base/compiler-specific.h" |
| 8 #include "src/compiler/graph-reducer.h" | 9 #include "src/compiler/graph-reducer.h" |
| 10 #include "src/globals.h" |
| 9 | 11 |
| 10 namespace v8 { | 12 namespace v8 { |
| 11 namespace internal { | 13 namespace internal { |
| 12 | 14 |
| 13 // Forward declarations. | 15 // Forward declarations. |
| 14 class Factory; | 16 class Factory; |
| 15 class Isolate; | 17 class Isolate; |
| 16 | 18 |
| 17 namespace compiler { | 19 namespace compiler { |
| 18 | 20 |
| 19 // Forward declarations. | 21 // Forward declarations. |
| 20 class JSGraph; | 22 class JSGraph; |
| 21 class MachineOperatorBuilder; | 23 class MachineOperatorBuilder; |
| 22 class SimplifiedOperatorBuilder; | 24 class SimplifiedOperatorBuilder; |
| 23 | 25 |
| 24 class SimplifiedOperatorReducer final : public AdvancedReducer { | 26 class V8_EXPORT_PRIVATE SimplifiedOperatorReducer final |
| 27 : public NON_EXPORTED_BASE(AdvancedReducer) { |
| 25 public: | 28 public: |
| 26 SimplifiedOperatorReducer(Editor* editor, JSGraph* jsgraph); | 29 SimplifiedOperatorReducer(Editor* editor, JSGraph* jsgraph); |
| 27 ~SimplifiedOperatorReducer() final; | 30 ~SimplifiedOperatorReducer() final; |
| 28 | 31 |
| 29 Reduction Reduce(Node* node) final; | 32 Reduction Reduce(Node* node) final; |
| 30 | 33 |
| 31 private: | 34 private: |
| 32 Reduction ReduceReferenceEqual(Node* node); | 35 Reduction ReduceReferenceEqual(Node* node); |
| 33 | 36 |
| 34 Reduction Change(Node* node, const Operator* op, Node* a); | 37 Reduction Change(Node* node, const Operator* op, Node* a); |
| (...skipping 16 matching lines...) Expand all Loading... |
| 51 JSGraph* const jsgraph_; | 54 JSGraph* const jsgraph_; |
| 52 | 55 |
| 53 DISALLOW_COPY_AND_ASSIGN(SimplifiedOperatorReducer); | 56 DISALLOW_COPY_AND_ASSIGN(SimplifiedOperatorReducer); |
| 54 }; | 57 }; |
| 55 | 58 |
| 56 } // namespace compiler | 59 } // namespace compiler |
| 57 } // namespace internal | 60 } // namespace internal |
| 58 } // namespace v8 | 61 } // namespace v8 |
| 59 | 62 |
| 60 #endif // V8_COMPILER_SIMPLIFIED_OPERATOR_REDUCER_H_ | 63 #endif // V8_COMPILER_SIMPLIFIED_OPERATOR_REDUCER_H_ |
| OLD | NEW |