| 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 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 V(I32x4SConvertI16x8High, Operator::kNoProperties, 1, 0, 1) \ | 263 V(I32x4SConvertI16x8High, Operator::kNoProperties, 1, 0, 1) \ |
| 264 V(I32x4Neg, Operator::kNoProperties, 1, 0, 1) \ | 264 V(I32x4Neg, Operator::kNoProperties, 1, 0, 1) \ |
| 265 V(I32x4Add, Operator::kCommutative, 2, 0, 1) \ | 265 V(I32x4Add, Operator::kCommutative, 2, 0, 1) \ |
| 266 V(I32x4AddHoriz, Operator::kNoProperties, 2, 0, 1) \ | 266 V(I32x4AddHoriz, Operator::kNoProperties, 2, 0, 1) \ |
| 267 V(I32x4Sub, Operator::kNoProperties, 2, 0, 1) \ | 267 V(I32x4Sub, Operator::kNoProperties, 2, 0, 1) \ |
| 268 V(I32x4Mul, Operator::kCommutative, 2, 0, 1) \ | 268 V(I32x4Mul, Operator::kCommutative, 2, 0, 1) \ |
| 269 V(I32x4MinS, Operator::kCommutative, 2, 0, 1) \ | 269 V(I32x4MinS, Operator::kCommutative, 2, 0, 1) \ |
| 270 V(I32x4MaxS, Operator::kCommutative, 2, 0, 1) \ | 270 V(I32x4MaxS, Operator::kCommutative, 2, 0, 1) \ |
| 271 V(I32x4Eq, Operator::kCommutative, 2, 0, 1) \ | 271 V(I32x4Eq, Operator::kCommutative, 2, 0, 1) \ |
| 272 V(I32x4Ne, Operator::kCommutative, 2, 0, 1) \ | 272 V(I32x4Ne, Operator::kCommutative, 2, 0, 1) \ |
| 273 V(I32x4LtS, Operator::kNoProperties, 2, 0, 1) \ | 273 V(I32x4GtS, Operator::kNoProperties, 2, 0, 1) \ |
| 274 V(I32x4LeS, Operator::kNoProperties, 2, 0, 1) \ | 274 V(I32x4GeS, Operator::kNoProperties, 2, 0, 1) \ |
| 275 V(I32x4UConvertF32x4, Operator::kNoProperties, 1, 0, 1) \ | 275 V(I32x4UConvertF32x4, Operator::kNoProperties, 1, 0, 1) \ |
| 276 V(I32x4UConvertI16x8Low, Operator::kNoProperties, 1, 0, 1) \ | 276 V(I32x4UConvertI16x8Low, Operator::kNoProperties, 1, 0, 1) \ |
| 277 V(I32x4UConvertI16x8High, Operator::kNoProperties, 1, 0, 1) \ | 277 V(I32x4UConvertI16x8High, Operator::kNoProperties, 1, 0, 1) \ |
| 278 V(I32x4MinU, Operator::kCommutative, 2, 0, 1) \ | 278 V(I32x4MinU, Operator::kCommutative, 2, 0, 1) \ |
| 279 V(I32x4MaxU, Operator::kCommutative, 2, 0, 1) \ | 279 V(I32x4MaxU, Operator::kCommutative, 2, 0, 1) \ |
| 280 V(I32x4LtU, Operator::kNoProperties, 2, 0, 1) \ | 280 V(I32x4GtU, Operator::kNoProperties, 2, 0, 1) \ |
| 281 V(I32x4LeU, Operator::kNoProperties, 2, 0, 1) \ | 281 V(I32x4GeU, Operator::kNoProperties, 2, 0, 1) \ |
| 282 V(I16x8Splat, Operator::kNoProperties, 1, 0, 1) \ | 282 V(I16x8Splat, Operator::kNoProperties, 1, 0, 1) \ |
| 283 V(I16x8SConvertI8x16Low, Operator::kNoProperties, 1, 0, 1) \ | 283 V(I16x8SConvertI8x16Low, Operator::kNoProperties, 1, 0, 1) \ |
| 284 V(I16x8SConvertI8x16High, Operator::kNoProperties, 1, 0, 1) \ | 284 V(I16x8SConvertI8x16High, Operator::kNoProperties, 1, 0, 1) \ |
| 285 V(I16x8Neg, Operator::kNoProperties, 1, 0, 1) \ | 285 V(I16x8Neg, Operator::kNoProperties, 1, 0, 1) \ |
| 286 V(I16x8SConvertI32x4, Operator::kNoProperties, 2, 0, 1) \ | 286 V(I16x8SConvertI32x4, Operator::kNoProperties, 2, 0, 1) \ |
| 287 V(I16x8Add, Operator::kCommutative, 2, 0, 1) \ | 287 V(I16x8Add, Operator::kCommutative, 2, 0, 1) \ |
| 288 V(I16x8AddSaturateS, Operator::kCommutative, 2, 0, 1) \ | 288 V(I16x8AddSaturateS, Operator::kCommutative, 2, 0, 1) \ |
| 289 V(I16x8AddHoriz, Operator::kNoProperties, 2, 0, 1) \ | 289 V(I16x8AddHoriz, Operator::kNoProperties, 2, 0, 1) \ |
| 290 V(I16x8Sub, Operator::kNoProperties, 2, 0, 1) \ | 290 V(I16x8Sub, Operator::kNoProperties, 2, 0, 1) \ |
| 291 V(I16x8SubSaturateS, Operator::kNoProperties, 2, 0, 1) \ | 291 V(I16x8SubSaturateS, Operator::kNoProperties, 2, 0, 1) \ |
| 292 V(I16x8Mul, Operator::kCommutative, 2, 0, 1) \ | 292 V(I16x8Mul, Operator::kCommutative, 2, 0, 1) \ |
| 293 V(I16x8MinS, Operator::kCommutative, 2, 0, 1) \ | 293 V(I16x8MinS, Operator::kCommutative, 2, 0, 1) \ |
| 294 V(I16x8MaxS, Operator::kCommutative, 2, 0, 1) \ | 294 V(I16x8MaxS, Operator::kCommutative, 2, 0, 1) \ |
| 295 V(I16x8Eq, Operator::kCommutative, 2, 0, 1) \ | 295 V(I16x8Eq, Operator::kCommutative, 2, 0, 1) \ |
| 296 V(I16x8Ne, Operator::kCommutative, 2, 0, 1) \ | 296 V(I16x8Ne, Operator::kCommutative, 2, 0, 1) \ |
| 297 V(I16x8LtS, Operator::kNoProperties, 2, 0, 1) \ | 297 V(I16x8GtS, Operator::kNoProperties, 2, 0, 1) \ |
| 298 V(I16x8LeS, Operator::kNoProperties, 2, 0, 1) \ | 298 V(I16x8GeS, Operator::kNoProperties, 2, 0, 1) \ |
| 299 V(I16x8UConvertI8x16Low, Operator::kNoProperties, 1, 0, 1) \ | 299 V(I16x8UConvertI8x16Low, Operator::kNoProperties, 1, 0, 1) \ |
| 300 V(I16x8UConvertI8x16High, Operator::kNoProperties, 1, 0, 1) \ | 300 V(I16x8UConvertI8x16High, Operator::kNoProperties, 1, 0, 1) \ |
| 301 V(I16x8UConvertI32x4, Operator::kNoProperties, 2, 0, 1) \ | 301 V(I16x8UConvertI32x4, Operator::kNoProperties, 2, 0, 1) \ |
| 302 V(I16x8AddSaturateU, Operator::kCommutative, 2, 0, 1) \ | 302 V(I16x8AddSaturateU, Operator::kCommutative, 2, 0, 1) \ |
| 303 V(I16x8SubSaturateU, Operator::kNoProperties, 2, 0, 1) \ | 303 V(I16x8SubSaturateU, Operator::kNoProperties, 2, 0, 1) \ |
| 304 V(I16x8MinU, Operator::kCommutative, 2, 0, 1) \ | 304 V(I16x8MinU, Operator::kCommutative, 2, 0, 1) \ |
| 305 V(I16x8MaxU, Operator::kCommutative, 2, 0, 1) \ | 305 V(I16x8MaxU, Operator::kCommutative, 2, 0, 1) \ |
| 306 V(I16x8LtU, Operator::kNoProperties, 2, 0, 1) \ | 306 V(I16x8GtU, Operator::kNoProperties, 2, 0, 1) \ |
| 307 V(I16x8LeU, Operator::kNoProperties, 2, 0, 1) \ | 307 V(I16x8GeU, Operator::kNoProperties, 2, 0, 1) \ |
| 308 V(I8x16Splat, Operator::kNoProperties, 1, 0, 1) \ | 308 V(I8x16Splat, Operator::kNoProperties, 1, 0, 1) \ |
| 309 V(I8x16Neg, Operator::kNoProperties, 1, 0, 1) \ | 309 V(I8x16Neg, Operator::kNoProperties, 1, 0, 1) \ |
| 310 V(I8x16SConvertI16x8, Operator::kNoProperties, 2, 0, 1) \ | 310 V(I8x16SConvertI16x8, Operator::kNoProperties, 2, 0, 1) \ |
| 311 V(I8x16Add, Operator::kCommutative, 2, 0, 1) \ | 311 V(I8x16Add, Operator::kCommutative, 2, 0, 1) \ |
| 312 V(I8x16AddSaturateS, Operator::kCommutative, 2, 0, 1) \ | 312 V(I8x16AddSaturateS, Operator::kCommutative, 2, 0, 1) \ |
| 313 V(I8x16Sub, Operator::kNoProperties, 2, 0, 1) \ | 313 V(I8x16Sub, Operator::kNoProperties, 2, 0, 1) \ |
| 314 V(I8x16SubSaturateS, Operator::kNoProperties, 2, 0, 1) \ | 314 V(I8x16SubSaturateS, Operator::kNoProperties, 2, 0, 1) \ |
| 315 V(I8x16Mul, Operator::kCommutative, 2, 0, 1) \ | 315 V(I8x16Mul, Operator::kCommutative, 2, 0, 1) \ |
| 316 V(I8x16MinS, Operator::kCommutative, 2, 0, 1) \ | 316 V(I8x16MinS, Operator::kCommutative, 2, 0, 1) \ |
| 317 V(I8x16MaxS, Operator::kCommutative, 2, 0, 1) \ | 317 V(I8x16MaxS, Operator::kCommutative, 2, 0, 1) \ |
| 318 V(I8x16Eq, Operator::kCommutative, 2, 0, 1) \ | 318 V(I8x16Eq, Operator::kCommutative, 2, 0, 1) \ |
| 319 V(I8x16Ne, Operator::kCommutative, 2, 0, 1) \ | 319 V(I8x16Ne, Operator::kCommutative, 2, 0, 1) \ |
| 320 V(I8x16LtS, Operator::kNoProperties, 2, 0, 1) \ | 320 V(I8x16GtS, Operator::kNoProperties, 2, 0, 1) \ |
| 321 V(I8x16LeS, Operator::kNoProperties, 2, 0, 1) \ | 321 V(I8x16GeS, Operator::kNoProperties, 2, 0, 1) \ |
| 322 V(I8x16UConvertI16x8, Operator::kNoProperties, 2, 0, 1) \ | 322 V(I8x16UConvertI16x8, Operator::kNoProperties, 2, 0, 1) \ |
| 323 V(I8x16AddSaturateU, Operator::kCommutative, 2, 0, 1) \ | 323 V(I8x16AddSaturateU, Operator::kCommutative, 2, 0, 1) \ |
| 324 V(I8x16SubSaturateU, Operator::kNoProperties, 2, 0, 1) \ | 324 V(I8x16SubSaturateU, Operator::kNoProperties, 2, 0, 1) \ |
| 325 V(I8x16MinU, Operator::kCommutative, 2, 0, 1) \ | 325 V(I8x16MinU, Operator::kCommutative, 2, 0, 1) \ |
| 326 V(I8x16MaxU, Operator::kCommutative, 2, 0, 1) \ | 326 V(I8x16MaxU, Operator::kCommutative, 2, 0, 1) \ |
| 327 V(I8x16LtU, Operator::kNoProperties, 2, 0, 1) \ | 327 V(I8x16GtU, Operator::kNoProperties, 2, 0, 1) \ |
| 328 V(I8x16LeU, Operator::kNoProperties, 2, 0, 1) \ | 328 V(I8x16GeU, Operator::kNoProperties, 2, 0, 1) \ |
| 329 V(S128Load, Operator::kNoProperties, 2, 0, 1) \ | 329 V(S128Load, Operator::kNoProperties, 2, 0, 1) \ |
| 330 V(S128Store, Operator::kNoProperties, 3, 0, 1) \ | 330 V(S128Store, Operator::kNoProperties, 3, 0, 1) \ |
| 331 V(S128Zero, Operator::kNoProperties, 0, 0, 1) \ | 331 V(S128Zero, Operator::kNoProperties, 0, 0, 1) \ |
| 332 V(S128And, Operator::kAssociative | Operator::kCommutative, 2, 0, 1) \ | 332 V(S128And, Operator::kAssociative | Operator::kCommutative, 2, 0, 1) \ |
| 333 V(S128Or, Operator::kAssociative | Operator::kCommutative, 2, 0, 1) \ | 333 V(S128Or, Operator::kAssociative | Operator::kCommutative, 2, 0, 1) \ |
| 334 V(S128Xor, Operator::kAssociative | Operator::kCommutative, 2, 0, 1) \ | 334 V(S128Xor, Operator::kAssociative | Operator::kCommutative, 2, 0, 1) \ |
| 335 V(S128Not, Operator::kNoProperties, 1, 0, 1) \ | 335 V(S128Not, Operator::kNoProperties, 1, 0, 1) \ |
| 336 V(S32x4Select, Operator::kNoProperties, 3, 0, 1) \ | 336 V(S32x4Select, Operator::kNoProperties, 3, 0, 1) \ |
| 337 V(S16x8Select, Operator::kNoProperties, 3, 0, 1) \ | 337 V(S16x8Select, Operator::kNoProperties, 3, 0, 1) \ |
| 338 V(S8x16Select, Operator::kNoProperties, 3, 0, 1) \ | 338 V(S8x16Select, Operator::kNoProperties, 3, 0, 1) \ |
| (...skipping 708 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1047 uint8_t* array = zone_->NewArray<uint8_t>(16); | 1047 uint8_t* array = zone_->NewArray<uint8_t>(16); |
| 1048 memcpy(array, shuffle, 16); | 1048 memcpy(array, shuffle, 16); |
| 1049 return new (zone_) | 1049 return new (zone_) |
| 1050 Operator1<uint8_t*>(IrOpcode::kS8x16Shuffle, Operator::kPure, "Shuffle", | 1050 Operator1<uint8_t*>(IrOpcode::kS8x16Shuffle, Operator::kPure, "Shuffle", |
| 1051 2, 0, 0, 1, 0, 0, array); | 1051 2, 0, 0, 1, 0, 0, array); |
| 1052 } | 1052 } |
| 1053 | 1053 |
| 1054 } // namespace compiler | 1054 } // namespace compiler |
| 1055 } // namespace internal | 1055 } // namespace internal |
| 1056 } // namespace v8 | 1056 } // namespace v8 |
| OLD | NEW |