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" |
(...skipping 14 matching lines...) Expand all Loading... |
25 class SourcePositionTable; | 25 class SourcePositionTable; |
26 | 26 |
27 class SimplifiedLowering final { | 27 class SimplifiedLowering final { |
28 public: | 28 public: |
29 SimplifiedLowering(JSGraph* jsgraph, Zone* zone, | 29 SimplifiedLowering(JSGraph* jsgraph, Zone* zone, |
30 SourcePositionTable* source_positions); | 30 SourcePositionTable* source_positions); |
31 ~SimplifiedLowering() {} | 31 ~SimplifiedLowering() {} |
32 | 32 |
33 void LowerAllNodes(); | 33 void LowerAllNodes(); |
34 | 34 |
| 35 void DoMax(Node* node, Operator const* op, MachineRepresentation rep); |
| 36 void DoMin(Node* node, Operator const* op, MachineRepresentation rep); |
35 void DoJSToNumberTruncatesToFloat64(Node* node, | 37 void DoJSToNumberTruncatesToFloat64(Node* node, |
36 RepresentationSelector* selector); | 38 RepresentationSelector* selector); |
37 void DoJSToNumberTruncatesToWord32(Node* node, | 39 void DoJSToNumberTruncatesToWord32(Node* node, |
38 RepresentationSelector* selector); | 40 RepresentationSelector* selector); |
39 // TODO(turbofan): The representation can be removed once the result of the | 41 // TODO(turbofan): The representation can be removed once the result of the |
40 // representation analysis is stored in the node bounds. | 42 // representation analysis is stored in the node bounds. |
41 void DoLoadBuffer(Node* node, MachineRepresentation rep, | 43 void DoLoadBuffer(Node* node, MachineRepresentation rep, |
42 RepresentationChanger* changer); | 44 RepresentationChanger* changer); |
43 void DoStoreBuffer(Node* node); | 45 void DoStoreBuffer(Node* node); |
44 void DoShift(Node* node, Operator const* op, Type* rhs_type); | 46 void DoShift(Node* node, Operator const* op, Type* rhs_type); |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 CommonOperatorBuilder* common() { return jsgraph()->common(); } | 84 CommonOperatorBuilder* common() { return jsgraph()->common(); } |
83 MachineOperatorBuilder* machine() { return jsgraph()->machine(); } | 85 MachineOperatorBuilder* machine() { return jsgraph()->machine(); } |
84 SimplifiedOperatorBuilder* simplified() { return jsgraph()->simplified(); } | 86 SimplifiedOperatorBuilder* simplified() { return jsgraph()->simplified(); } |
85 }; | 87 }; |
86 | 88 |
87 } // namespace compiler | 89 } // namespace compiler |
88 } // namespace internal | 90 } // namespace internal |
89 } // namespace v8 | 91 } // namespace v8 |
90 | 92 |
91 #endif // V8_COMPILER_SIMPLIFIED_LOWERING_H_ | 93 #endif // V8_COMPILER_SIMPLIFIED_LOWERING_H_ |
OLD | NEW |