| 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_INSTRUCTION_SELECTOR_H_ | 5 #ifndef V8_COMPILER_INSTRUCTION_SELECTOR_H_ |
| 6 #define V8_COMPILER_INSTRUCTION_SELECTOR_H_ | 6 #define V8_COMPILER_INSTRUCTION_SELECTOR_H_ |
| 7 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 | 9 |
| 10 #include "src/compiler/common-operator.h" | 10 #include "src/compiler/common-operator.h" |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 // code if necessary. | 153 // code if necessary. |
| 154 void VisitControl(BasicBlock* block); | 154 void VisitControl(BasicBlock* block); |
| 155 | 155 |
| 156 // Visit the node and generate code, if any. | 156 // Visit the node and generate code, if any. |
| 157 void VisitNode(Node* node); | 157 void VisitNode(Node* node); |
| 158 | 158 |
| 159 #define DECLARE_GENERATOR(x) void Visit##x(Node* node); | 159 #define DECLARE_GENERATOR(x) void Visit##x(Node* node); |
| 160 MACHINE_OP_LIST(DECLARE_GENERATOR) | 160 MACHINE_OP_LIST(DECLARE_GENERATOR) |
| 161 #undef DECLARE_GENERATOR | 161 #undef DECLARE_GENERATOR |
| 162 | 162 |
| 163 void VisitInt32AddWithOverflow(Node* node, FlagsContinuation* cont); | |
| 164 void VisitInt32SubWithOverflow(Node* node, FlagsContinuation* cont); | |
| 165 | |
| 166 void VisitWord32Test(Node* node, FlagsContinuation* cont); | 163 void VisitWord32Test(Node* node, FlagsContinuation* cont); |
| 167 void VisitWord64Test(Node* node, FlagsContinuation* cont); | 164 void VisitWord64Test(Node* node, FlagsContinuation* cont); |
| 168 void VisitWord32Compare(Node* node, FlagsContinuation* cont); | 165 void VisitWord32Compare(Node* node, FlagsContinuation* cont); |
| 169 void VisitWord64Compare(Node* node, FlagsContinuation* cont); | 166 void VisitWord64Compare(Node* node, FlagsContinuation* cont); |
| 170 void VisitFloat64Compare(Node* node, FlagsContinuation* cont); | 167 void VisitFloat64Compare(Node* node, FlagsContinuation* cont); |
| 171 | 168 |
| 172 void VisitParameter(Node* node); | 169 void VisitParameter(Node* node); |
| 173 void VisitPhi(Node* node); | 170 void VisitPhi(Node* node); |
| 174 void VisitProjection(Node* node); | 171 void VisitProjection(Node* node); |
| 175 void VisitConstant(Node* node); | 172 void VisitConstant(Node* node); |
| 173 void VisitBranch(Node* input, BasicBlock* tbranch, BasicBlock* fbranch); |
| 176 void VisitCall(Node* call, BasicBlock* continuation, | 174 void VisitCall(Node* call, BasicBlock* continuation, |
| 177 BasicBlock* deoptimization); | 175 BasicBlock* deoptimization); |
| 178 void VisitGoto(BasicBlock* target); | 176 void VisitGoto(BasicBlock* target); |
| 179 void VisitBranch(Node* input, BasicBlock* tbranch, BasicBlock* fbranch); | |
| 180 void VisitReturn(Node* value); | 177 void VisitReturn(Node* value); |
| 181 void VisitThrow(Node* value); | 178 void VisitThrow(Node* value); |
| 182 void VisitDeoptimize(Node* deopt); | 179 void VisitDeoptimize(Node* deopt); |
| 183 | 180 |
| 184 // =========================================================================== | 181 // =========================================================================== |
| 185 | 182 |
| 186 Graph* graph() const { return sequence()->graph(); } | 183 Graph* graph() const { return sequence()->graph(); } |
| 187 Linkage* linkage() const { return sequence()->linkage(); } | 184 Linkage* linkage() const { return sequence()->linkage(); } |
| 188 Schedule* schedule() const { return sequence()->schedule(); } | 185 Schedule* schedule() const { return sequence()->schedule(); } |
| 189 InstructionSequence* sequence() const { return sequence_; } | 186 InstructionSequence* sequence() const { return sequence_; } |
| (...skipping 13 matching lines...) Expand all Loading... |
| 203 Instructions instructions_; | 200 Instructions instructions_; |
| 204 BoolVector defined_; | 201 BoolVector defined_; |
| 205 BoolVector used_; | 202 BoolVector used_; |
| 206 }; | 203 }; |
| 207 | 204 |
| 208 } // namespace compiler | 205 } // namespace compiler |
| 209 } // namespace internal | 206 } // namespace internal |
| 210 } // namespace v8 | 207 } // namespace v8 |
| 211 | 208 |
| 212 #endif // V8_COMPILER_INSTRUCTION_SELECTOR_H_ | 209 #endif // V8_COMPILER_INSTRUCTION_SELECTOR_H_ |
| OLD | NEW |