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/node.h" |
| 9 #include "src/compiler/operator.h" |
8 #include "src/compiler/value-numbering-reducer.h" | 10 #include "src/compiler/value-numbering-reducer.h" |
9 #include "test/unittests/test-utils.h" | 11 #include "test/unittests/test-utils.h" |
10 | 12 |
11 namespace v8 { | 13 namespace v8 { |
12 namespace internal { | 14 namespace internal { |
13 namespace compiler { | 15 namespace compiler { |
14 | 16 |
15 struct TestOperator : public Operator { | 17 struct TestOperator : public Operator { |
16 TestOperator(Operator::Opcode opcode, Operator::Properties properties, | 18 TestOperator(Operator::Opcode opcode, Operator::Properties properties, |
17 size_t value_in, size_t value_out) | 19 size_t value_in, size_t value_out) |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 | 123 |
122 TEST_F(ValueNumberingReducerTest, WontReplaceNodeWithItself) { | 124 TEST_F(ValueNumberingReducerTest, WontReplaceNodeWithItself) { |
123 Node* n = graph()->NewNode(&kOp0); | 125 Node* n = graph()->NewNode(&kOp0); |
124 EXPECT_FALSE(Reduce(n).Changed()); | 126 EXPECT_FALSE(Reduce(n).Changed()); |
125 EXPECT_FALSE(Reduce(n).Changed()); | 127 EXPECT_FALSE(Reduce(n).Changed()); |
126 } | 128 } |
127 | 129 |
128 } // namespace compiler | 130 } // namespace compiler |
129 } // namespace internal | 131 } // namespace internal |
130 } // namespace v8 | 132 } // namespace v8 |
OLD | NEW |