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

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

Issue 2263163002: [turbofan] mark Float64(Max|Min) as associative and commutative. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 4 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 | « no previous file | no next file » | 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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 V(Float64Atanh, Operator::kNoProperties, 1, 0, 1) \ 174 V(Float64Atanh, Operator::kNoProperties, 1, 0, 1) \
175 V(Float64Cbrt, Operator::kNoProperties, 1, 0, 1) \ 175 V(Float64Cbrt, Operator::kNoProperties, 1, 0, 1) \
176 V(Float64Cos, Operator::kNoProperties, 1, 0, 1) \ 176 V(Float64Cos, Operator::kNoProperties, 1, 0, 1) \
177 V(Float64Cosh, Operator::kNoProperties, 1, 0, 1) \ 177 V(Float64Cosh, Operator::kNoProperties, 1, 0, 1) \
178 V(Float64Exp, Operator::kNoProperties, 1, 0, 1) \ 178 V(Float64Exp, Operator::kNoProperties, 1, 0, 1) \
179 V(Float64Expm1, Operator::kNoProperties, 1, 0, 1) \ 179 V(Float64Expm1, Operator::kNoProperties, 1, 0, 1) \
180 V(Float64Log, Operator::kNoProperties, 1, 0, 1) \ 180 V(Float64Log, Operator::kNoProperties, 1, 0, 1) \
181 V(Float64Log1p, Operator::kNoProperties, 1, 0, 1) \ 181 V(Float64Log1p, Operator::kNoProperties, 1, 0, 1) \
182 V(Float64Log2, Operator::kNoProperties, 1, 0, 1) \ 182 V(Float64Log2, Operator::kNoProperties, 1, 0, 1) \
183 V(Float64Log10, Operator::kNoProperties, 1, 0, 1) \ 183 V(Float64Log10, Operator::kNoProperties, 1, 0, 1) \
184 V(Float64Max, Operator::kNoProperties, 2, 0, 1) \ 184 V(Float64Max, Operator::kAssociative | Operator::kCommutative, 2, 0, 1) \
185 V(Float64Min, Operator::kNoProperties, 2, 0, 1) \ 185 V(Float64Min, Operator::kAssociative | Operator::kCommutative, 2, 0, 1) \
186 V(Float64Neg, Operator::kNoProperties, 1, 0, 1) \ 186 V(Float64Neg, Operator::kNoProperties, 1, 0, 1) \
187 V(Float64Add, Operator::kCommutative, 2, 0, 1) \ 187 V(Float64Add, Operator::kCommutative, 2, 0, 1) \
188 V(Float64Sub, Operator::kNoProperties, 2, 0, 1) \ 188 V(Float64Sub, Operator::kNoProperties, 2, 0, 1) \
189 V(Float64Mul, Operator::kCommutative, 2, 0, 1) \ 189 V(Float64Mul, Operator::kCommutative, 2, 0, 1) \
190 V(Float64Div, Operator::kNoProperties, 2, 0, 1) \ 190 V(Float64Div, Operator::kNoProperties, 2, 0, 1) \
191 V(Float64Mod, Operator::kNoProperties, 2, 0, 1) \ 191 V(Float64Mod, Operator::kNoProperties, 2, 0, 1) \
192 V(Float64Pow, Operator::kNoProperties, 2, 0, 1) \ 192 V(Float64Pow, Operator::kNoProperties, 2, 0, 1) \
193 V(Float64Sin, Operator::kNoProperties, 1, 0, 1) \ 193 V(Float64Sin, Operator::kNoProperties, 1, 0, 1) \
194 V(Float64Sinh, Operator::kNoProperties, 1, 0, 1) \ 194 V(Float64Sinh, Operator::kNoProperties, 1, 0, 1) \
195 V(Float64Sqrt, Operator::kNoProperties, 1, 0, 1) \ 195 V(Float64Sqrt, Operator::kNoProperties, 1, 0, 1) \
(...skipping 598 matching lines...) Expand 10 before | Expand all | Expand 10 after
794 } 794 }
795 ATOMIC_REPRESENTATION_LIST(STORE) 795 ATOMIC_REPRESENTATION_LIST(STORE)
796 #undef STORE 796 #undef STORE
797 UNREACHABLE(); 797 UNREACHABLE();
798 return nullptr; 798 return nullptr;
799 } 799 }
800 800
801 } // namespace compiler 801 } // namespace compiler
802 } // namespace internal 802 } // namespace internal
803 } // namespace v8 803 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698