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

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

Issue 2116753002: [builtins] Unify most of the remaining Math builtins. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@2102223005
Patch Set: 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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 V(BitcastInt32ToFloat32, Operator::kNoProperties, 1, 0, 1) \ 142 V(BitcastInt32ToFloat32, Operator::kNoProperties, 1, 0, 1) \
143 V(BitcastInt64ToFloat64, Operator::kNoProperties, 1, 0, 1) \ 143 V(BitcastInt64ToFloat64, Operator::kNoProperties, 1, 0, 1) \
144 V(Float32Abs, Operator::kNoProperties, 1, 0, 1) \ 144 V(Float32Abs, Operator::kNoProperties, 1, 0, 1) \
145 V(Float32Add, Operator::kCommutative, 2, 0, 1) \ 145 V(Float32Add, Operator::kCommutative, 2, 0, 1) \
146 V(Float32Sub, Operator::kNoProperties, 2, 0, 1) \ 146 V(Float32Sub, Operator::kNoProperties, 2, 0, 1) \
147 V(Float32SubPreserveNan, Operator::kNoProperties, 2, 0, 1) \ 147 V(Float32SubPreserveNan, Operator::kNoProperties, 2, 0, 1) \
148 V(Float32Mul, Operator::kCommutative, 2, 0, 1) \ 148 V(Float32Mul, Operator::kCommutative, 2, 0, 1) \
149 V(Float32Div, Operator::kNoProperties, 2, 0, 1) \ 149 V(Float32Div, Operator::kNoProperties, 2, 0, 1) \
150 V(Float32Sqrt, Operator::kNoProperties, 1, 0, 1) \ 150 V(Float32Sqrt, Operator::kNoProperties, 1, 0, 1) \
151 V(Float64Abs, Operator::kNoProperties, 1, 0, 1) \ 151 V(Float64Abs, Operator::kNoProperties, 1, 0, 1) \
152 V(Float64Acos, Operator::kNoProperties, 1, 0, 1) \
153 V(Float64Acosh, Operator::kNoProperties, 1, 0, 1) \
154 V(Float64Asin, Operator::kNoProperties, 1, 0, 1) \
155 V(Float64Asinh, Operator::kNoProperties, 1, 0, 1) \
152 V(Float64Atan, Operator::kNoProperties, 1, 0, 1) \ 156 V(Float64Atan, Operator::kNoProperties, 1, 0, 1) \
153 V(Float64Atan2, Operator::kNoProperties, 2, 0, 1) \ 157 V(Float64Atan2, Operator::kNoProperties, 2, 0, 1) \
154 V(Float64Atanh, Operator::kNoProperties, 1, 0, 1) \ 158 V(Float64Atanh, Operator::kNoProperties, 1, 0, 1) \
155 V(Float64Cbrt, Operator::kNoProperties, 1, 0, 1) \ 159 V(Float64Cbrt, Operator::kNoProperties, 1, 0, 1) \
156 V(Float64Cos, Operator::kNoProperties, 1, 0, 1) \ 160 V(Float64Cos, Operator::kNoProperties, 1, 0, 1) \
157 V(Float64Cosh, Operator::kNoProperties, 1, 0, 1) \ 161 V(Float64Cosh, Operator::kNoProperties, 1, 0, 1) \
158 V(Float64Exp, Operator::kNoProperties, 1, 0, 1) \ 162 V(Float64Exp, Operator::kNoProperties, 1, 0, 1) \
159 V(Float64Expm1, Operator::kNoProperties, 1, 0, 1) \ 163 V(Float64Expm1, Operator::kNoProperties, 1, 0, 1) \
160 V(Float64Log, Operator::kNoProperties, 1, 0, 1) \ 164 V(Float64Log, Operator::kNoProperties, 1, 0, 1) \
161 V(Float64Log1p, Operator::kNoProperties, 1, 0, 1) \ 165 V(Float64Log1p, Operator::kNoProperties, 1, 0, 1) \
(...skipping 554 matching lines...) Expand 10 before | Expand all | Expand 10 after
716 } 720 }
717 ATOMIC_REPRESENTATION_LIST(STORE) 721 ATOMIC_REPRESENTATION_LIST(STORE)
718 #undef STORE 722 #undef STORE
719 UNREACHABLE(); 723 UNREACHABLE();
720 return nullptr; 724 return nullptr;
721 } 725 }
722 726
723 } // namespace compiler 727 } // namespace compiler
724 } // namespace internal 728 } // namespace internal
725 } // namespace v8 729 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698