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/base/flags.h" | 8 #include "src/base/flags.h" |
9 #include "src/compiler/js-graph.h" | 9 #include "src/compiler/js-graph.h" |
10 #include "src/compiler/machine-operator.h" | 10 #include "src/compiler/machine-operator.h" |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 // positions table, but must for now since there currently is no other way to | 61 // positions table, but must for now since there currently is no other way to |
62 // pass down source position information to nodes created during | 62 // pass down source position information to nodes created during |
63 // lowering. Once this phase becomes a vanilla reducer, it should get source | 63 // lowering. Once this phase becomes a vanilla reducer, it should get source |
64 // position information via the SourcePositionWrapper like all other reducers. | 64 // position information via the SourcePositionWrapper like all other reducers. |
65 SourcePositionTable* source_positions_; | 65 SourcePositionTable* source_positions_; |
66 | 66 |
67 Node* Float64Ceil(Node* const node); | 67 Node* Float64Ceil(Node* const node); |
68 Node* Float64Floor(Node* const node); | 68 Node* Float64Floor(Node* const node); |
69 Node* Float64Round(Node* const node); | 69 Node* Float64Round(Node* const node); |
70 Node* Float64Trunc(Node* const node); | 70 Node* Float64Trunc(Node* const node); |
| 71 Node* Int32Abs(Node* const node); |
71 Node* Int32Div(Node* const node); | 72 Node* Int32Div(Node* const node); |
72 Node* Int32Mod(Node* const node); | 73 Node* Int32Mod(Node* const node); |
73 Node* Uint32Div(Node* const node); | 74 Node* Uint32Div(Node* const node); |
74 Node* Uint32Mod(Node* const node); | 75 Node* Uint32Mod(Node* const node); |
75 | 76 |
76 Node* ToNumberCode(); | 77 Node* ToNumberCode(); |
77 Operator const* ToNumberOperator(); | 78 Operator const* ToNumberOperator(); |
78 | 79 |
79 friend class RepresentationSelector; | 80 friend class RepresentationSelector; |
80 | 81 |
81 Isolate* isolate() { return jsgraph_->isolate(); } | 82 Isolate* isolate() { return jsgraph_->isolate(); } |
82 Zone* zone() { return jsgraph_->zone(); } | 83 Zone* zone() { return jsgraph_->zone(); } |
83 JSGraph* jsgraph() { return jsgraph_; } | 84 JSGraph* jsgraph() { return jsgraph_; } |
84 Graph* graph() { return jsgraph()->graph(); } | 85 Graph* graph() { return jsgraph()->graph(); } |
85 CommonOperatorBuilder* common() { return jsgraph()->common(); } | 86 CommonOperatorBuilder* common() { return jsgraph()->common(); } |
86 MachineOperatorBuilder* machine() { return jsgraph()->machine(); } | 87 MachineOperatorBuilder* machine() { return jsgraph()->machine(); } |
87 SimplifiedOperatorBuilder* simplified() { return jsgraph()->simplified(); } | 88 SimplifiedOperatorBuilder* simplified() { return jsgraph()->simplified(); } |
88 }; | 89 }; |
89 | 90 |
90 } // namespace compiler | 91 } // namespace compiler |
91 } // namespace internal | 92 } // namespace internal |
92 } // namespace v8 | 93 } // namespace v8 |
93 | 94 |
94 #endif // V8_COMPILER_SIMPLIFIED_LOWERING_H_ | 95 #endif // V8_COMPILER_SIMPLIFIED_LOWERING_H_ |
OLD | NEW |