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-operator.h" | 7 #include "src/compiler/machine-operator.h" |
8 #include "src/compiler/machine-type.h" | |
9 #include "src/compiler/operator.h" | 8 #include "src/compiler/operator.h" |
10 #include "src/compiler/simplified-operator.h" | 9 #include "src/compiler/simplified-operator.h" |
| 10 #include "src/machine-type.h" |
11 #include "test/unittests/compiler/graph-reducer-unittest.h" | 11 #include "test/unittests/compiler/graph-reducer-unittest.h" |
12 #include "test/unittests/compiler/graph-unittest.h" | 12 #include "test/unittests/compiler/graph-unittest.h" |
13 #include "test/unittests/compiler/node-test-utils.h" | 13 #include "test/unittests/compiler/node-test-utils.h" |
14 | 14 |
15 using testing::StrictMock; | 15 using testing::StrictMock; |
16 | 16 |
17 namespace v8 { | 17 namespace v8 { |
18 namespace internal { | 18 namespace internal { |
19 namespace compiler { | 19 namespace compiler { |
20 | 20 |
(...skipping 585 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
606 Node* select = | 606 Node* select = |
607 graph()->NewNode(common()->Select(kMachFloat64), check, p0, p1); | 607 graph()->NewNode(common()->Select(kMachFloat64), check, p0, p1); |
608 Reduction r = Reduce(select, MachineOperatorBuilder::kFloat64Min); | 608 Reduction r = Reduce(select, MachineOperatorBuilder::kFloat64Min); |
609 ASSERT_TRUE(r.Changed()); | 609 ASSERT_TRUE(r.Changed()); |
610 EXPECT_THAT(r.replacement(), IsFloat64Min(p0, p1)); | 610 EXPECT_THAT(r.replacement(), IsFloat64Min(p0, p1)); |
611 } | 611 } |
612 | 612 |
613 } // namespace compiler | 613 } // namespace compiler |
614 } // namespace internal | 614 } // namespace internal |
615 } // namespace v8 | 615 } // namespace v8 |
OLD | NEW |