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 "src/compiler/common-operator.h" | 5 #include "src/compiler/common-operator.h" |
6 #include "src/compiler/common-operator-reducer.h" | 6 #include "src/compiler/common-operator-reducer.h" |
7 #include "src/compiler/machine-type.h" | 7 #include "src/compiler/machine-type.h" |
| 8 #include "src/compiler/operator.h" |
8 #include "test/unittests/compiler/graph-unittest.h" | 9 #include "test/unittests/compiler/graph-unittest.h" |
9 | 10 |
10 namespace v8 { | 11 namespace v8 { |
11 namespace internal { | 12 namespace internal { |
12 namespace compiler { | 13 namespace compiler { |
13 | 14 |
14 class CommonOperatorReducerTest : public GraphTest { | 15 class CommonOperatorReducerTest : public GraphTest { |
15 public: | 16 public: |
16 explicit CommonOperatorReducerTest(int num_parameters = 1) | 17 explicit CommonOperatorReducerTest(int num_parameters = 1) |
17 : GraphTest(num_parameters) {} | 18 : GraphTest(num_parameters) {} |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 graph()->NewNode(common()->Select(type, hint), input, input, input)); | 102 graph()->NewNode(common()->Select(type, hint), input, input, input)); |
102 ASSERT_TRUE(r.Changed()); | 103 ASSERT_TRUE(r.Changed()); |
103 EXPECT_EQ(input, r.replacement()); | 104 EXPECT_EQ(input, r.replacement()); |
104 } | 105 } |
105 } | 106 } |
106 } | 107 } |
107 | 108 |
108 } // namespace compiler | 109 } // namespace compiler |
109 } // namespace internal | 110 } // namespace internal |
110 } // namespace v8 | 111 } // namespace v8 |
OLD | NEW |