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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 SetOncePointer<Node> to_number_code_; | 53 SetOncePointer<Node> to_number_code_; |
54 SetOncePointer<Operator const> to_number_operator_; | 54 SetOncePointer<Operator const> to_number_operator_; |
55 | 55 |
56 // TODO(danno): SimplifiedLowering shouldn't know anything about the source | 56 // TODO(danno): SimplifiedLowering shouldn't know anything about the source |
57 // positions table, but must for now since there currently is no other way to | 57 // positions table, but must for now since there currently is no other way to |
58 // pass down source position information to nodes created during | 58 // pass down source position information to nodes created during |
59 // lowering. Once this phase becomes a vanilla reducer, it should get source | 59 // lowering. Once this phase becomes a vanilla reducer, it should get source |
60 // position information via the SourcePositionWrapper like all other reducers. | 60 // position information via the SourcePositionWrapper like all other reducers. |
61 SourcePositionTable* source_positions_; | 61 SourcePositionTable* source_positions_; |
62 | 62 |
63 Node* Float64Ceil(Node* const node); | |
64 Node* Float64Floor(Node* const node); | |
65 Node* Float64Round(Node* const node); | 63 Node* Float64Round(Node* const node); |
66 Node* Float64Sign(Node* const node); | 64 Node* Float64Sign(Node* const node); |
67 Node* Float64Trunc(Node* const node); | |
68 Node* Int32Abs(Node* const node); | 65 Node* Int32Abs(Node* const node); |
69 Node* Int32Div(Node* const node); | 66 Node* Int32Div(Node* const node); |
70 Node* Int32Mod(Node* const node); | 67 Node* Int32Mod(Node* const node); |
71 Node* Int32Sign(Node* const node); | 68 Node* Int32Sign(Node* const node); |
72 Node* Uint32Div(Node* const node); | 69 Node* Uint32Div(Node* const node); |
73 Node* Uint32Mod(Node* const node); | 70 Node* Uint32Mod(Node* const node); |
74 | 71 |
75 Node* ToNumberCode(); | 72 Node* ToNumberCode(); |
76 Operator const* ToNumberOperator(); | 73 Operator const* ToNumberOperator(); |
77 | 74 |
78 friend class RepresentationSelector; | 75 friend class RepresentationSelector; |
79 | 76 |
80 Isolate* isolate() { return jsgraph_->isolate(); } | 77 Isolate* isolate() { return jsgraph_->isolate(); } |
81 Zone* zone() { return jsgraph_->zone(); } | 78 Zone* zone() { return jsgraph_->zone(); } |
82 JSGraph* jsgraph() { return jsgraph_; } | 79 JSGraph* jsgraph() { return jsgraph_; } |
83 Graph* graph() { return jsgraph()->graph(); } | 80 Graph* graph() { return jsgraph()->graph(); } |
84 CommonOperatorBuilder* common() { return jsgraph()->common(); } | 81 CommonOperatorBuilder* common() { return jsgraph()->common(); } |
85 MachineOperatorBuilder* machine() { return jsgraph()->machine(); } | 82 MachineOperatorBuilder* machine() { return jsgraph()->machine(); } |
86 SimplifiedOperatorBuilder* simplified() { return jsgraph()->simplified(); } | 83 SimplifiedOperatorBuilder* simplified() { return jsgraph()->simplified(); } |
87 }; | 84 }; |
88 | 85 |
89 } // namespace compiler | 86 } // namespace compiler |
90 } // namespace internal | 87 } // namespace internal |
91 } // namespace v8 | 88 } // namespace v8 |
92 | 89 |
93 #endif // V8_COMPILER_SIMPLIFIED_LOWERING_H_ | 90 #endif // V8_COMPILER_SIMPLIFIED_LOWERING_H_ |
OLD | NEW |