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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
78 | 78 |
79 bool IsSupported(CpuFeature feature) const { | 79 bool IsSupported(CpuFeature feature) const { |
80 return features_.Contains(feature); | 80 return features_.Contains(feature); |
81 } | 81 } |
82 | 82 |
83 // Returns the features supported on the target platform. | 83 // Returns the features supported on the target platform. |
84 static Features SupportedFeatures() { | 84 static Features SupportedFeatures() { |
85 return Features(CpuFeatures::SupportedFeatures()); | 85 return Features(CpuFeatures::SupportedFeatures()); |
86 } | 86 } |
87 | 87 |
88 // TODO(sigurds) This should take a CpuFeatures argument. | |
89 static MachineOperatorBuilder::Flags GetSupportedOperators(); | |
Benedikt Meurer
2014/10/23 11:04:57
s,GetSupportedOperators,SupportedMachineOperatorFl
sigurds
2014/10/23 11:15:56
Done.
| |
90 | |
88 // =========================================================================== | 91 // =========================================================================== |
89 // ============ Architecture-independent graph covering methods. ============= | 92 // ============ Architecture-independent graph covering methods. ============= |
90 // =========================================================================== | 93 // =========================================================================== |
91 | 94 |
92 // Used in pattern matching during code generation. | 95 // Used in pattern matching during code generation. |
93 // Check if {node} can be covered while generating code for the current | 96 // Check if {node} can be covered while generating code for the current |
94 // instruction. A node can be covered if the {user} of the node has the only | 97 // instruction. A node can be covered if the {user} of the node has the only |
95 // edge and the two are in the same basic block. | 98 // edge and the two are in the same basic block. |
96 bool CanCover(Node* user, Node* node) const; | 99 bool CanCover(Node* user, Node* node) const; |
97 | 100 |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
202 ZoneDeque<Instruction*> instructions_; | 205 ZoneDeque<Instruction*> instructions_; |
203 BoolVector defined_; | 206 BoolVector defined_; |
204 BoolVector used_; | 207 BoolVector used_; |
205 }; | 208 }; |
206 | 209 |
207 } // namespace compiler | 210 } // namespace compiler |
208 } // namespace internal | 211 } // namespace internal |
209 } // namespace v8 | 212 } // namespace v8 |
210 | 213 |
211 #endif // V8_COMPILER_INSTRUCTION_SELECTOR_H_ | 214 #endif // V8_COMPILER_INSTRUCTION_SELECTOR_H_ |
OLD | NEW |