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 <limits> | 5 #include <limits> |
6 | 6 |
7 #include "src/compiler/graph.h" | 7 #include "src/compiler/graph.h" |
8 #include "src/compiler/value-numbering-reducer.h" | 8 #include "src/compiler/value-numbering-reducer.h" |
9 #include "src/test/test-utils.h" | 9 #include "test/unittests/test-utils.h" |
10 | 10 |
11 namespace v8 { | 11 namespace v8 { |
12 namespace internal { | 12 namespace internal { |
13 namespace compiler { | 13 namespace compiler { |
14 | 14 |
15 namespace { | 15 namespace { |
16 | 16 |
17 const SimpleOperator kOp0(0, Operator::kNoProperties, 0, 1, "op0"); | 17 const SimpleOperator kOp0(0, Operator::kNoProperties, 0, 1, "op0"); |
18 const SimpleOperator kOp1(1, Operator::kNoProperties, 1, 1, "op1"); | 18 const SimpleOperator kOp1(1, Operator::kNoProperties, 1, 1, "op1"); |
19 | 19 |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 | 111 |
112 TEST_F(ValueNumberingReducerTest, WontReplaceNodeWithItself) { | 112 TEST_F(ValueNumberingReducerTest, WontReplaceNodeWithItself) { |
113 Node* n = graph()->NewNode(&kOp0); | 113 Node* n = graph()->NewNode(&kOp0); |
114 EXPECT_FALSE(Reduce(n).Changed()); | 114 EXPECT_FALSE(Reduce(n).Changed()); |
115 EXPECT_FALSE(Reduce(n).Changed()); | 115 EXPECT_FALSE(Reduce(n).Changed()); |
116 } | 116 } |
117 | 117 |
118 } // namespace compiler | 118 } // namespace compiler |
119 } // namespace internal | 119 } // namespace internal |
120 } // namespace v8 | 120 } // namespace v8 |
OLD | NEW |