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 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 | 195 |
196 void VisitFinish(Node* node); | 196 void VisitFinish(Node* node); |
197 void VisitParameter(Node* node); | 197 void VisitParameter(Node* node); |
198 void VisitOsrValue(Node* node); | 198 void VisitOsrValue(Node* node); |
199 void VisitPhi(Node* node); | 199 void VisitPhi(Node* node); |
200 void VisitProjection(Node* node); | 200 void VisitProjection(Node* node); |
201 void VisitConstant(Node* node); | 201 void VisitConstant(Node* node); |
202 void VisitCall(Node* call); | 202 void VisitCall(Node* call); |
203 void VisitGoto(BasicBlock* target); | 203 void VisitGoto(BasicBlock* target); |
204 void VisitBranch(Node* input, BasicBlock* tbranch, BasicBlock* fbranch); | 204 void VisitBranch(Node* input, BasicBlock* tbranch, BasicBlock* fbranch); |
205 void VisitSwitch(Node* node, BasicBlock** branches, size_t branch_count); | 205 void VisitSwitch(Node* node, BasicBlock* default_branch, |
| 206 BasicBlock** case_branches, int32_t* case_values, |
| 207 size_t case_count, int32_t min_value, int32_t max_value); |
206 void VisitReturn(Node* value); | 208 void VisitReturn(Node* value); |
207 void VisitThrow(Node* value); | 209 void VisitThrow(Node* value); |
208 void VisitDeoptimize(Node* deopt); | 210 void VisitDeoptimize(Node* deopt); |
209 | 211 |
210 // =========================================================================== | 212 // =========================================================================== |
211 | 213 |
212 Schedule* schedule() const { return schedule_; } | 214 Schedule* schedule() const { return schedule_; } |
213 Linkage* linkage() const { return linkage_; } | 215 Linkage* linkage() const { return linkage_; } |
214 InstructionSequence* sequence() const { return sequence_; } | 216 InstructionSequence* sequence() const { return sequence_; } |
215 Zone* instruction_zone() const { return sequence()->zone(); } | 217 Zone* instruction_zone() const { return sequence()->zone(); } |
(...skipping 12 matching lines...) Expand all Loading... |
228 BoolVector defined_; | 230 BoolVector defined_; |
229 BoolVector used_; | 231 BoolVector used_; |
230 IntVector virtual_registers_; | 232 IntVector virtual_registers_; |
231 }; | 233 }; |
232 | 234 |
233 } // namespace compiler | 235 } // namespace compiler |
234 } // namespace internal | 236 } // namespace internal |
235 } // namespace v8 | 237 } // namespace v8 |
236 | 238 |
237 #endif // V8_COMPILER_INSTRUCTION_SELECTOR_H_ | 239 #endif // V8_COMPILER_INSTRUCTION_SELECTOR_H_ |
OLD | NEW |