OLD | NEW |
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 "src/factory.h" |
| 9 #include "src/objects-inl.h" // TODO(everyone): Make typer.h IWYU compliant. |
8 #include "test/unittests/compiler/node-test-utils.h" | 10 #include "test/unittests/compiler/node-test-utils.h" |
9 | 11 |
10 namespace v8 { | 12 namespace v8 { |
11 namespace internal { | 13 namespace internal { |
12 namespace compiler { | 14 namespace compiler { |
13 | 15 |
14 GraphTest::GraphTest(int num_parameters) : common_(zone()), graph_(zone()) { | 16 GraphTest::GraphTest(int num_parameters) : common_(zone()), graph_(zone()) { |
15 graph()->SetStart(graph()->NewNode(common()->Start(num_parameters))); | 17 graph()->SetStart(graph()->NewNode(common()->Start(num_parameters))); |
16 graph()->SetEnd(graph()->NewNode(common()->End(1), graph()->start())); | 18 graph()->SetEnd(graph()->NewNode(common()->End(1), graph()->start())); |
17 } | 19 } |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 EXPECT_LT(0u, n0->id()); | 129 EXPECT_LT(0u, n0->id()); |
128 EXPECT_LT(0u, n1->id()); | 130 EXPECT_LT(0u, n1->id()); |
129 EXPECT_NE(n0->id(), n1->id()); | 131 EXPECT_NE(n0->id(), n1->id()); |
130 EXPECT_EQ(&kDummyOperator, n0->op()); | 132 EXPECT_EQ(&kDummyOperator, n0->op()); |
131 EXPECT_EQ(&kDummyOperator, n1->op()); | 133 EXPECT_EQ(&kDummyOperator, n1->op()); |
132 } | 134 } |
133 | 135 |
134 } // namespace compiler | 136 } // namespace compiler |
135 } // namespace internal | 137 } // namespace internal |
136 } // namespace v8 | 138 } // namespace v8 |
OLD | NEW |