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 namespace compiler { | 15 namespace compiler { |
16 | 16 |
17 // Forward declarations. | 17 // Forward declarations. |
18 class RepresentationChanger; | 18 class RepresentationChanger; |
19 class SourcePositionTable; | 19 class SourcePositionTable; |
20 | 20 |
21 class SimplifiedLowering FINAL { | 21 class SimplifiedLowering final { |
22 public: | 22 public: |
23 SimplifiedLowering(JSGraph* jsgraph, Zone* zone, | 23 SimplifiedLowering(JSGraph* jsgraph, Zone* zone, |
24 SourcePositionTable* source_positions) | 24 SourcePositionTable* source_positions) |
25 : jsgraph_(jsgraph), zone_(zone), source_positions_(source_positions) {} | 25 : jsgraph_(jsgraph), zone_(zone), source_positions_(source_positions) {} |
26 ~SimplifiedLowering() {} | 26 ~SimplifiedLowering() {} |
27 | 27 |
28 void LowerAllNodes(); | 28 void LowerAllNodes(); |
29 | 29 |
30 // TODO(titzer): These are exposed for direct testing. Use a friend class. | 30 // TODO(titzer): These are exposed for direct testing. Use a friend class. |
31 void DoLoadField(Node* node); | 31 void DoLoadField(Node* node); |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 Graph* graph() { return jsgraph()->graph(); } | 71 Graph* graph() { return jsgraph()->graph(); } |
72 CommonOperatorBuilder* common() { return jsgraph()->common(); } | 72 CommonOperatorBuilder* common() { return jsgraph()->common(); } |
73 MachineOperatorBuilder* machine() { return jsgraph()->machine(); } | 73 MachineOperatorBuilder* machine() { return jsgraph()->machine(); } |
74 }; | 74 }; |
75 | 75 |
76 } // namespace compiler | 76 } // namespace compiler |
77 } // namespace internal | 77 } // namespace internal |
78 } // namespace v8 | 78 } // namespace v8 |
79 | 79 |
80 #endif // V8_COMPILER_SIMPLIFIED_LOWERING_H_ | 80 #endif // V8_COMPILER_SIMPLIFIED_LOWERING_H_ |
OLD | NEW |