| 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/opcodes.h" | 6 #include "src/compiler/opcodes.h" |
| 7 #include "src/compiler/operator.h" | 7 #include "src/compiler/operator.h" |
| 8 #include "src/compiler/operator-properties.h" | 8 #include "src/compiler/operator-properties.h" |
| 9 #include "test/unittests/test-utils.h" | 9 #include "test/unittests/test-utils.h" |
| 10 | 10 |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 PURE(Uint32LessThan, 2, 0, 1), PURE(Uint32LessThanOrEqual, 2, 0, 1), | 193 PURE(Uint32LessThan, 2, 0, 1), PURE(Uint32LessThanOrEqual, 2, 0, 1), |
| 194 PURE(Int64Add, 2, 0, 1), PURE(Int64Sub, 2, 0, 1), PURE(Int64Mul, 2, 0, 1), | 194 PURE(Int64Add, 2, 0, 1), PURE(Int64Sub, 2, 0, 1), PURE(Int64Mul, 2, 0, 1), |
| 195 PURE(Int64Div, 2, 0, 1), PURE(Uint64Div, 2, 0, 1), PURE(Int64Mod, 2, 0, 1), | 195 PURE(Int64Div, 2, 0, 1), PURE(Uint64Div, 2, 0, 1), PURE(Int64Mod, 2, 0, 1), |
| 196 PURE(Uint64Mod, 2, 0, 1), PURE(Int64LessThan, 2, 0, 1), | 196 PURE(Uint64Mod, 2, 0, 1), PURE(Int64LessThan, 2, 0, 1), |
| 197 PURE(Int64LessThanOrEqual, 2, 0, 1), PURE(Uint64LessThan, 2, 0, 1), | 197 PURE(Int64LessThanOrEqual, 2, 0, 1), PURE(Uint64LessThan, 2, 0, 1), |
| 198 PURE(ChangeFloat32ToFloat64, 1, 0, 1), PURE(ChangeFloat64ToInt32, 1, 0, 1), | 198 PURE(ChangeFloat32ToFloat64, 1, 0, 1), PURE(ChangeFloat64ToInt32, 1, 0, 1), |
| 199 PURE(ChangeFloat64ToUint32, 1, 0, 1), PURE(ChangeInt32ToInt64, 1, 0, 1), | 199 PURE(ChangeFloat64ToUint32, 1, 0, 1), PURE(ChangeInt32ToInt64, 1, 0, 1), |
| 200 PURE(ChangeUint32ToFloat64, 1, 0, 1), PURE(ChangeUint32ToUint64, 1, 0, 1), | 200 PURE(ChangeUint32ToFloat64, 1, 0, 1), PURE(ChangeUint32ToUint64, 1, 0, 1), |
| 201 PURE(TruncateFloat64ToFloat32, 1, 0, 1), | 201 PURE(TruncateFloat64ToFloat32, 1, 0, 1), |
| 202 PURE(TruncateFloat64ToInt32, 1, 0, 1), PURE(TruncateInt64ToInt32, 1, 0, 1), | 202 PURE(TruncateFloat64ToInt32, 1, 0, 1), PURE(TruncateInt64ToInt32, 1, 0, 1), |
| 203 PURE(Float32Add, 2, 0, 1), PURE(Float32Sub, 2, 0, 1), |
| 204 PURE(Float32Mul, 2, 0, 1), PURE(Float32Div, 2, 0, 1), |
| 205 PURE(Float32Sqrt, 1, 0, 1), PURE(Float32Equal, 2, 0, 1), |
| 206 PURE(Float32LessThan, 2, 0, 1), PURE(Float32LessThanOrEqual, 2, 0, 1), |
| 207 PURE(Float32Max, 2, 0, 1), PURE(Float32Min, 2, 0, 1), |
| 203 PURE(Float64Add, 2, 0, 1), PURE(Float64Sub, 2, 0, 1), | 208 PURE(Float64Add, 2, 0, 1), PURE(Float64Sub, 2, 0, 1), |
| 204 PURE(Float64Mul, 2, 0, 1), PURE(Float64Div, 2, 0, 1), | 209 PURE(Float64Mul, 2, 0, 1), PURE(Float64Div, 2, 0, 1), |
| 205 PURE(Float64Mod, 2, 0, 1), PURE(Float64Sqrt, 1, 0, 1), | 210 PURE(Float64Mod, 2, 0, 1), PURE(Float64Sqrt, 1, 0, 1), |
| 206 PURE(Float64Equal, 2, 0, 1), PURE(Float64LessThan, 2, 0, 1), | 211 PURE(Float64Equal, 2, 0, 1), PURE(Float64LessThan, 2, 0, 1), |
| 207 PURE(Float64LessThanOrEqual, 2, 0, 1), PURE(LoadStackPointer, 0, 0, 1), | 212 PURE(Float64LessThanOrEqual, 2, 0, 1), PURE(Float64Max, 2, 0, 1), |
| 213 PURE(Float64Min, 2, 0, 1), PURE(LoadStackPointer, 0, 0, 1), |
| 208 PURE(Float64RoundDown, 1, 0, 1), PURE(Float64RoundTruncate, 1, 0, 1), | 214 PURE(Float64RoundDown, 1, 0, 1), PURE(Float64RoundTruncate, 1, 0, 1), |
| 209 PURE(Float64RoundTiesAway, 1, 0, 1), PURE(Float64ExtractLowWord32, 1, 0, 1), | 215 PURE(Float64RoundTiesAway, 1, 0, 1), PURE(Float64ExtractLowWord32, 1, 0, 1), |
| 210 PURE(Float64ExtractHighWord32, 1, 0, 1), | 216 PURE(Float64ExtractHighWord32, 1, 0, 1), |
| 211 PURE(Float64InsertLowWord32, 2, 0, 1), | 217 PURE(Float64InsertLowWord32, 2, 0, 1), |
| 212 PURE(Float64InsertHighWord32, 2, 0, 1), PURE(Float64Max, 2, 0, 1), | 218 PURE(Float64InsertHighWord32, 2, 0, 1) |
| 213 PURE(Float64Min, 2, 0, 1) | |
| 214 #undef PURE | 219 #undef PURE |
| 215 }; | 220 }; |
| 216 | 221 |
| 217 | 222 |
| 218 typedef MachineOperatorTestWithParam<PureOperator> MachinePureOperatorTest; | 223 typedef MachineOperatorTestWithParam<PureOperator> MachinePureOperatorTest; |
| 219 | 224 |
| 220 } // namespace | 225 } // namespace |
| 221 | 226 |
| 222 | 227 |
| 223 TEST_P(MachinePureOperatorTest, InstancesAreGloballyShared) { | 228 TEST_P(MachinePureOperatorTest, InstancesAreGloballyShared) { |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 319 EXPECT_EQ(machine.Uint64Div(), machine.UintDiv()); | 324 EXPECT_EQ(machine.Uint64Div(), machine.UintDiv()); |
| 320 EXPECT_EQ(machine.Int64Mod(), machine.IntMod()); | 325 EXPECT_EQ(machine.Int64Mod(), machine.IntMod()); |
| 321 EXPECT_EQ(machine.Uint64Mod(), machine.UintMod()); | 326 EXPECT_EQ(machine.Uint64Mod(), machine.UintMod()); |
| 322 EXPECT_EQ(machine.Int64LessThan(), machine.IntLessThan()); | 327 EXPECT_EQ(machine.Int64LessThan(), machine.IntLessThan()); |
| 323 EXPECT_EQ(machine.Int64LessThanOrEqual(), machine.IntLessThanOrEqual()); | 328 EXPECT_EQ(machine.Int64LessThanOrEqual(), machine.IntLessThanOrEqual()); |
| 324 } | 329 } |
| 325 | 330 |
| 326 } // namespace compiler | 331 } // namespace compiler |
| 327 } // namespace internal | 332 } // namespace internal |
| 328 } // namespace v8 | 333 } // namespace v8 |
| OLD | NEW |