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_LOWERING_H_ | 5 #ifndef V8_COMPILER_SIMPLIFIED_LOWERING_H_ |
6 #define V8_COMPILER_SIMPLIFIED_LOWERING_H_ | 6 #define V8_COMPILER_SIMPLIFIED_LOWERING_H_ |
7 | 7 |
8 #include "src/compiler/js-graph.h" | 8 #include "src/compiler/js-graph.h" |
9 #include "src/compiler/machine-operator.h" | 9 #include "src/compiler/machine-operator.h" |
10 #include "src/compiler/node.h" | 10 #include "src/compiler/node.h" |
11 #include "src/compiler/simplified-operator.h" | 11 #include "src/compiler/simplified-operator.h" |
12 | 12 |
13 namespace v8 { | 13 namespace v8 { |
14 namespace internal { | 14 namespace internal { |
15 | |
16 // Forward declarations. | |
17 class TypeCache; | |
18 | |
19 | |
20 namespace compiler { | 15 namespace compiler { |
21 | 16 |
22 // Forward declarations. | 17 // Forward declarations. |
23 class RepresentationChanger; | 18 class RepresentationChanger; |
24 class RepresentationSelector; | 19 class RepresentationSelector; |
25 class SourcePositionTable; | 20 class SourcePositionTable; |
| 21 class TypeCache; |
26 | 22 |
27 class SimplifiedLowering final { | 23 class SimplifiedLowering final { |
28 public: | 24 public: |
29 SimplifiedLowering(JSGraph* jsgraph, Zone* zone, | 25 SimplifiedLowering(JSGraph* jsgraph, Zone* zone, |
30 SourcePositionTable* source_positions); | 26 SourcePositionTable* source_positions); |
31 ~SimplifiedLowering() {} | 27 ~SimplifiedLowering() {} |
32 | 28 |
33 void LowerAllNodes(); | 29 void LowerAllNodes(); |
34 | 30 |
35 void DoMax(Node* node, Operator const* op, MachineRepresentation rep); | 31 void DoMax(Node* node, Operator const* op, MachineRepresentation rep); |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 CommonOperatorBuilder* common() { return jsgraph()->common(); } | 77 CommonOperatorBuilder* common() { return jsgraph()->common(); } |
82 MachineOperatorBuilder* machine() { return jsgraph()->machine(); } | 78 MachineOperatorBuilder* machine() { return jsgraph()->machine(); } |
83 SimplifiedOperatorBuilder* simplified() { return jsgraph()->simplified(); } | 79 SimplifiedOperatorBuilder* simplified() { return jsgraph()->simplified(); } |
84 }; | 80 }; |
85 | 81 |
86 } // namespace compiler | 82 } // namespace compiler |
87 } // namespace internal | 83 } // namespace internal |
88 } // namespace v8 | 84 } // namespace v8 |
89 | 85 |
90 #endif // V8_COMPILER_SIMPLIFIED_LOWERING_H_ | 86 #endif // V8_COMPILER_SIMPLIFIED_LOWERING_H_ |
OLD | NEW |