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

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

Issue 871843004: Distinquish TestWithIsolateAndZone from TestWithZone (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@no_zone_isolate
Patch Set: 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
« no previous file with comments | « no previous file | test/unittests/compiler/instruction-selector-unittest.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_GRAPH_UNITTEST_H_ 5 #ifndef V8_UNITTESTS_COMPILER_GRAPH_UNITTEST_H_
6 #define V8_UNITTESTS_COMPILER_GRAPH_UNITTEST_H_ 6 #define V8_UNITTESTS_COMPILER_GRAPH_UNITTEST_H_
7 7
8 #include "src/compiler/common-operator.h" 8 #include "src/compiler/common-operator.h"
9 #include "src/compiler/graph.h" 9 #include "src/compiler/graph.h"
10 #include "src/compiler/typer.h" 10 #include "src/compiler/typer.h"
11 #include "test/unittests/test-utils.h" 11 #include "test/unittests/test-utils.h"
12 #include "testing/gmock/include/gmock/gmock.h" 12 #include "testing/gmock/include/gmock/gmock.h"
13 13
14 namespace v8 { 14 namespace v8 {
15 namespace internal { 15 namespace internal {
16 16
17 // Forward declarations. 17 // Forward declarations.
18 template <class T> 18 template <class T>
19 class Handle; 19 class Handle;
20 class HeapObject; 20 class HeapObject;
21 template <class T> 21 template <class T>
22 class Unique; 22 class Unique;
23 23
24 namespace compiler { 24 namespace compiler {
25 25
26 using ::testing::Matcher; 26 using ::testing::Matcher;
27 27
28 28
29 class GraphTest : public TestWithContext, public TestWithZone { 29 class GraphTest : public TestWithContext, public TestWithIsolateAndZone {
30 public: 30 public:
31 explicit GraphTest(int num_parameters = 1); 31 explicit GraphTest(int num_parameters = 1);
32 ~GraphTest() OVERRIDE; 32 ~GraphTest() OVERRIDE;
33 33
34 protected: 34 protected:
35 Node* start() { return graph()->start(); } 35 Node* start() { return graph()->start(); }
36 Node* Parameter(int32_t index = 0); 36 Node* Parameter(int32_t index = 0);
37 Node* Float32Constant(volatile float value); 37 Node* Float32Constant(volatile float value);
38 Node* Float64Constant(volatile double value); 38 Node* Float64Constant(volatile double value);
39 Node* Int32Constant(int32_t value); 39 Node* Int32Constant(int32_t value);
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 73
74 private: 74 private:
75 Typer typer_; 75 Typer typer_;
76 }; 76 };
77 77
78 } // namespace compiler 78 } // namespace compiler
79 } // namespace internal 79 } // namespace internal
80 } // namespace v8 80 } // namespace v8
81 81
82 #endif // V8_UNITTESTS_COMPILER_GRAPH_UNITTEST_H_ 82 #endif // V8_UNITTESTS_COMPILER_GRAPH_UNITTEST_H_
OLDNEW
« no previous file with comments | « no previous file | test/unittests/compiler/instruction-selector-unittest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698