| 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/common-operator.h" | 7 #include "src/compiler/common-operator.h" |
| 8 #include "src/compiler/opcodes.h" | 8 #include "src/compiler/opcodes.h" |
| 9 #include "src/compiler/operator.h" | 9 #include "src/compiler/operator.h" |
| 10 #include "src/compiler/operator-properties.h" | 10 #include "src/compiler/operator-properties.h" |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 -1.0f, | 141 -1.0f, |
| 142 -0.0f, | 142 -0.0f, |
| 143 0.0f, | 143 0.0f, |
| 144 1.0f, | 144 1.0f, |
| 145 std::numeric_limits<float>::max(), | 145 std::numeric_limits<float>::max(), |
| 146 std::numeric_limits<float>::infinity(), | 146 std::numeric_limits<float>::infinity(), |
| 147 std::numeric_limits<float>::quiet_NaN(), | 147 std::numeric_limits<float>::quiet_NaN(), |
| 148 std::numeric_limits<float>::signaling_NaN()}; | 148 std::numeric_limits<float>::signaling_NaN()}; |
| 149 | 149 |
| 150 | 150 |
| 151 const double kDoubleValues[] = {-std::numeric_limits<double>::infinity(), | |
| 152 std::numeric_limits<double>::min(), | |
| 153 -1.0, | |
| 154 -0.0, | |
| 155 0.0, | |
| 156 1.0, | |
| 157 std::numeric_limits<double>::max(), | |
| 158 std::numeric_limits<double>::infinity(), | |
| 159 std::numeric_limits<double>::quiet_NaN(), | |
| 160 std::numeric_limits<double>::signaling_NaN()}; | |
| 161 | |
| 162 | |
| 163 const size_t kInputCounts[] = {3, 4, 100, 255, 1024, 65000}; | 151 const size_t kInputCounts[] = {3, 4, 100, 255, 1024, 65000}; |
| 164 | 152 |
| 165 | 153 |
| 166 const int32_t kInt32Values[] = { | 154 const int32_t kInt32Values[] = { |
| 167 std::numeric_limits<int32_t>::min(), -1914954528, -1698749618, -1578693386, | 155 std::numeric_limits<int32_t>::min(), -1914954528, -1698749618, -1578693386, |
| 168 -1577976073, -1573998034, -1529085059, -1499540537, -1299205097, | 156 -1577976073, -1573998034, -1529085059, -1499540537, -1299205097, |
| 169 -1090814845, -938186388, -806828902, -750927650, -520676892, -513661538, | 157 -1090814845, -938186388, -806828902, -750927650, -520676892, -513661538, |
| 170 -453036354, -433622833, -282638793, -28375, -27788, -22770, -18806, -14173, | 158 -453036354, -433622833, -282638793, -28375, -27788, -22770, -18806, -14173, |
| 171 -11956, -11200, -10212, -8160, -3751, -2758, -1522, -121, -120, -118, -117, | 159 -11956, -11200, -10212, -8160, -3751, -2758, -1522, -121, -120, -118, -117, |
| 172 -106, -84, -80, -74, -59, -52, -48, -39, -35, -17, -11, -10, -9, -7, -5, 0, | 160 -106, -84, -80, -74, -59, -52, -48, -39, -35, -17, -11, -10, -9, -7, -5, 0, |
| (...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 375 EXPECT_EQ(arguments + 1, OperatorProperties::GetTotalInputCount(op)); | 363 EXPECT_EQ(arguments + 1, OperatorProperties::GetTotalInputCount(op)); |
| 376 EXPECT_EQ(0, op->ControlOutputCount()); | 364 EXPECT_EQ(0, op->ControlOutputCount()); |
| 377 EXPECT_EQ(0, op->EffectOutputCount()); | 365 EXPECT_EQ(0, op->EffectOutputCount()); |
| 378 EXPECT_EQ(1, op->ValueOutputCount()); | 366 EXPECT_EQ(1, op->ValueOutputCount()); |
| 379 } | 367 } |
| 380 } | 368 } |
| 381 | 369 |
| 382 } // namespace compiler | 370 } // namespace compiler |
| 383 } // namespace internal | 371 } // namespace internal |
| 384 } // namespace v8 | 372 } // namespace v8 |
| OLD | NEW |