Commit de889843 authored by mstarzinger's avatar mstarzinger Committed by Commit bot

[test] Remove deprecated GraphTester helper class.

R=bmeurer@chromium.org
TEST=cctest/test-node

Review URL: https://codereview.chromium.org/1118433002

Cr-Commit-Position: refs/heads/master@{#28138}
parent 3a025d1a
...@@ -50,7 +50,6 @@ ...@@ -50,7 +50,6 @@
'compiler/function-tester.h', 'compiler/function-tester.h',
'compiler/graph-builder-tester.cc', 'compiler/graph-builder-tester.cc',
'compiler/graph-builder-tester.h', 'compiler/graph-builder-tester.h',
'compiler/graph-tester.h',
'compiler/simplified-graph-builder.cc', 'compiler/simplified-graph-builder.cc',
'compiler/simplified-graph-builder.h', 'compiler/simplified-graph-builder.h',
'compiler/test-basic-block-profiler.cc', 'compiler/test-basic-block-profiler.cc',
......
// Copyright 2014 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef V8_CCTEST_COMPILER_GRAPH_TESTER_H_
#define V8_CCTEST_COMPILER_GRAPH_TESTER_H_
#include "src/v8.h"
#include "test/cctest/cctest.h"
#include "src/compiler/common-operator.h"
#include "src/compiler/graph.h"
namespace v8 {
namespace internal {
namespace compiler {
class GraphTester : public HandleAndZoneScope, public Graph {
public:
GraphTester() : Graph(main_zone()) {}
};
} // namespace compiler
} // namespace internal
} // namespace v8
#endif // V8_CCTEST_COMPILER_GRAPH_TESTER_H_
...@@ -5,8 +5,9 @@ ...@@ -5,8 +5,9 @@
#include <functional> #include <functional>
#include "src/v8.h" #include "src/v8.h"
#include "test/cctest/cctest.h"
#include "graph-tester.h" #include "src/compiler/graph.h"
#include "src/compiler/node.h" #include "src/compiler/node.h"
#include "src/compiler/operator.h" #include "src/compiler/operator.h"
...@@ -130,7 +131,8 @@ static void CheckInputs(Node* node, Node** inputs, int input_count) { ...@@ -130,7 +131,8 @@ static void CheckInputs(Node* node, Node** inputs, int input_count) {
TEST(NodeUseIteratorReplaceUses) { TEST(NodeUseIteratorReplaceUses) {
GraphTester graph; Zone zone;
Graph graph(&zone);
Node* n0 = graph.NewNode(&dummy_operator); Node* n0 = graph.NewNode(&dummy_operator);
Node* n1 = graph.NewNode(&dummy_operator, n0); Node* n1 = graph.NewNode(&dummy_operator, n0);
Node* n2 = graph.NewNode(&dummy_operator, n0); Node* n2 = graph.NewNode(&dummy_operator, n0);
...@@ -154,7 +156,8 @@ TEST(NodeUseIteratorReplaceUses) { ...@@ -154,7 +156,8 @@ TEST(NodeUseIteratorReplaceUses) {
TEST(NodeUseIteratorReplaceUsesSelf) { TEST(NodeUseIteratorReplaceUsesSelf) {
GraphTester graph; Zone zone;
Graph graph(&zone);
Node* n0 = graph.NewNode(&dummy_operator); Node* n0 = graph.NewNode(&dummy_operator);
Node* n1 = graph.NewNode(&dummy_operator, n0); Node* n1 = graph.NewNode(&dummy_operator, n0);
...@@ -177,7 +180,8 @@ TEST(NodeUseIteratorReplaceUsesSelf) { ...@@ -177,7 +180,8 @@ TEST(NodeUseIteratorReplaceUsesSelf) {
TEST(ReplaceInput) { TEST(ReplaceInput) {
GraphTester graph; Zone zone;
Graph graph(&zone);
Node* n0 = graph.NewNode(&dummy_operator); Node* n0 = graph.NewNode(&dummy_operator);
Node* n1 = graph.NewNode(&dummy_operator); Node* n1 = graph.NewNode(&dummy_operator);
Node* n2 = graph.NewNode(&dummy_operator); Node* n2 = graph.NewNode(&dummy_operator);
...@@ -202,7 +206,8 @@ TEST(ReplaceInput) { ...@@ -202,7 +206,8 @@ TEST(ReplaceInput) {
TEST(OwnedBy) { TEST(OwnedBy) {
GraphTester graph; Zone zone;
Graph graph(&zone);
{ {
Node* n0 = graph.NewNode(&dummy_operator); Node* n0 = graph.NewNode(&dummy_operator);
...@@ -251,7 +256,8 @@ TEST(OwnedBy) { ...@@ -251,7 +256,8 @@ TEST(OwnedBy) {
TEST(Uses) { TEST(Uses) {
GraphTester graph; Zone zone;
Graph graph(&zone);
Node* n0 = graph.NewNode(&dummy_operator); Node* n0 = graph.NewNode(&dummy_operator);
Node* n1 = graph.NewNode(&dummy_operator, n0); Node* n1 = graph.NewNode(&dummy_operator, n0);
...@@ -272,7 +278,8 @@ TEST(Uses) { ...@@ -272,7 +278,8 @@ TEST(Uses) {
TEST(Inputs) { TEST(Inputs) {
GraphTester graph; Zone zone;
Graph graph(&zone);
Node* n0 = graph.NewNode(&dummy_operator); Node* n0 = graph.NewNode(&dummy_operator);
Node* n1 = graph.NewNode(&dummy_operator, n0); Node* n1 = graph.NewNode(&dummy_operator, n0);
...@@ -299,7 +306,8 @@ TEST(Inputs) { ...@@ -299,7 +306,8 @@ TEST(Inputs) {
TEST(RemoveInput) { TEST(RemoveInput) {
GraphTester graph; Zone zone;
Graph graph(&zone);
Node* n0 = graph.NewNode(&dummy_operator); Node* n0 = graph.NewNode(&dummy_operator);
Node* n1 = graph.NewNode(&dummy_operator, n0); Node* n1 = graph.NewNode(&dummy_operator, n0);
...@@ -328,7 +336,8 @@ TEST(RemoveInput) { ...@@ -328,7 +336,8 @@ TEST(RemoveInput) {
TEST(AppendInputsAndIterator) { TEST(AppendInputsAndIterator) {
GraphTester graph; Zone zone;
Graph graph(&zone);
Node* n0 = graph.NewNode(&dummy_operator); Node* n0 = graph.NewNode(&dummy_operator);
Node* n1 = graph.NewNode(&dummy_operator, n0); Node* n1 = graph.NewNode(&dummy_operator, n0);
...@@ -349,7 +358,8 @@ TEST(AppendInputsAndIterator) { ...@@ -349,7 +358,8 @@ TEST(AppendInputsAndIterator) {
TEST(NullInputsSimple) { TEST(NullInputsSimple) {
GraphTester graph; Zone zone;
Graph graph(&zone);
Node* n0 = graph.NewNode(&dummy_operator); Node* n0 = graph.NewNode(&dummy_operator);
Node* n1 = graph.NewNode(&dummy_operator, n0); Node* n1 = graph.NewNode(&dummy_operator, n0);
...@@ -375,7 +385,8 @@ TEST(NullInputsSimple) { ...@@ -375,7 +385,8 @@ TEST(NullInputsSimple) {
TEST(NullInputsAppended) { TEST(NullInputsAppended) {
GraphTester graph; Zone zone;
Graph graph(&zone);
Node* n0 = graph.NewNode(&dummy_operator); Node* n0 = graph.NewNode(&dummy_operator);
Node* n1 = graph.NewNode(&dummy_operator, n0); Node* n1 = graph.NewNode(&dummy_operator, n0);
...@@ -397,7 +408,8 @@ TEST(NullInputsAppended) { ...@@ -397,7 +408,8 @@ TEST(NullInputsAppended) {
TEST(ReplaceUsesFromAppendedInputs) { TEST(ReplaceUsesFromAppendedInputs) {
GraphTester graph; Zone zone;
Graph graph(&zone);
Node* n0 = graph.NewNode(&dummy_operator); Node* n0 = graph.NewNode(&dummy_operator);
Node* n1 = graph.NewNode(&dummy_operator, n0); Node* n1 = graph.NewNode(&dummy_operator, n0);
...@@ -424,7 +436,8 @@ TEST(ReplaceUsesFromAppendedInputs) { ...@@ -424,7 +436,8 @@ TEST(ReplaceUsesFromAppendedInputs) {
TEST(ReplaceInputMultipleUses) { TEST(ReplaceInputMultipleUses) {
GraphTester graph; Zone zone;
Graph graph(&zone);
Node* n0 = graph.NewNode(&dummy_operator); Node* n0 = graph.NewNode(&dummy_operator);
Node* n1 = graph.NewNode(&dummy_operator); Node* n1 = graph.NewNode(&dummy_operator);
...@@ -441,7 +454,8 @@ TEST(ReplaceInputMultipleUses) { ...@@ -441,7 +454,8 @@ TEST(ReplaceInputMultipleUses) {
TEST(TrimInputCountInline) { TEST(TrimInputCountInline) {
GraphTester graph; Zone zone;
Graph graph(&zone);
{ {
Node* n0 = graph.NewNode(&dummy_operator); Node* n0 = graph.NewNode(&dummy_operator);
...@@ -508,7 +522,8 @@ TEST(TrimInputCountInline) { ...@@ -508,7 +522,8 @@ TEST(TrimInputCountInline) {
TEST(TrimInputCountOutOfLine1) { TEST(TrimInputCountOutOfLine1) {
GraphTester graph; Zone zone;
Graph graph(&zone);
{ {
Node* n0 = graph.NewNode(&dummy_operator); Node* n0 = graph.NewNode(&dummy_operator);
...@@ -601,7 +616,8 @@ TEST(TrimInputCountOutOfLine1) { ...@@ -601,7 +616,8 @@ TEST(TrimInputCountOutOfLine1) {
TEST(TrimInputCountOutOfLine2) { TEST(TrimInputCountOutOfLine2) {
GraphTester graph; Zone zone;
Graph graph(&zone);
{ {
Node* n0 = graph.NewNode(&dummy_operator); Node* n0 = graph.NewNode(&dummy_operator);
...@@ -669,7 +685,8 @@ TEST(TrimInputCountOutOfLine2) { ...@@ -669,7 +685,8 @@ TEST(TrimInputCountOutOfLine2) {
TEST(NullAllInputs) { TEST(NullAllInputs) {
GraphTester graph; Zone zone;
Graph graph(&zone);
for (int i = 0; i < 2; i++) { for (int i = 0; i < 2; i++) {
Node* n0 = graph.NewNode(&dummy_operator); Node* n0 = graph.NewNode(&dummy_operator);
...@@ -720,7 +737,8 @@ TEST(NullAllInputs) { ...@@ -720,7 +737,8 @@ TEST(NullAllInputs) {
TEST(AppendAndTrim) { TEST(AppendAndTrim) {
GraphTester graph; Zone zone;
Graph graph(&zone);
Node* nodes[] = { Node* nodes[] = {
graph.NewNode(&dummy_operator), graph.NewNode(&dummy_operator), graph.NewNode(&dummy_operator), graph.NewNode(&dummy_operator),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment