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 24 matching lines...) Expand all Loading... |
35 void DoJSToNumberTruncatesToFloat64(Node* node, | 35 void DoJSToNumberTruncatesToFloat64(Node* node, |
36 RepresentationSelector* selector); | 36 RepresentationSelector* selector); |
37 void DoJSToNumberTruncatesToWord32(Node* node, | 37 void DoJSToNumberTruncatesToWord32(Node* node, |
38 RepresentationSelector* selector); | 38 RepresentationSelector* selector); |
39 // TODO(turbofan): The representation can be removed once the result of the | 39 // TODO(turbofan): The representation can be removed once the result of the |
40 // representation analysis is stored in the node bounds. | 40 // representation analysis is stored in the node bounds. |
41 void DoLoadBuffer(Node* node, MachineRepresentation rep, | 41 void DoLoadBuffer(Node* node, MachineRepresentation rep, |
42 RepresentationChanger* changer); | 42 RepresentationChanger* changer); |
43 void DoStoreBuffer(Node* node); | 43 void DoStoreBuffer(Node* node); |
44 void DoShift(Node* node, Operator const* op, Type* rhs_type); | 44 void DoShift(Node* node, Operator const* op, Type* rhs_type); |
| 45 void DoStringToNumber(Node* node); |
45 | 46 |
46 private: | 47 private: |
47 JSGraph* const jsgraph_; | 48 JSGraph* const jsgraph_; |
48 Zone* const zone_; | 49 Zone* const zone_; |
49 TypeCache const& type_cache_; | 50 TypeCache const& type_cache_; |
50 SetOncePointer<Node> to_number_code_; | 51 SetOncePointer<Node> to_number_code_; |
51 SetOncePointer<Operator const> to_number_operator_; | 52 SetOncePointer<Operator const> to_number_operator_; |
52 | 53 |
53 // TODO(danno): SimplifiedLowering shouldn't know anything about the source | 54 // TODO(danno): SimplifiedLowering shouldn't know anything about the source |
54 // positions table, but must for now since there currently is no other way to | 55 // positions table, but must for now since there currently is no other way to |
(...skipping 26 matching lines...) Expand all Loading... |
81 CommonOperatorBuilder* common() { return jsgraph()->common(); } | 82 CommonOperatorBuilder* common() { return jsgraph()->common(); } |
82 MachineOperatorBuilder* machine() { return jsgraph()->machine(); } | 83 MachineOperatorBuilder* machine() { return jsgraph()->machine(); } |
83 SimplifiedOperatorBuilder* simplified() { return jsgraph()->simplified(); } | 84 SimplifiedOperatorBuilder* simplified() { return jsgraph()->simplified(); } |
84 }; | 85 }; |
85 | 86 |
86 } // namespace compiler | 87 } // namespace compiler |
87 } // namespace internal | 88 } // namespace internal |
88 } // namespace v8 | 89 } // namespace v8 |
89 | 90 |
90 #endif // V8_COMPILER_SIMPLIFIED_LOWERING_H_ | 91 #endif // V8_COMPILER_SIMPLIFIED_LOWERING_H_ |
OLD | NEW |