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

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

Issue 1157023002: [turbofan] Change End to take a variable number of inputs. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 7 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 #include "test/unittests/compiler/graph-unittest.h" 5 #include "test/unittests/compiler/graph-unittest.h"
6 6
7 #include "src/compiler/node-properties.h" 7 #include "src/compiler/node-properties.h"
8 #include "test/unittests/compiler/node-test-utils.h" 8 #include "test/unittests/compiler/node-test-utils.h"
9 9
10 namespace v8 { 10 namespace v8 {
11 namespace internal { 11 namespace internal {
12 namespace compiler { 12 namespace compiler {
13 13
14 GraphTest::GraphTest(int num_parameters) : common_(zone()), graph_(zone()) { 14 GraphTest::GraphTest(int num_parameters) : common_(zone()), graph_(zone()) {
15 graph()->SetStart(graph()->NewNode(common()->Start(num_parameters))); 15 graph()->SetStart(graph()->NewNode(common()->Start(num_parameters)));
16 graph()->SetEnd(graph()->NewNode(common()->End(), graph()->start())); 16 graph()->SetEnd(graph()->NewNode(common()->End(1), graph()->start()));
17 } 17 }
18 18
19 19
20 GraphTest::~GraphTest() {} 20 GraphTest::~GraphTest() {}
21 21
22 22
23 Node* GraphTest::Parameter(int32_t index) { 23 Node* GraphTest::Parameter(int32_t index) {
24 return graph()->NewNode(common()->Parameter(index), graph()->start()); 24 return graph()->NewNode(common()->Parameter(index), graph()->start());
25 } 25 }
26 26
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 EXPECT_LT(0, n0->id()); 129 EXPECT_LT(0, n0->id());
130 EXPECT_LT(0, n1->id()); 130 EXPECT_LT(0, n1->id());
131 EXPECT_NE(n0->id(), n1->id()); 131 EXPECT_NE(n0->id(), n1->id());
132 EXPECT_EQ(&kDummyOperator, n0->op()); 132 EXPECT_EQ(&kDummyOperator, n0->op());
133 EXPECT_EQ(&kDummyOperator, n1->op()); 133 EXPECT_EQ(&kDummyOperator, n1->op());
134 } 134 }
135 135
136 } // namespace compiler 136 } // namespace compiler
137 } // namespace internal 137 } // namespace internal
138 } // namespace v8 138 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698