| 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 | 6 |
| 7 #include "src/base/lazy-instance.h" | 7 #include "src/base/lazy-instance.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 | 10 |
| (...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 V(Float32x4Min, Operator::kCommutative, 2, 0, 1) \ | 235 V(Float32x4Min, Operator::kCommutative, 2, 0, 1) \ |
| 236 V(Float32x4Max, Operator::kCommutative, 2, 0, 1) \ | 236 V(Float32x4Max, Operator::kCommutative, 2, 0, 1) \ |
| 237 V(Float32x4MinNum, Operator::kCommutative, 2, 0, 1) \ | 237 V(Float32x4MinNum, Operator::kCommutative, 2, 0, 1) \ |
| 238 V(Float32x4MaxNum, Operator::kCommutative, 2, 0, 1) \ | 238 V(Float32x4MaxNum, Operator::kCommutative, 2, 0, 1) \ |
| 239 V(Float32x4Equal, Operator::kCommutative, 2, 0, 1) \ | 239 V(Float32x4Equal, Operator::kCommutative, 2, 0, 1) \ |
| 240 V(Float32x4NotEqual, Operator::kCommutative, 2, 0, 1) \ | 240 V(Float32x4NotEqual, Operator::kCommutative, 2, 0, 1) \ |
| 241 V(Float32x4LessThan, Operator::kNoProperties, 2, 0, 1) \ | 241 V(Float32x4LessThan, Operator::kNoProperties, 2, 0, 1) \ |
| 242 V(Float32x4LessThanOrEqual, Operator::kNoProperties, 2, 0, 1) \ | 242 V(Float32x4LessThanOrEqual, Operator::kNoProperties, 2, 0, 1) \ |
| 243 V(Float32x4GreaterThan, Operator::kNoProperties, 2, 0, 1) \ | 243 V(Float32x4GreaterThan, Operator::kNoProperties, 2, 0, 1) \ |
| 244 V(Float32x4GreaterThanOrEqual, Operator::kNoProperties, 2, 0, 1) \ | 244 V(Float32x4GreaterThanOrEqual, Operator::kNoProperties, 2, 0, 1) \ |
| 245 V(Float32x4Select, Operator::kNoProperties, 3, 0, 1) \ | |
| 246 V(Float32x4Swizzle, Operator::kNoProperties, 5, 0, 1) \ | |
| 247 V(Float32x4Shuffle, Operator::kNoProperties, 6, 0, 1) \ | |
| 248 V(Float32x4FromInt32x4, Operator::kNoProperties, 1, 0, 1) \ | 245 V(Float32x4FromInt32x4, Operator::kNoProperties, 1, 0, 1) \ |
| 249 V(Float32x4FromUint32x4, Operator::kNoProperties, 1, 0, 1) \ | 246 V(Float32x4FromUint32x4, Operator::kNoProperties, 1, 0, 1) \ |
| 250 V(CreateInt32x4, Operator::kNoProperties, 4, 0, 1) \ | 247 V(CreateInt32x4, Operator::kNoProperties, 4, 0, 1) \ |
| 251 V(Int32x4ExtractLane, Operator::kNoProperties, 2, 0, 1) \ | 248 V(Int32x4ExtractLane, Operator::kNoProperties, 2, 0, 1) \ |
| 252 V(Int32x4ReplaceLane, Operator::kNoProperties, 3, 0, 1) \ | 249 V(Int32x4ReplaceLane, Operator::kNoProperties, 3, 0, 1) \ |
| 253 V(Int32x4Neg, Operator::kNoProperties, 1, 0, 1) \ | 250 V(Int32x4Neg, Operator::kNoProperties, 1, 0, 1) \ |
| 254 V(Int32x4Add, Operator::kCommutative, 2, 0, 1) \ | 251 V(Int32x4Add, Operator::kCommutative, 2, 0, 1) \ |
| 255 V(Int32x4Sub, Operator::kNoProperties, 2, 0, 1) \ | 252 V(Int32x4Sub, Operator::kNoProperties, 2, 0, 1) \ |
| 256 V(Int32x4Mul, Operator::kCommutative, 2, 0, 1) \ | 253 V(Int32x4Mul, Operator::kCommutative, 2, 0, 1) \ |
| 257 V(Int32x4Min, Operator::kCommutative, 2, 0, 1) \ | 254 V(Int32x4Min, Operator::kCommutative, 2, 0, 1) \ |
| 258 V(Int32x4Max, Operator::kCommutative, 2, 0, 1) \ | 255 V(Int32x4Max, Operator::kCommutative, 2, 0, 1) \ |
| 259 V(Int32x4ShiftLeftByScalar, Operator::kNoProperties, 2, 0, 1) \ | 256 V(Int32x4ShiftLeftByScalar, Operator::kNoProperties, 2, 0, 1) \ |
| 260 V(Int32x4ShiftRightByScalar, Operator::kNoProperties, 2, 0, 1) \ | 257 V(Int32x4ShiftRightByScalar, Operator::kNoProperties, 2, 0, 1) \ |
| 261 V(Int32x4Equal, Operator::kCommutative, 2, 0, 1) \ | 258 V(Int32x4Equal, Operator::kCommutative, 2, 0, 1) \ |
| 262 V(Int32x4NotEqual, Operator::kCommutative, 2, 0, 1) \ | 259 V(Int32x4NotEqual, Operator::kCommutative, 2, 0, 1) \ |
| 263 V(Int32x4LessThan, Operator::kNoProperties, 2, 0, 1) \ | 260 V(Int32x4LessThan, Operator::kNoProperties, 2, 0, 1) \ |
| 264 V(Int32x4LessThanOrEqual, Operator::kNoProperties, 2, 0, 1) \ | 261 V(Int32x4LessThanOrEqual, Operator::kNoProperties, 2, 0, 1) \ |
| 265 V(Int32x4GreaterThan, Operator::kNoProperties, 2, 0, 1) \ | 262 V(Int32x4GreaterThan, Operator::kNoProperties, 2, 0, 1) \ |
| 266 V(Int32x4GreaterThanOrEqual, Operator::kNoProperties, 2, 0, 1) \ | 263 V(Int32x4GreaterThanOrEqual, Operator::kNoProperties, 2, 0, 1) \ |
| 267 V(Int32x4Select, Operator::kNoProperties, 3, 0, 1) \ | |
| 268 V(Int32x4Swizzle, Operator::kNoProperties, 5, 0, 1) \ | |
| 269 V(Int32x4Shuffle, Operator::kNoProperties, 6, 0, 1) \ | |
| 270 V(Int32x4FromFloat32x4, Operator::kNoProperties, 1, 0, 1) \ | 264 V(Int32x4FromFloat32x4, Operator::kNoProperties, 1, 0, 1) \ |
| 271 V(Uint32x4Min, Operator::kCommutative, 2, 0, 1) \ | 265 V(Uint32x4Min, Operator::kCommutative, 2, 0, 1) \ |
| 272 V(Uint32x4Max, Operator::kCommutative, 2, 0, 1) \ | 266 V(Uint32x4Max, Operator::kCommutative, 2, 0, 1) \ |
| 273 V(Uint32x4ShiftLeftByScalar, Operator::kNoProperties, 2, 0, 1) \ | 267 V(Uint32x4ShiftLeftByScalar, Operator::kNoProperties, 2, 0, 1) \ |
| 274 V(Uint32x4ShiftRightByScalar, Operator::kNoProperties, 2, 0, 1) \ | 268 V(Uint32x4ShiftRightByScalar, Operator::kNoProperties, 2, 0, 1) \ |
| 275 V(Uint32x4LessThan, Operator::kNoProperties, 2, 0, 1) \ | 269 V(Uint32x4LessThan, Operator::kNoProperties, 2, 0, 1) \ |
| 276 V(Uint32x4LessThanOrEqual, Operator::kNoProperties, 2, 0, 1) \ | 270 V(Uint32x4LessThanOrEqual, Operator::kNoProperties, 2, 0, 1) \ |
| 277 V(Uint32x4GreaterThan, Operator::kNoProperties, 2, 0, 1) \ | 271 V(Uint32x4GreaterThan, Operator::kNoProperties, 2, 0, 1) \ |
| 278 V(Uint32x4GreaterThanOrEqual, Operator::kNoProperties, 2, 0, 1) \ | 272 V(Uint32x4GreaterThanOrEqual, Operator::kNoProperties, 2, 0, 1) \ |
| 279 V(Uint32x4FromFloat32x4, Operator::kNoProperties, 1, 0, 1) \ | 273 V(Uint32x4FromFloat32x4, Operator::kNoProperties, 1, 0, 1) \ |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 384 V(Simd128Load1, Operator::kNoProperties, 2, 0, 1) \ | 378 V(Simd128Load1, Operator::kNoProperties, 2, 0, 1) \ |
| 385 V(Simd128Load2, Operator::kNoProperties, 2, 0, 1) \ | 379 V(Simd128Load2, Operator::kNoProperties, 2, 0, 1) \ |
| 386 V(Simd128Load3, Operator::kNoProperties, 2, 0, 1) \ | 380 V(Simd128Load3, Operator::kNoProperties, 2, 0, 1) \ |
| 387 V(Simd128Store, Operator::kNoProperties, 3, 0, 1) \ | 381 V(Simd128Store, Operator::kNoProperties, 3, 0, 1) \ |
| 388 V(Simd128Store1, Operator::kNoProperties, 3, 0, 1) \ | 382 V(Simd128Store1, Operator::kNoProperties, 3, 0, 1) \ |
| 389 V(Simd128Store2, Operator::kNoProperties, 3, 0, 1) \ | 383 V(Simd128Store2, Operator::kNoProperties, 3, 0, 1) \ |
| 390 V(Simd128Store3, Operator::kNoProperties, 3, 0, 1) \ | 384 V(Simd128Store3, Operator::kNoProperties, 3, 0, 1) \ |
| 391 V(Simd128And, Operator::kAssociative | Operator::kCommutative, 2, 0, 1) \ | 385 V(Simd128And, Operator::kAssociative | Operator::kCommutative, 2, 0, 1) \ |
| 392 V(Simd128Or, Operator::kAssociative | Operator::kCommutative, 2, 0, 1) \ | 386 V(Simd128Or, Operator::kAssociative | Operator::kCommutative, 2, 0, 1) \ |
| 393 V(Simd128Xor, Operator::kAssociative | Operator::kCommutative, 2, 0, 1) \ | 387 V(Simd128Xor, Operator::kAssociative | Operator::kCommutative, 2, 0, 1) \ |
| 394 V(Simd128Not, Operator::kNoProperties, 1, 0, 1) | 388 V(Simd128Not, Operator::kNoProperties, 1, 0, 1) \ |
| 389 V(Simd32x4Select, Operator::kNoProperties, 3, 0, 1) \ |
| 390 V(Simd32x4Swizzle, Operator::kNoProperties, 5, 0, 1) \ |
| 391 V(Simd32x4Shuffle, Operator::kNoProperties, 6, 0, 1) |
| 395 | 392 |
| 396 #define PURE_OPTIONAL_OP_LIST(V) \ | 393 #define PURE_OPTIONAL_OP_LIST(V) \ |
| 397 V(Word32Ctz, Operator::kNoProperties, 1, 0, 1) \ | 394 V(Word32Ctz, Operator::kNoProperties, 1, 0, 1) \ |
| 398 V(Word64Ctz, Operator::kNoProperties, 1, 0, 1) \ | 395 V(Word64Ctz, Operator::kNoProperties, 1, 0, 1) \ |
| 399 V(Word32ReverseBits, Operator::kNoProperties, 1, 0, 1) \ | 396 V(Word32ReverseBits, Operator::kNoProperties, 1, 0, 1) \ |
| 400 V(Word64ReverseBits, Operator::kNoProperties, 1, 0, 1) \ | 397 V(Word64ReverseBits, Operator::kNoProperties, 1, 0, 1) \ |
| 401 V(Word32ReverseBytes, Operator::kNoProperties, 1, 0, 1) \ | 398 V(Word32ReverseBytes, Operator::kNoProperties, 1, 0, 1) \ |
| 402 V(Word64ReverseBytes, Operator::kNoProperties, 1, 0, 1) \ | 399 V(Word64ReverseBytes, Operator::kNoProperties, 1, 0, 1) \ |
| 403 V(Word32Popcnt, Operator::kNoProperties, 1, 0, 1) \ | 400 V(Word32Popcnt, Operator::kNoProperties, 1, 0, 1) \ |
| 404 V(Word64Popcnt, Operator::kNoProperties, 1, 0, 1) \ | 401 V(Word64Popcnt, Operator::kNoProperties, 1, 0, 1) \ |
| (...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 850 } | 847 } |
| 851 ATOMIC_REPRESENTATION_LIST(STORE) | 848 ATOMIC_REPRESENTATION_LIST(STORE) |
| 852 #undef STORE | 849 #undef STORE |
| 853 UNREACHABLE(); | 850 UNREACHABLE(); |
| 854 return nullptr; | 851 return nullptr; |
| 855 } | 852 } |
| 856 | 853 |
| 857 } // namespace compiler | 854 } // namespace compiler |
| 858 } // namespace internal | 855 } // namespace internal |
| 859 } // namespace v8 | 856 } // namespace v8 |
| OLD | NEW |