Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: test/unittests/compiler/instruction-selector-unittest.h

Issue 1191243003: [turbofan] Factor out the function specific part from the frame state operator. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Tweaks Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « test/unittests/compiler/graph-unittest.cc ('k') | test/unittests/compiler/instruction-selector-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698