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

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

Issue 1088993003: Replace OVERRIDE->override and FINAL->final since we now require C++11. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 8 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_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"
(...skipping 11 matching lines...) Expand all
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 TestWithIsolateAndZone { 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* end() { return graph()->end(); } 36 Node* end() { return graph()->end(); }
37 37
38 Node* Parameter(int32_t index = 0); 38 Node* Parameter(int32_t index = 0);
39 Node* Float32Constant(volatile float value); 39 Node* Float32Constant(volatile float value);
40 Node* Float64Constant(volatile double value); 40 Node* Float64Constant(volatile double value);
41 Node* Int32Constant(int32_t value); 41 Node* Int32Constant(int32_t value);
42 Node* Uint32Constant(uint32_t value) { 42 Node* Uint32Constant(uint32_t value) {
(...skipping 16 matching lines...) Expand all
59 59
60 private: 60 private:
61 CommonOperatorBuilder common_; 61 CommonOperatorBuilder common_;
62 Graph graph_; 62 Graph graph_;
63 }; 63 };
64 64
65 65
66 class TypedGraphTest : public GraphTest { 66 class TypedGraphTest : public GraphTest {
67 public: 67 public:
68 explicit TypedGraphTest(int num_parameters = 1); 68 explicit TypedGraphTest(int num_parameters = 1);
69 ~TypedGraphTest() OVERRIDE; 69 ~TypedGraphTest() override;
70 70
71 protected: 71 protected:
72 Node* Parameter(int32_t index = 0) { return GraphTest::Parameter(index); } 72 Node* Parameter(int32_t index = 0) { return GraphTest::Parameter(index); }
73 Node* Parameter(Type* type, int32_t index = 0); 73 Node* Parameter(Type* type, int32_t index = 0);
74 74
75 Typer* typer() { return &typer_; } 75 Typer* typer() { return &typer_; }
76 76
77 private: 77 private:
78 Typer typer_; 78 Typer typer_;
79 }; 79 };
80 80
81 } // namespace compiler 81 } // namespace compiler
82 } // namespace internal 82 } // namespace internal
83 } // namespace v8 83 } // namespace v8
84 84
85 #endif // V8_UNITTESTS_COMPILER_GRAPH_UNITTEST_H_ 85 #endif // V8_UNITTESTS_COMPILER_GRAPH_UNITTEST_H_
OLDNEW
« no previous file with comments | « test/unittests/compiler/graph-reducer-unittest.cc ('k') | test/unittests/compiler/instruction-selector-unittest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698