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/base/bits.h" | 5 #include "src/base/bits.h" |
6 #include "src/base/division-by-constant.h" | 6 #include "src/base/division-by-constant.h" |
7 #include "src/compiler/js-graph.h" | 7 #include "src/compiler/js-graph.h" |
8 #include "src/compiler/machine-operator-reducer.h" | 8 #include "src/compiler/machine-operator-reducer.h" |
9 #include "src/compiler/typer.h" | 9 #include "src/compiler/typer.h" |
10 #include "test/unittests/compiler/graph-unittest.h" | 10 #include "test/unittests/compiler/graph-unittest.h" |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 }; | 60 }; |
61 | 61 |
62 | 62 |
63 template <typename T> | 63 template <typename T> |
64 class MachineOperatorReducerTestWithParam | 64 class MachineOperatorReducerTestWithParam |
65 : public MachineOperatorReducerTest, | 65 : public MachineOperatorReducerTest, |
66 public ::testing::WithParamInterface<T> { | 66 public ::testing::WithParamInterface<T> { |
67 public: | 67 public: |
68 explicit MachineOperatorReducerTestWithParam(int num_parameters = 2) | 68 explicit MachineOperatorReducerTestWithParam(int num_parameters = 2) |
69 : MachineOperatorReducerTest(num_parameters) {} | 69 : MachineOperatorReducerTest(num_parameters) {} |
70 ~MachineOperatorReducerTestWithParam() OVERRIDE {} | 70 ~MachineOperatorReducerTestWithParam() override {} |
71 }; | 71 }; |
72 | 72 |
73 | 73 |
74 namespace { | 74 namespace { |
75 | 75 |
76 const float kFloat32Values[] = { | 76 const float kFloat32Values[] = { |
77 -std::numeric_limits<float>::infinity(), -2.70497e+38f, -1.4698e+37f, | 77 -std::numeric_limits<float>::infinity(), -2.70497e+38f, -1.4698e+37f, |
78 -1.22813e+35f, -1.20555e+35f, -1.34584e+34f, | 78 -1.22813e+35f, -1.20555e+35f, -1.34584e+34f, |
79 -1.0079e+32f, -6.49364e+26f, -3.06077e+25f, | 79 -1.0079e+32f, -6.49364e+26f, -3.06077e+25f, |
80 -1.46821e+25f, -1.17658e+23f, -1.9617e+22f, | 80 -1.46821e+25f, -1.17658e+23f, -1.9617e+22f, |
(...skipping 1485 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1566 Reduction r = Reduce(node); | 1566 Reduction r = Reduce(node); |
1567 ASSERT_TRUE(r.Changed()); | 1567 ASSERT_TRUE(r.Changed()); |
1568 EXPECT_THAT(r.replacement(), | 1568 EXPECT_THAT(r.replacement(), |
1569 IsStore(rep, base, index, value, effect, control)); | 1569 IsStore(rep, base, index, value, effect, control)); |
1570 } | 1570 } |
1571 } | 1571 } |
1572 | 1572 |
1573 } // namespace compiler | 1573 } // namespace compiler |
1574 } // namespace internal | 1574 } // namespace internal |
1575 } // namespace v8 | 1575 } // namespace v8 |
OLD | NEW |