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/compiler/graph-reducer.h" | 8 #include "src/compiler/graph-reducer.h" |
9 | 9 |
10 namespace v8 { | 10 namespace v8 { |
11 namespace internal { | 11 namespace internal { |
12 | |
13 // Forward declarations. | |
14 class TypeCache; | |
15 | |
16 namespace compiler { | 12 namespace compiler { |
17 | 13 |
18 // Forward declarations. | 14 // Forward declarations. |
19 class JSGraph; | 15 class JSGraph; |
20 class MachineOperatorBuilder; | 16 class MachineOperatorBuilder; |
21 class SimplifiedOperatorBuilder; | 17 class SimplifiedOperatorBuilder; |
22 | 18 |
23 class SimplifiedOperatorReducer final : public AdvancedReducer { | 19 class SimplifiedOperatorReducer final : public AdvancedReducer { |
24 public: | 20 public: |
25 SimplifiedOperatorReducer(Editor* editor, JSGraph* jsgraph); | 21 SimplifiedOperatorReducer(Editor* editor, JSGraph* jsgraph); |
(...skipping 13 matching lines...) Expand all Loading... |
39 } | 35 } |
40 Reduction ReplaceNumber(double value); | 36 Reduction ReplaceNumber(double value); |
41 Reduction ReplaceNumber(int32_t value); | 37 Reduction ReplaceNumber(int32_t value); |
42 | 38 |
43 Graph* graph() const; | 39 Graph* graph() const; |
44 JSGraph* jsgraph() const { return jsgraph_; } | 40 JSGraph* jsgraph() const { return jsgraph_; } |
45 MachineOperatorBuilder* machine() const; | 41 MachineOperatorBuilder* machine() const; |
46 SimplifiedOperatorBuilder* simplified() const; | 42 SimplifiedOperatorBuilder* simplified() const; |
47 | 43 |
48 JSGraph* const jsgraph_; | 44 JSGraph* const jsgraph_; |
49 TypeCache const& type_cache_; | |
50 | 45 |
51 DISALLOW_COPY_AND_ASSIGN(SimplifiedOperatorReducer); | 46 DISALLOW_COPY_AND_ASSIGN(SimplifiedOperatorReducer); |
52 }; | 47 }; |
53 | 48 |
54 } // namespace compiler | 49 } // namespace compiler |
55 } // namespace internal | 50 } // namespace internal |
56 } // namespace v8 | 51 } // namespace v8 |
57 | 52 |
58 #endif // V8_COMPILER_SIMPLIFIED_OPERATOR_REDUCER_H_ | 53 #endif // V8_COMPILER_SIMPLIFIED_OPERATOR_REDUCER_H_ |
OLD | NEW |