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

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

Issue 2406803002: [turbofan] Enforce native context specialization. (Closed)
Patch Set: Remove unused variables Created 4 years, 2 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 | « test/mjsunit/regress/regress-568765.js ('k') | test/unittests/compiler/graph-unittest.cc » ('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 21
22 namespace compiler { 22 namespace compiler {
23 23
24 using ::testing::Matcher; 24 using ::testing::Matcher;
25 25
26 26 class GraphTest : public virtual TestWithNativeContext,
27 class GraphTest : public TestWithContext, public TestWithIsolateAndZone { 27 public virtual TestWithIsolateAndZone {
28 public: 28 public:
29 explicit GraphTest(int num_parameters = 1); 29 explicit GraphTest(int num_parameters = 1);
30 ~GraphTest() override; 30 ~GraphTest() override;
31 31
32 Node* start() { return graph()->start(); } 32 Node* start() { return graph()->start(); }
33 Node* end() { return graph()->end(); } 33 Node* end() { return graph()->end(); }
34 34
35 Node* Parameter(int32_t index = 0); 35 Node* Parameter(int32_t index = 0);
36 Node* Float32Constant(volatile float value); 36 Node* Float32Constant(volatile float value);
37 Node* Float64Constant(volatile double value); 37 Node* Float64Constant(volatile double value);
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 77
78 private: 78 private:
79 Typer typer_; 79 Typer typer_;
80 }; 80 };
81 81
82 } // namespace compiler 82 } // namespace compiler
83 } // namespace internal 83 } // namespace internal
84 } // namespace v8 84 } // namespace v8
85 85
86 #endif // V8_UNITTESTS_COMPILER_GRAPH_UNITTEST_H_ 86 #endif // V8_UNITTESTS_COMPILER_GRAPH_UNITTEST_H_
OLDNEW
« no previous file with comments | « test/mjsunit/regress/regress-568765.js ('k') | test/unittests/compiler/graph-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698