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 | 35 |
36 private: | 36 private: |
37 JSGraph* jsgraph_; | 37 JSGraph* jsgraph_; |
38 | 38 |
39 Node* SmiTag(Node* node); | 39 Node* SmiTag(Node* node); |
40 Node* IsTagged(Node* node); | 40 Node* IsTagged(Node* node); |
41 Node* Untag(Node* node); | 41 Node* Untag(Node* node); |
42 Node* OffsetMinusTagConstant(int32_t offset); | 42 Node* OffsetMinusTagConstant(int32_t offset); |
43 Node* ComputeIndex(const ElementAccess& access, Node* index); | 43 Node* ComputeIndex(const ElementAccess& access, Node* index); |
44 Node* StringComparison(Node* node, bool requires_ordering); | 44 Node* StringComparison(Node* node, bool requires_ordering); |
| 45 Node* Int32Div(Node* const node); |
| 46 Node* Int32Mod(Node* const node); |
| 47 Node* Uint32Div(Node* const node); |
| 48 Node* Uint32Mod(Node* const node); |
45 | 49 |
46 friend class RepresentationSelector; | 50 friend class RepresentationSelector; |
47 | 51 |
48 Zone* zone() { return jsgraph_->zone(); } | 52 Zone* zone() { return jsgraph_->zone(); } |
49 JSGraph* jsgraph() { return jsgraph_; } | 53 JSGraph* jsgraph() { return jsgraph_; } |
50 Graph* graph() { return jsgraph()->graph(); } | 54 Graph* graph() { return jsgraph()->graph(); } |
51 CommonOperatorBuilder* common() { return jsgraph()->common(); } | 55 CommonOperatorBuilder* common() { return jsgraph()->common(); } |
52 MachineOperatorBuilder* machine() { return jsgraph()->machine(); } | 56 MachineOperatorBuilder* machine() { return jsgraph()->machine(); } |
53 }; | 57 }; |
54 | 58 |
55 } // namespace compiler | 59 } // namespace compiler |
56 } // namespace internal | 60 } // namespace internal |
57 } // namespace v8 | 61 } // namespace v8 |
58 | 62 |
59 #endif // V8_COMPILER_SIMPLIFIED_LOWERING_H_ | 63 #endif // V8_COMPILER_SIMPLIFIED_LOWERING_H_ |
OLD | NEW |