| 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 #ifndef V8_CCTEST_COMPILER_VALUE_HELPER_H_ | 5 #ifndef V8_CCTEST_COMPILER_VALUE_HELPER_H_ |
| 6 #define V8_CCTEST_COMPILER_VALUE_HELPER_H_ | 6 #define V8_CCTEST_COMPILER_VALUE_HELPER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "src/compiler/common-operator.h" | 10 #include "src/compiler/common-operator.h" |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 -62.0f, | 104 -62.0f, |
| 105 -15.0f, | 105 -15.0f, |
| 106 -7.0f, | 106 -7.0f, |
| 107 -1.0f, | 107 -1.0f, |
| 108 -0.0256635f, | 108 -0.0256635f, |
| 109 -4.60374e-07f, | 109 -4.60374e-07f, |
| 110 -3.63759e-10f, | 110 -3.63759e-10f, |
| 111 -4.30175e-14f, | 111 -4.30175e-14f, |
| 112 -5.27385e-15f, | 112 -5.27385e-15f, |
| 113 -1.48084e-15f, | 113 -1.48084e-15f, |
| 114 -2.220446049250313e-16f, |
| 114 -1.05755e-19f, | 115 -1.05755e-19f, |
| 115 -3.2995e-21f, | 116 -3.2995e-21f, |
| 116 -1.67354e-23f, | 117 -1.67354e-23f, |
| 117 -1.11885e-23f, | 118 -1.11885e-23f, |
| 118 -1.78506e-30f, | 119 -1.78506e-30f, |
| 119 -5.07594e-31f, | 120 -5.07594e-31f, |
| 120 -3.65799e-31f, | 121 -3.65799e-31f, |
| 121 -1.43718e-34f, | 122 -1.43718e-34f, |
| 122 -1.27126e-38f, | 123 -1.27126e-38f, |
| 123 -0.0f, | 124 -0.0f, |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 std::numeric_limits<float>::infinity(), | 171 std::numeric_limits<float>::infinity(), |
| 171 nan, | 172 nan, |
| 172 -nan, | 173 -nan, |
| 173 }; | 174 }; |
| 174 return std::vector<float>(&kValues[0], &kValues[arraysize(kValues)]); | 175 return std::vector<float>(&kValues[0], &kValues[arraysize(kValues)]); |
| 175 } | 176 } |
| 176 | 177 |
| 177 static std::vector<double> float64_vector() { | 178 static std::vector<double> float64_vector() { |
| 178 static const double nan = std::numeric_limits<double>::quiet_NaN(); | 179 static const double nan = std::numeric_limits<double>::quiet_NaN(); |
| 179 static const double values[] = {-2e66, | 180 static const double values[] = {-2e66, |
| 181 -2.220446049250313e-16, |
| 180 -9223373136366403584.0, | 182 -9223373136366403584.0, |
| 181 -9223372036854775808.0, // INT64_MIN | 183 -9223372036854775808.0, // INT64_MIN |
| 182 -2147483649.5, | 184 -2147483649.5, |
| 183 -2147483648.25, | 185 -2147483648.25, |
| 184 -2147483648.0, | 186 -2147483648.0, |
| 185 -2147483647.875, | 187 -2147483647.875, |
| 186 -2147483647.125, | 188 -2147483647.125, |
| 187 -2147483647.0, | 189 -2147483647.0, |
| 188 -999.75, | 190 -999.75, |
| 189 -2e66, | 191 -2e66, |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 339 do { \ | 341 do { \ |
| 340 volatile double tmp = lhs; \ | 342 volatile double tmp = lhs; \ |
| 341 CheckDoubleEq(tmp, rhs); \ | 343 CheckDoubleEq(tmp, rhs); \ |
| 342 } while (0) | 344 } while (0) |
| 343 | 345 |
| 344 } // namespace compiler | 346 } // namespace compiler |
| 345 } // namespace internal | 347 } // namespace internal |
| 346 } // namespace v8 | 348 } // namespace v8 |
| 347 | 349 |
| 348 #endif // V8_CCTEST_COMPILER_VALUE_HELPER_H_ | 350 #endif // V8_CCTEST_COMPILER_VALUE_HELPER_H_ |
| OLD | NEW |