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 <map> | 8 #include <map> |
9 | 9 |
10 #include "src/compiler/common-operator.h" | 10 #include "src/compiler/common-operator.h" |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 // code if necessary. | 193 // code if necessary. |
194 void VisitControl(BasicBlock* block); | 194 void VisitControl(BasicBlock* block); |
195 | 195 |
196 // Visit the node and generate code, if any. | 196 // Visit the node and generate code, if any. |
197 void VisitNode(Node* node); | 197 void VisitNode(Node* node); |
198 | 198 |
199 #define DECLARE_GENERATOR(x) void Visit##x(Node* node); | 199 #define DECLARE_GENERATOR(x) void Visit##x(Node* node); |
200 MACHINE_OP_LIST(DECLARE_GENERATOR) | 200 MACHINE_OP_LIST(DECLARE_GENERATOR) |
201 #undef DECLARE_GENERATOR | 201 #undef DECLARE_GENERATOR |
202 | 202 |
203 void VisitFinish(Node* node); | 203 void VisitFinishRegion(Node* node); |
204 void VisitParameter(Node* node); | 204 void VisitParameter(Node* node); |
205 void VisitIfException(Node* node); | 205 void VisitIfException(Node* node); |
206 void VisitOsrValue(Node* node); | 206 void VisitOsrValue(Node* node); |
207 void VisitPhi(Node* node); | 207 void VisitPhi(Node* node); |
208 void VisitProjection(Node* node); | 208 void VisitProjection(Node* node); |
209 void VisitConstant(Node* node); | 209 void VisitConstant(Node* node); |
210 void VisitCall(Node* call, BasicBlock* handler = nullptr); | 210 void VisitCall(Node* call, BasicBlock* handler = nullptr); |
211 void VisitTailCall(Node* call); | 211 void VisitTailCall(Node* call); |
212 void VisitGoto(BasicBlock* target); | 212 void VisitGoto(BasicBlock* target); |
213 void VisitBranch(Node* input, BasicBlock* tbranch, BasicBlock* fbranch); | 213 void VisitBranch(Node* input, BasicBlock* tbranch, BasicBlock* fbranch); |
(...skipping 24 matching lines...) Expand all Loading... |
238 BoolVector defined_; | 238 BoolVector defined_; |
239 BoolVector used_; | 239 BoolVector used_; |
240 IntVector virtual_registers_; | 240 IntVector virtual_registers_; |
241 }; | 241 }; |
242 | 242 |
243 } // namespace compiler | 243 } // namespace compiler |
244 } // namespace internal | 244 } // namespace internal |
245 } // namespace v8 | 245 } // namespace v8 |
246 | 246 |
247 #endif // V8_COMPILER_INSTRUCTION_SELECTOR_H_ | 247 #endif // V8_COMPILER_INSTRUCTION_SELECTOR_H_ |
OLD | NEW |