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

Unified Diff: test/compiler-unittests/machine-operator-reducer-unittest.cc

Issue 480863002: Refactor ChangeLowering class to avoid template specialization. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/compiler-unittests/graph-unittest.cc ('k') | test/compiler-unittests/node-matchers.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/compiler-unittests/machine-operator-reducer-unittest.cc
diff --git a/test/compiler-unittests/machine-operator-reducer-unittest.cc b/test/compiler-unittests/machine-operator-reducer-unittest.cc
index 0edab127faa187051b322e0cabc3f3bf5d5ee848..75c85623de8760132211f614440dedbd1a7a7ae2 100644
--- a/test/compiler-unittests/machine-operator-reducer-unittest.cc
+++ b/test/compiler-unittests/machine-operator-reducer-unittest.cc
@@ -3,22 +3,17 @@
// found in the LICENSE file.
#include "src/base/bits.h"
-#include "src/compiler/common-operator.h"
-#include "src/compiler/graph.h"
#include "src/compiler/machine-operator-reducer.h"
-#include "test/compiler-unittests/compiler-unittests.h"
-#include "test/compiler-unittests/node-matchers.h"
+#include "test/compiler-unittests/graph-unittest.h"
namespace v8 {
namespace internal {
namespace compiler {
-class MachineOperatorReducerTest : public CompilerTest {
+class MachineOperatorReducerTest : public GraphTest {
public:
explicit MachineOperatorReducerTest(int num_parameters = 2)
- : graph_(zone()), common_(zone()), machine_(zone()) {
- graph()->SetStart(graph()->NewNode(common()->Start(num_parameters)));
- }
+ : GraphTest(num_parameters), machine_(zone()) {}
virtual ~MachineOperatorReducerTest() {}
protected:
@@ -34,13 +29,9 @@ class MachineOperatorReducerTest : public CompilerTest {
return reducer.Reduce(node);
}
- Graph* graph() { return &graph_; }
- CommonOperatorBuilder* common() { return &common_; }
MachineOperatorBuilder* machine() { return &machine_; }
private:
- Graph graph_;
- CommonOperatorBuilder common_;
MachineOperatorBuilder machine_;
};
« no previous file with comments | « test/compiler-unittests/graph-unittest.cc ('k') | test/compiler-unittests/node-matchers.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698