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

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

Issue 868883002: Remove the dependency of Zone on Isolate (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix compilation issues Created 5 years, 11 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 18 matching lines...) Expand all
29 29
30 enum StreamBuilderMode { 30 enum StreamBuilderMode {
31 kAllInstructions, 31 kAllInstructions,
32 kTargetInstructions, 32 kTargetInstructions,
33 kAllExceptNopInstructions 33 kAllExceptNopInstructions
34 }; 34 };
35 35
36 class StreamBuilder FINAL : public RawMachineAssembler { 36 class StreamBuilder FINAL : public RawMachineAssembler {
37 public: 37 public:
38 StreamBuilder(InstructionSelectorTest* test, MachineType return_type) 38 StreamBuilder(InstructionSelectorTest* test, MachineType return_type)
39 : RawMachineAssembler(new (test->zone()) Graph(test->zone()), 39 : RawMachineAssembler(test->isolate(),
40 new (test->zone()) Graph(test->zone()),
40 MakeMachineSignature(test->zone(), return_type)), 41 MakeMachineSignature(test->zone(), return_type)),
41 test_(test) {} 42 test_(test) {}
42 StreamBuilder(InstructionSelectorTest* test, MachineType return_type, 43 StreamBuilder(InstructionSelectorTest* test, MachineType return_type,
43 MachineType parameter0_type) 44 MachineType parameter0_type)
44 : RawMachineAssembler( 45 : RawMachineAssembler(
45 new (test->zone()) Graph(test->zone()), 46 test->isolate(), new (test->zone()) Graph(test->zone()),
46 MakeMachineSignature(test->zone(), return_type, parameter0_type)), 47 MakeMachineSignature(test->zone(), return_type, parameter0_type)),
47 test_(test) {} 48 test_(test) {}
48 StreamBuilder(InstructionSelectorTest* test, MachineType return_type, 49 StreamBuilder(InstructionSelectorTest* test, MachineType return_type,
49 MachineType parameter0_type, MachineType parameter1_type) 50 MachineType parameter0_type, MachineType parameter1_type)
50 : RawMachineAssembler( 51 : RawMachineAssembler(
51 new (test->zone()) Graph(test->zone()), 52 test->isolate(), new (test->zone()) Graph(test->zone()),
52 MakeMachineSignature(test->zone(), return_type, parameter0_type, 53 MakeMachineSignature(test->zone(), return_type, parameter0_type,
53 parameter1_type)), 54 parameter1_type)),
54 test_(test) {} 55 test_(test) {}
55 StreamBuilder(InstructionSelectorTest* test, MachineType return_type, 56 StreamBuilder(InstructionSelectorTest* test, MachineType return_type,
56 MachineType parameter0_type, MachineType parameter1_type, 57 MachineType parameter0_type, MachineType parameter1_type,
57 MachineType parameter2_type) 58 MachineType parameter2_type)
58 : RawMachineAssembler( 59 : RawMachineAssembler(
59 new (test->zone()) Graph(test->zone()), 60 test->isolate(), new (test->zone()) Graph(test->zone()),
60 MakeMachineSignature(test->zone(), return_type, parameter0_type, 61 MakeMachineSignature(test->zone(), return_type, parameter0_type,
61 parameter1_type, parameter2_type)), 62 parameter1_type, parameter2_type)),
62 test_(test) {} 63 test_(test) {}
63 64
64 Stream Build(CpuFeature feature) { 65 Stream Build(CpuFeature feature) {
65 return Build(InstructionSelector::Features(feature)); 66 return Build(InstructionSelector::Features(feature));
66 } 67 }
67 Stream Build(CpuFeature feature1, CpuFeature feature2) { 68 Stream Build(CpuFeature feature1, CpuFeature feature2) {
68 return Build(InstructionSelector::Features(feature1, feature2)); 69 return Build(InstructionSelector::Features(feature1, feature2));
69 } 70 }
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 template <typename T> 233 template <typename T>
233 class InstructionSelectorTestWithParam 234 class InstructionSelectorTestWithParam
234 : public InstructionSelectorTest, 235 : public InstructionSelectorTest,
235 public ::testing::WithParamInterface<T> {}; 236 public ::testing::WithParamInterface<T> {};
236 237
237 } // namespace compiler 238 } // namespace compiler
238 } // namespace internal 239 } // namespace internal
239 } // namespace v8 240 } // namespace v8
240 241
241 #endif // V8_UNITTESTS_COMPILER_INSTRUCTION_SELECTOR_UNITTEST_H_ 242 #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