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/zone-containers.h" | 14 #include "src/zone-containers.h" |
14 | 15 |
15 namespace v8 { | 16 namespace v8 { |
16 namespace internal { | 17 namespace internal { |
17 namespace compiler { | 18 namespace compiler { |
18 | 19 |
19 // Forward declarations. | 20 // Forward declarations. |
20 struct CallBuffer; // TODO(bmeurer): Remove this. | 21 struct CallBuffer; // TODO(bmeurer): Remove this. |
21 class FlagsContinuation; | 22 class FlagsContinuation; |
22 class Linkage; | 23 class Linkage; |
23 | 24 |
| 25 |
| 26 // Instruction selection generates an InstructionSequence for a given Schedule. |
24 class InstructionSelector FINAL { | 27 class InstructionSelector FINAL { |
25 public: | 28 public: |
26 // Forward declarations. | 29 // Forward declarations. |
27 class Features; | 30 class Features; |
28 | 31 |
29 InstructionSelector(Zone* zone, size_t node_count, Linkage* linkage, | 32 InstructionSelector(Zone* zone, size_t node_count, Linkage* linkage, |
30 InstructionSequence* sequence, Schedule* schedule, | 33 InstructionSequence* sequence, Schedule* schedule, |
31 SourcePositionTable* source_positions, | 34 SourcePositionTable* source_positions, |
32 Features features = SupportedFeatures()); | 35 Features features = SupportedFeatures()); |
33 | 36 |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 BoolVector defined_; | 224 BoolVector defined_; |
222 BoolVector used_; | 225 BoolVector used_; |
223 IntVector virtual_registers_; | 226 IntVector virtual_registers_; |
224 }; | 227 }; |
225 | 228 |
226 } // namespace compiler | 229 } // namespace compiler |
227 } // namespace internal | 230 } // namespace internal |
228 } // namespace v8 | 231 } // namespace v8 |
229 | 232 |
230 #endif // V8_COMPILER_INSTRUCTION_SELECTOR_H_ | 233 #endif // V8_COMPILER_INSTRUCTION_SELECTOR_H_ |
OLD | NEW |