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_UNITTESTS_COMPILER_INSTRUCTION_SELECTOR_UNITTEST_H_ | 5 #ifndef V8_UNITTESTS_COMPILER_INSTRUCTION_SELECTOR_UNITTEST_H_ |
6 #define V8_UNITTESTS_COMPILER_INSTRUCTION_SELECTOR_UNITTEST_H_ | 6 #define V8_UNITTESTS_COMPILER_INSTRUCTION_SELECTOR_UNITTEST_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <set> | 9 #include <set> |
10 | 10 |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 Stream Build(CpuFeature feature) { | 66 Stream Build(CpuFeature feature) { |
67 return Build(InstructionSelector::Features(feature)); | 67 return Build(InstructionSelector::Features(feature)); |
68 } | 68 } |
69 Stream Build(CpuFeature feature1, CpuFeature feature2) { | 69 Stream Build(CpuFeature feature1, CpuFeature feature2) { |
70 return Build(InstructionSelector::Features(feature1, feature2)); | 70 return Build(InstructionSelector::Features(feature1, feature2)); |
71 } | 71 } |
72 Stream Build(StreamBuilderMode mode = kTargetInstructions) { | 72 Stream Build(StreamBuilderMode mode = kTargetInstructions) { |
73 return Build(InstructionSelector::Features(), mode); | 73 return Build(InstructionSelector::Features(), mode); |
74 } | 74 } |
75 Stream Build(InstructionSelector::Features features, | 75 Stream Build(InstructionSelector::Features features, |
76 StreamBuilderMode mode = kTargetInstructions); | 76 StreamBuilderMode mode = kTargetInstructions, |
| 77 InstructionSelector::SourcePositionMode source_position_mode = |
| 78 InstructionSelector::kAllSourcePositions); |
77 | 79 |
78 private: | 80 private: |
79 MachineSignature* MakeMachineSignature(Zone* zone, | 81 MachineSignature* MakeMachineSignature(Zone* zone, |
80 MachineType return_type) { | 82 MachineType return_type) { |
81 MachineSignature::Builder builder(zone, 1, 0); | 83 MachineSignature::Builder builder(zone, 1, 0); |
82 builder.AddReturn(return_type); | 84 builder.AddReturn(return_type); |
83 return builder.Build(); | 85 return builder.Build(); |
84 } | 86 } |
85 | 87 |
86 MachineSignature* MakeMachineSignature(Zone* zone, MachineType return_type, | 88 MachineSignature* MakeMachineSignature(Zone* zone, MachineType return_type, |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
241 template <typename T> | 243 template <typename T> |
242 class InstructionSelectorTestWithParam | 244 class InstructionSelectorTestWithParam |
243 : public InstructionSelectorTest, | 245 : public InstructionSelectorTest, |
244 public ::testing::WithParamInterface<T> {}; | 246 public ::testing::WithParamInterface<T> {}; |
245 | 247 |
246 } // namespace compiler | 248 } // namespace compiler |
247 } // namespace internal | 249 } // namespace internal |
248 } // namespace v8 | 250 } // namespace v8 |
249 | 251 |
250 #endif // V8_UNITTESTS_COMPILER_INSTRUCTION_SELECTOR_UNITTEST_H_ | 252 #endif // V8_UNITTESTS_COMPILER_INSTRUCTION_SELECTOR_UNITTEST_H_ |
OLD | NEW |