| 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/machine-operator.h" | 5 #include "src/compiler/machine-operator.h" |
| 6 #include "src/compiler/operator-properties-inl.h" | 6 #include "src/compiler/operator-properties-inl.h" |
| 7 #include "testing/gtest-support.h" | 7 #include "testing/gtest-support.h" |
| 8 | 8 |
| 9 namespace v8 { | 9 namespace v8 { |
| 10 namespace internal { | 10 namespace internal { |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 PURE(Int64LessThanOrEqual, 2, 1), PURE(Uint64LessThan, 2, 1), | 195 PURE(Int64LessThanOrEqual, 2, 1), PURE(Uint64LessThan, 2, 1), |
| 196 PURE(ChangeFloat32ToFloat64, 1, 1), PURE(ChangeFloat64ToInt32, 1, 1), | 196 PURE(ChangeFloat32ToFloat64, 1, 1), PURE(ChangeFloat64ToInt32, 1, 1), |
| 197 PURE(ChangeFloat64ToUint32, 1, 1), PURE(ChangeInt32ToInt64, 1, 1), | 197 PURE(ChangeFloat64ToUint32, 1, 1), PURE(ChangeInt32ToInt64, 1, 1), |
| 198 PURE(ChangeUint32ToFloat64, 1, 1), PURE(ChangeUint32ToUint64, 1, 1), | 198 PURE(ChangeUint32ToFloat64, 1, 1), PURE(ChangeUint32ToUint64, 1, 1), |
| 199 PURE(TruncateFloat64ToFloat32, 1, 1), PURE(TruncateFloat64ToInt32, 1, 1), | 199 PURE(TruncateFloat64ToFloat32, 1, 1), PURE(TruncateFloat64ToInt32, 1, 1), |
| 200 PURE(TruncateInt64ToInt32, 1, 1), PURE(Float64Add, 2, 1), | 200 PURE(TruncateInt64ToInt32, 1, 1), PURE(Float64Add, 2, 1), |
| 201 PURE(Float64Sub, 2, 1), PURE(Float64Mul, 2, 1), | 201 PURE(Float64Sub, 2, 1), PURE(Float64Mul, 2, 1), |
| 202 PURE(Float64Div, 2, 1), PURE(Float64Mod, 2, 1), | 202 PURE(Float64Div, 2, 1), PURE(Float64Mod, 2, 1), |
| 203 PURE(Float64Sqrt, 1, 1), PURE(Float64Equal, 2, 1), | 203 PURE(Float64Sqrt, 1, 1), PURE(Float64Equal, 2, 1), |
| 204 PURE(Float64LessThan, 2, 1), PURE(Float64LessThanOrEqual, 2, 1), | 204 PURE(Float64LessThan, 2, 1), PURE(Float64LessThanOrEqual, 2, 1), |
| 205 PURE(LoadStackPointer, 0, 1) | 205 PURE(LoadStackPointer, 0, 1), PURE(Float64Floor, 1, 1), |
| 206 PURE(Float64Ceil, 1, 1), PURE(Float64RoundTruncate, 1, 1), |
| 207 PURE(Float64RoundTiesAway, 1, 1), |
| 206 #undef PURE | 208 #undef PURE |
| 207 }; | 209 }; |
| 208 | 210 |
| 209 | 211 |
| 210 typedef MachineOperatorTestWithParam<PureOperator> MachinePureOperatorTest; | 212 typedef MachineOperatorTestWithParam<PureOperator> MachinePureOperatorTest; |
| 211 | 213 |
| 212 } // namespace | 214 } // namespace |
| 213 | 215 |
| 214 | 216 |
| 215 TEST_P(MachinePureOperatorTest, InstancesAreGloballyShared) { | 217 TEST_P(MachinePureOperatorTest, InstancesAreGloballyShared) { |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 304 EXPECT_EQ(machine.Uint64Div(), machine.UintDiv()); | 306 EXPECT_EQ(machine.Uint64Div(), machine.UintDiv()); |
| 305 EXPECT_EQ(machine.Int64Mod(), machine.IntMod()); | 307 EXPECT_EQ(machine.Int64Mod(), machine.IntMod()); |
| 306 EXPECT_EQ(machine.Uint64Mod(), machine.UintMod()); | 308 EXPECT_EQ(machine.Uint64Mod(), machine.UintMod()); |
| 307 EXPECT_EQ(machine.Int64LessThan(), machine.IntLessThan()); | 309 EXPECT_EQ(machine.Int64LessThan(), machine.IntLessThan()); |
| 308 EXPECT_EQ(machine.Int64LessThanOrEqual(), machine.IntLessThanOrEqual()); | 310 EXPECT_EQ(machine.Int64LessThanOrEqual(), machine.IntLessThanOrEqual()); |
| 309 } | 311 } |
| 310 | 312 |
| 311 } // namespace compiler | 313 } // namespace compiler |
| 312 } // namespace internal | 314 } // namespace internal |
| 313 } // namespace v8 | 315 } // namespace v8 |
| OLD | NEW |