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

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

Issue 2785773002: [turbofan] introduce Int32/64AbsWithOverflow optional operator (Closed)
Patch Set: add base impl Created 3 years, 8 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
« no previous file with comments | « src/compiler/machine-operator.h ('k') | src/compiler/mips/instruction-selector-mips.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 334 matching lines...) Expand 10 before | Expand all | Expand 10 after
345 V(Simd1x16AnyTrue, Operator::kNoProperties, 1, 0, 1) \ 345 V(Simd1x16AnyTrue, Operator::kNoProperties, 1, 0, 1) \
346 V(Simd1x16AllTrue, Operator::kNoProperties, 1, 0, 1) 346 V(Simd1x16AllTrue, Operator::kNoProperties, 1, 0, 1)
347 347
348 #define PURE_OPTIONAL_OP_LIST(V) \ 348 #define PURE_OPTIONAL_OP_LIST(V) \
349 V(Word32Ctz, Operator::kNoProperties, 1, 0, 1) \ 349 V(Word32Ctz, Operator::kNoProperties, 1, 0, 1) \
350 V(Word64Ctz, Operator::kNoProperties, 1, 0, 1) \ 350 V(Word64Ctz, Operator::kNoProperties, 1, 0, 1) \
351 V(Word32ReverseBits, Operator::kNoProperties, 1, 0, 1) \ 351 V(Word32ReverseBits, Operator::kNoProperties, 1, 0, 1) \
352 V(Word64ReverseBits, Operator::kNoProperties, 1, 0, 1) \ 352 V(Word64ReverseBits, Operator::kNoProperties, 1, 0, 1) \
353 V(Word32ReverseBytes, Operator::kNoProperties, 1, 0, 1) \ 353 V(Word32ReverseBytes, Operator::kNoProperties, 1, 0, 1) \
354 V(Word64ReverseBytes, Operator::kNoProperties, 1, 0, 1) \ 354 V(Word64ReverseBytes, Operator::kNoProperties, 1, 0, 1) \
355 V(Int32AbsWithOverflow, Operator::kNoProperties, 1, 0, 1) \
356 V(Int64AbsWithOverflow, Operator::kNoProperties, 1, 0, 1) \
355 V(Word32Popcnt, Operator::kNoProperties, 1, 0, 1) \ 357 V(Word32Popcnt, Operator::kNoProperties, 1, 0, 1) \
356 V(Word64Popcnt, Operator::kNoProperties, 1, 0, 1) \ 358 V(Word64Popcnt, Operator::kNoProperties, 1, 0, 1) \
357 V(Float32RoundDown, Operator::kNoProperties, 1, 0, 1) \ 359 V(Float32RoundDown, Operator::kNoProperties, 1, 0, 1) \
358 V(Float64RoundDown, Operator::kNoProperties, 1, 0, 1) \ 360 V(Float64RoundDown, Operator::kNoProperties, 1, 0, 1) \
359 V(Float32RoundUp, Operator::kNoProperties, 1, 0, 1) \ 361 V(Float32RoundUp, Operator::kNoProperties, 1, 0, 1) \
360 V(Float64RoundUp, Operator::kNoProperties, 1, 0, 1) \ 362 V(Float64RoundUp, Operator::kNoProperties, 1, 0, 1) \
361 V(Float32RoundTruncate, Operator::kNoProperties, 1, 0, 1) \ 363 V(Float32RoundTruncate, Operator::kNoProperties, 1, 0, 1) \
362 V(Float64RoundTruncate, Operator::kNoProperties, 1, 0, 1) \ 364 V(Float64RoundTruncate, Operator::kNoProperties, 1, 0, 1) \
363 V(Float64RoundTiesAway, Operator::kNoProperties, 1, 0, 1) \ 365 V(Float64RoundTiesAway, Operator::kNoProperties, 1, 0, 1) \
364 V(Float32RoundTiesEven, Operator::kNoProperties, 1, 0, 1) \ 366 V(Float32RoundTiesEven, Operator::kNoProperties, 1, 0, 1) \
(...skipping 588 matching lines...) Expand 10 before | Expand all | Expand 10 after
953 return new (zone_) \ 955 return new (zone_) \
954 Operator1<uint32_t>(IrOpcode::kSimd##format##Swizzle, Operator::kPure, \ 956 Operator1<uint32_t>(IrOpcode::kSimd##format##Swizzle, Operator::kPure, \
955 "Swizzle", 2, 0, 0, 1, 0, 0, swizzle); \ 957 "Swizzle", 2, 0, 0, 1, 0, 0, swizzle); \
956 } 958 }
957 SIMD_FORMAT_LIST(SIMD_PERMUTE_OPS) 959 SIMD_FORMAT_LIST(SIMD_PERMUTE_OPS)
958 #undef SIMD_PERMUTE_OPS 960 #undef SIMD_PERMUTE_OPS
959 961
960 } // namespace compiler 962 } // namespace compiler
961 } // namespace internal 963 } // namespace internal
962 } // namespace v8 964 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/machine-operator.h ('k') | src/compiler/mips/instruction-selector-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698