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" |
11 #include "src/compiler/instruction.h" | 11 #include "src/compiler/instruction.h" |
12 #include "src/compiler/machine-operator.h" | 12 #include "src/compiler/machine-operator.h" |
13 #include "src/compiler/node.h" | 13 #include "src/compiler/node.h" |
14 #include "src/zone-containers.h" | 14 #include "src/zone-containers.h" |
15 | 15 |
16 namespace v8 { | 16 namespace v8 { |
17 namespace internal { | 17 namespace internal { |
18 namespace compiler { | 18 namespace compiler { |
19 | 19 |
20 // Forward declarations. | 20 // Forward declarations. |
| 21 class BasicBlock; |
21 struct CallBuffer; // TODO(bmeurer): Remove this. | 22 struct CallBuffer; // TODO(bmeurer): Remove this. |
22 class FlagsContinuation; | 23 class FlagsContinuation; |
23 class Linkage; | 24 class Linkage; |
24 | 25 |
25 | |
26 typedef ZoneVector<InstructionOperand> InstructionOperandVector; | 26 typedef ZoneVector<InstructionOperand> InstructionOperandVector; |
27 | 27 |
28 | 28 |
29 // Instruction selection generates an InstructionSequence for a given Schedule. | 29 // Instruction selection generates an InstructionSequence for a given Schedule. |
30 class InstructionSelector FINAL { | 30 class InstructionSelector FINAL { |
31 public: | 31 public: |
32 // Forward declarations. | 32 // Forward declarations. |
33 class Features; | 33 class Features; |
34 | 34 |
35 InstructionSelector(Zone* zone, size_t node_count, Linkage* linkage, | 35 InstructionSelector(Zone* zone, size_t node_count, Linkage* linkage, |
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 BoolVector defined_; | 230 BoolVector defined_; |
231 BoolVector used_; | 231 BoolVector used_; |
232 IntVector virtual_registers_; | 232 IntVector virtual_registers_; |
233 }; | 233 }; |
234 | 234 |
235 } // namespace compiler | 235 } // namespace compiler |
236 } // namespace internal | 236 } // namespace internal |
237 } // namespace v8 | 237 } // namespace v8 |
238 | 238 |
239 #endif // V8_COMPILER_INSTRUCTION_SELECTOR_H_ | 239 #endif // V8_COMPILER_INSTRUCTION_SELECTOR_H_ |
OLD | NEW |