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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 // TODO(danno): SimplifiedLowering shouldn't know anything about the source | 60 // TODO(danno): SimplifiedLowering shouldn't know anything about the source |
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* Float64Sign(Node* const node); |
70 Node* Float64Trunc(Node* const node); | 71 Node* Float64Trunc(Node* const node); |
71 Node* Int32Abs(Node* const node); | 72 Node* Int32Abs(Node* const node); |
72 Node* Int32Div(Node* const node); | 73 Node* Int32Div(Node* const node); |
73 Node* Int32Mod(Node* const node); | 74 Node* Int32Mod(Node* const node); |
| 75 Node* Int32Sign(Node* const node); |
74 Node* Uint32Div(Node* const node); | 76 Node* Uint32Div(Node* const node); |
75 Node* Uint32Mod(Node* const node); | 77 Node* Uint32Mod(Node* const node); |
76 | 78 |
77 Node* ToNumberCode(); | 79 Node* ToNumberCode(); |
78 Operator const* ToNumberOperator(); | 80 Operator const* ToNumberOperator(); |
79 | 81 |
80 friend class RepresentationSelector; | 82 friend class RepresentationSelector; |
81 | 83 |
82 Isolate* isolate() { return jsgraph_->isolate(); } | 84 Isolate* isolate() { return jsgraph_->isolate(); } |
83 Zone* zone() { return jsgraph_->zone(); } | 85 Zone* zone() { return jsgraph_->zone(); } |
84 JSGraph* jsgraph() { return jsgraph_; } | 86 JSGraph* jsgraph() { return jsgraph_; } |
85 Graph* graph() { return jsgraph()->graph(); } | 87 Graph* graph() { return jsgraph()->graph(); } |
86 CommonOperatorBuilder* common() { return jsgraph()->common(); } | 88 CommonOperatorBuilder* common() { return jsgraph()->common(); } |
87 MachineOperatorBuilder* machine() { return jsgraph()->machine(); } | 89 MachineOperatorBuilder* machine() { return jsgraph()->machine(); } |
88 SimplifiedOperatorBuilder* simplified() { return jsgraph()->simplified(); } | 90 SimplifiedOperatorBuilder* simplified() { return jsgraph()->simplified(); } |
89 }; | 91 }; |
90 | 92 |
91 } // namespace compiler | 93 } // namespace compiler |
92 } // namespace internal | 94 } // namespace internal |
93 } // namespace v8 | 95 } // namespace v8 |
94 | 96 |
95 #endif // V8_COMPILER_SIMPLIFIED_LOWERING_H_ | 97 #endif // V8_COMPILER_SIMPLIFIED_LOWERING_H_ |
OLD | NEW |