| 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 = | 77 InstructionSelector::SourcePositionMode source_position_mode = |
| 78 InstructionSelector::kAllSourcePositions); | 78 InstructionSelector::kAllSourcePositions); |
| 79 | 79 |
| 80 const FrameStateFunctionInfo* GetFrameStateFunctionInfo(int parameter_count, |
| 81 int local_count); |
| 82 |
| 80 private: | 83 private: |
| 81 MachineSignature* MakeMachineSignature(Zone* zone, | 84 MachineSignature* MakeMachineSignature(Zone* zone, |
| 82 MachineType return_type) { | 85 MachineType return_type) { |
| 83 MachineSignature::Builder builder(zone, 1, 0); | 86 MachineSignature::Builder builder(zone, 1, 0); |
| 84 builder.AddReturn(return_type); | 87 builder.AddReturn(return_type); |
| 85 return builder.Build(); | 88 return builder.Build(); |
| 86 } | 89 } |
| 87 | 90 |
| 88 MachineSignature* MakeMachineSignature(Zone* zone, MachineType return_type, | 91 MachineSignature* MakeMachineSignature(Zone* zone, MachineType return_type, |
| 89 MachineType parameter0_type) { | 92 MachineType parameter0_type) { |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 template <typename T> | 246 template <typename T> |
| 244 class InstructionSelectorTestWithParam | 247 class InstructionSelectorTestWithParam |
| 245 : public InstructionSelectorTest, | 248 : public InstructionSelectorTest, |
| 246 public ::testing::WithParamInterface<T> {}; | 249 public ::testing::WithParamInterface<T> {}; |
| 247 | 250 |
| 248 } // namespace compiler | 251 } // namespace compiler |
| 249 } // namespace internal | 252 } // namespace internal |
| 250 } // namespace v8 | 253 } // namespace v8 |
| 251 | 254 |
| 252 #endif // V8_UNITTESTS_COMPILER_INSTRUCTION_SELECTOR_UNITTEST_H_ | 255 #endif // V8_UNITTESTS_COMPILER_INSTRUCTION_SELECTOR_UNITTEST_H_ |
| OLD | NEW |