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

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

Issue 2101123005: [turbofan] Introduce integer multiplication with overflow. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: REBASE. 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
« no previous file with comments | « src/compiler/machine-operator.h ('k') | src/compiler/mips/code-generator-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 377 matching lines...) Expand 10 before | Expand all | Expand 10 after
388 V(Float64RoundTruncate, Operator::kNoProperties, 1, 0, 1) \ 388 V(Float64RoundTruncate, Operator::kNoProperties, 1, 0, 1) \
389 V(Float64RoundTiesAway, Operator::kNoProperties, 1, 0, 1) \ 389 V(Float64RoundTiesAway, Operator::kNoProperties, 1, 0, 1) \
390 V(Float32RoundTiesEven, Operator::kNoProperties, 1, 0, 1) \ 390 V(Float32RoundTiesEven, Operator::kNoProperties, 1, 0, 1) \
391 V(Float64RoundTiesEven, Operator::kNoProperties, 1, 0, 1) \ 391 V(Float64RoundTiesEven, Operator::kNoProperties, 1, 0, 1) \
392 V(Float32Neg, Operator::kNoProperties, 1, 0, 1) \ 392 V(Float32Neg, Operator::kNoProperties, 1, 0, 1) \
393 V(Float64Neg, Operator::kNoProperties, 1, 0, 1) 393 V(Float64Neg, Operator::kNoProperties, 1, 0, 1)
394 394
395 #define OVERFLOW_OP_LIST(V) \ 395 #define OVERFLOW_OP_LIST(V) \
396 V(Int32AddWithOverflow, Operator::kAssociative | Operator::kCommutative) \ 396 V(Int32AddWithOverflow, Operator::kAssociative | Operator::kCommutative) \
397 V(Int32SubWithOverflow, Operator::kNoProperties) \ 397 V(Int32SubWithOverflow, Operator::kNoProperties) \
398 V(Int32MulWithOverflow, Operator::kAssociative | Operator::kCommutative) \
398 V(Int64AddWithOverflow, Operator::kAssociative | Operator::kCommutative) \ 399 V(Int64AddWithOverflow, Operator::kAssociative | Operator::kCommutative) \
399 V(Int64SubWithOverflow, Operator::kNoProperties) 400 V(Int64SubWithOverflow, Operator::kNoProperties)
400 401
401 #define MACHINE_TYPE_LIST(V) \ 402 #define MACHINE_TYPE_LIST(V) \
402 V(Float32) \ 403 V(Float32) \
403 V(Float64) \ 404 V(Float64) \
404 V(Simd128) \ 405 V(Simd128) \
405 V(Int8) \ 406 V(Int8) \
406 V(Uint8) \ 407 V(Uint8) \
407 V(Int16) \ 408 V(Int16) \
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
720 } 721 }
721 ATOMIC_REPRESENTATION_LIST(STORE) 722 ATOMIC_REPRESENTATION_LIST(STORE)
722 #undef STORE 723 #undef STORE
723 UNREACHABLE(); 724 UNREACHABLE();
724 return nullptr; 725 return nullptr;
725 } 726 }
726 727
727 } // namespace compiler 728 } // namespace compiler
728 } // namespace internal 729 } // namespace internal
729 } // namespace v8 730 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/machine-operator.h ('k') | src/compiler/mips/code-generator-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698