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 11 matching lines...) Expand all Loading... |
22 | 22 |
23 void LowerAllNodes(); | 23 void LowerAllNodes(); |
24 | 24 |
25 // TODO(titzer): These are exposed for direct testing. Use a friend class. | 25 // TODO(titzer): These are exposed for direct testing. Use a friend class. |
26 void DoLoadField(Node* node); | 26 void DoLoadField(Node* node); |
27 void DoStoreField(Node* node); | 27 void DoStoreField(Node* node); |
28 void DoLoadElement(Node* node); | 28 void DoLoadElement(Node* node); |
29 void DoStoreElement(Node* node); | 29 void DoStoreElement(Node* node); |
30 void DoStringAdd(Node* node); | 30 void DoStringAdd(Node* node); |
31 void DoStringEqual(Node* node); | 31 void DoStringEqual(Node* node); |
| 32 void DoStringLessThan(Node* node); |
| 33 void DoStringLessThanOrEqual(Node* node); |
32 | 34 |
33 private: | 35 private: |
34 JSGraph* jsgraph_; | 36 JSGraph* jsgraph_; |
35 MachineOperatorBuilder machine_; | 37 MachineOperatorBuilder machine_; |
36 | 38 |
37 Node* SmiTag(Node* node); | 39 Node* SmiTag(Node* node); |
38 Node* IsTagged(Node* node); | 40 Node* IsTagged(Node* node); |
39 Node* Untag(Node* node); | 41 Node* Untag(Node* node); |
40 Node* OffsetMinusTagConstant(int32_t offset); | 42 Node* OffsetMinusTagConstant(int32_t offset); |
41 Node* ComputeIndex(const ElementAccess& access, Node* index); | 43 Node* ComputeIndex(const ElementAccess& access, Node* index); |
| 44 Node* StringComparison(Node* node, bool requires_ordering); |
42 | 45 |
43 friend class RepresentationSelector; | 46 friend class RepresentationSelector; |
44 | 47 |
45 Zone* zone() { return jsgraph_->zone(); } | 48 Zone* zone() { return jsgraph_->zone(); } |
46 JSGraph* jsgraph() { return jsgraph_; } | 49 JSGraph* jsgraph() { return jsgraph_; } |
47 Graph* graph() { return jsgraph()->graph(); } | 50 Graph* graph() { return jsgraph()->graph(); } |
48 CommonOperatorBuilder* common() { return jsgraph()->common(); } | 51 CommonOperatorBuilder* common() { return jsgraph()->common(); } |
49 MachineOperatorBuilder* machine() { return &machine_; } | 52 MachineOperatorBuilder* machine() { return &machine_; } |
50 }; | 53 }; |
51 | 54 |
52 } // namespace compiler | 55 } // namespace compiler |
53 } // namespace internal | 56 } // namespace internal |
54 } // namespace v8 | 57 } // namespace v8 |
55 | 58 |
56 #endif // V8_COMPILER_SIMPLIFIED_LOWERING_H_ | 59 #endif // V8_COMPILER_SIMPLIFIED_LOWERING_H_ |
OLD | NEW |