Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Side by Side Diff: src/compiler/machine-operator.cc

Issue 2045943002: [compiler] [wasm] Introduce Word32/64ReverseBytes as TF Optional Opcode (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Use ByteReverse in simulator Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 356 matching lines...) Expand 10 before | Expand all | Expand 10 after
367 V(Simd128And, Operator::kAssociative | Operator::kCommutative, 2, 0, 1) \ 367 V(Simd128And, Operator::kAssociative | Operator::kCommutative, 2, 0, 1) \
368 V(Simd128Or, Operator::kAssociative | Operator::kCommutative, 2, 0, 1) \ 368 V(Simd128Or, Operator::kAssociative | Operator::kCommutative, 2, 0, 1) \
369 V(Simd128Xor, Operator::kAssociative | Operator::kCommutative, 2, 0, 1) \ 369 V(Simd128Xor, Operator::kAssociative | Operator::kCommutative, 2, 0, 1) \
370 V(Simd128Not, Operator::kNoProperties, 1, 0, 1) 370 V(Simd128Not, Operator::kNoProperties, 1, 0, 1)
371 371
372 #define PURE_OPTIONAL_OP_LIST(V) \ 372 #define PURE_OPTIONAL_OP_LIST(V) \
373 V(Word32Ctz, Operator::kNoProperties, 1, 0, 1) \ 373 V(Word32Ctz, Operator::kNoProperties, 1, 0, 1) \
374 V(Word64Ctz, Operator::kNoProperties, 1, 0, 1) \ 374 V(Word64Ctz, Operator::kNoProperties, 1, 0, 1) \
375 V(Word32ReverseBits, Operator::kNoProperties, 1, 0, 1) \ 375 V(Word32ReverseBits, Operator::kNoProperties, 1, 0, 1) \
376 V(Word64ReverseBits, Operator::kNoProperties, 1, 0, 1) \ 376 V(Word64ReverseBits, Operator::kNoProperties, 1, 0, 1) \
377 V(Word16ReverseBytes, Operator::kNoProperties, 1, 0, 1) \
378 V(Word32ReverseBytes, Operator::kNoProperties, 1, 0, 1) \
379 V(Word64ReverseBytes, Operator::kNoProperties, 1, 0, 1) \
377 V(Word32Popcnt, Operator::kNoProperties, 1, 0, 1) \ 380 V(Word32Popcnt, Operator::kNoProperties, 1, 0, 1) \
378 V(Word64Popcnt, Operator::kNoProperties, 1, 0, 1) \ 381 V(Word64Popcnt, Operator::kNoProperties, 1, 0, 1) \
379 V(Float32Max, Operator::kNoProperties, 2, 0, 1) \ 382 V(Float32Max, Operator::kNoProperties, 2, 0, 1) \
380 V(Float32Min, Operator::kNoProperties, 2, 0, 1) \ 383 V(Float32Min, Operator::kNoProperties, 2, 0, 1) \
381 V(Float64Max, Operator::kNoProperties, 2, 0, 1) \ 384 V(Float64Max, Operator::kNoProperties, 2, 0, 1) \
382 V(Float64Min, Operator::kNoProperties, 2, 0, 1) \ 385 V(Float64Min, Operator::kNoProperties, 2, 0, 1) \
383 V(Float32RoundDown, Operator::kNoProperties, 1, 0, 1) \ 386 V(Float32RoundDown, Operator::kNoProperties, 1, 0, 1) \
384 V(Float64RoundDown, Operator::kNoProperties, 1, 0, 1) \ 387 V(Float64RoundDown, Operator::kNoProperties, 1, 0, 1) \
385 V(Float32RoundUp, Operator::kNoProperties, 1, 0, 1) \ 388 V(Float32RoundUp, Operator::kNoProperties, 1, 0, 1) \
386 V(Float64RoundUp, Operator::kNoProperties, 1, 0, 1) \ 389 V(Float64RoundUp, Operator::kNoProperties, 1, 0, 1) \
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after
721 } 724 }
722 ATOMIC_REPRESENTATION_LIST(STORE) 725 ATOMIC_REPRESENTATION_LIST(STORE)
723 #undef STORE 726 #undef STORE
724 UNREACHABLE(); 727 UNREACHABLE();
725 return nullptr; 728 return nullptr;
726 } 729 }
727 730
728 } // namespace compiler 731 } // namespace compiler
729 } // namespace internal 732 } // namespace internal
730 } // namespace v8 733 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698