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

Side by Side Diff: src/compiler/simplified-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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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/simplified-operator.h" 5 #include "src/compiler/simplified-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 #include "src/types.h" 10 #include "src/types.h"
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 V(NumberBitwiseAnd, Operator::kCommutative, 2) \ 244 V(NumberBitwiseAnd, Operator::kCommutative, 2) \
245 V(NumberShiftLeft, Operator::kNoProperties, 2) \ 245 V(NumberShiftLeft, Operator::kNoProperties, 2) \
246 V(NumberShiftRight, Operator::kNoProperties, 2) \ 246 V(NumberShiftRight, Operator::kNoProperties, 2) \
247 V(NumberShiftRightLogical, Operator::kNoProperties, 2) \ 247 V(NumberShiftRightLogical, Operator::kNoProperties, 2) \
248 V(NumberImul, Operator::kCommutative, 2) \ 248 V(NumberImul, Operator::kCommutative, 2) \
249 V(NumberAbs, Operator::kNoProperties, 1) \ 249 V(NumberAbs, Operator::kNoProperties, 1) \
250 V(NumberClz32, Operator::kNoProperties, 1) \ 250 V(NumberClz32, Operator::kNoProperties, 1) \
251 V(NumberCeil, Operator::kNoProperties, 1) \ 251 V(NumberCeil, Operator::kNoProperties, 1) \
252 V(NumberFloor, Operator::kNoProperties, 1) \ 252 V(NumberFloor, Operator::kNoProperties, 1) \
253 V(NumberFround, Operator::kNoProperties, 1) \ 253 V(NumberFround, Operator::kNoProperties, 1) \
254 V(NumberAcos, Operator::kNoProperties, 1) \
255 V(NumberAcosh, Operator::kNoProperties, 1) \
256 V(NumberAsin, Operator::kNoProperties, 1) \
257 V(NumberAsinh, Operator::kNoProperties, 1) \
254 V(NumberAtan, Operator::kNoProperties, 1) \ 258 V(NumberAtan, Operator::kNoProperties, 1) \
255 V(NumberAtan2, Operator::kNoProperties, 2) \ 259 V(NumberAtan2, Operator::kNoProperties, 2) \
256 V(NumberAtanh, Operator::kNoProperties, 1) \ 260 V(NumberAtanh, Operator::kNoProperties, 1) \
257 V(NumberCbrt, Operator::kNoProperties, 1) \ 261 V(NumberCbrt, Operator::kNoProperties, 1) \
258 V(NumberCos, Operator::kNoProperties, 1) \ 262 V(NumberCos, Operator::kNoProperties, 1) \
259 V(NumberCosh, Operator::kNoProperties, 1) \ 263 V(NumberCosh, Operator::kNoProperties, 1) \
260 V(NumberExp, Operator::kNoProperties, 1) \ 264 V(NumberExp, Operator::kNoProperties, 1) \
261 V(NumberExpm1, Operator::kNoProperties, 1) \ 265 V(NumberExpm1, Operator::kNoProperties, 1) \
262 V(NumberLog, Operator::kNoProperties, 1) \ 266 V(NumberLog, Operator::kNoProperties, 1) \
263 V(NumberLog1p, Operator::kNoProperties, 1) \ 267 V(NumberLog1p, Operator::kNoProperties, 1) \
264 V(NumberLog10, Operator::kNoProperties, 1) \ 268 V(NumberLog10, Operator::kNoProperties, 1) \
265 V(NumberLog2, Operator::kNoProperties, 1) \ 269 V(NumberLog2, Operator::kNoProperties, 1) \
266 V(NumberPow, Operator::kNoProperties, 2) \ 270 V(NumberPow, Operator::kNoProperties, 2) \
267 V(NumberRound, Operator::kNoProperties, 1) \ 271 V(NumberRound, Operator::kNoProperties, 1) \
272 V(NumberSign, Operator::kNoProperties, 1) \
268 V(NumberSin, Operator::kNoProperties, 1) \ 273 V(NumberSin, Operator::kNoProperties, 1) \
269 V(NumberSinh, Operator::kNoProperties, 1) \ 274 V(NumberSinh, Operator::kNoProperties, 1) \
270 V(NumberSqrt, Operator::kNoProperties, 1) \ 275 V(NumberSqrt, Operator::kNoProperties, 1) \
271 V(NumberTan, Operator::kNoProperties, 1) \ 276 V(NumberTan, Operator::kNoProperties, 1) \
272 V(NumberTanh, Operator::kNoProperties, 1) \ 277 V(NumberTanh, Operator::kNoProperties, 1) \
273 V(NumberTrunc, Operator::kNoProperties, 1) \ 278 V(NumberTrunc, Operator::kNoProperties, 1) \
274 V(NumberToInt32, Operator::kNoProperties, 1) \ 279 V(NumberToInt32, Operator::kNoProperties, 1) \
275 V(NumberToUint32, Operator::kNoProperties, 1) \ 280 V(NumberToUint32, Operator::kNoProperties, 1) \
276 V(NumberSilenceNaN, Operator::kNoProperties, 1) \ 281 V(NumberSilenceNaN, Operator::kNoProperties, 1) \
277 V(StringFromCharCode, Operator::kNoProperties, 1) \ 282 V(StringFromCharCode, Operator::kNoProperties, 1) \
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
537 Operator::kNoDeopt | Operator::kNoThrow | properties, \ 542 Operator::kNoDeopt | Operator::kNoThrow | properties, \
538 #Name, value_input_count, 1, control_input_count, \ 543 #Name, value_input_count, 1, control_input_count, \
539 output_count, 1, 0, access); \ 544 output_count, 1, 0, access); \
540 } 545 }
541 ACCESS_OP_LIST(ACCESS) 546 ACCESS_OP_LIST(ACCESS)
542 #undef ACCESS 547 #undef ACCESS
543 548
544 } // namespace compiler 549 } // namespace compiler
545 } // namespace internal 550 } // namespace internal
546 } // namespace v8 551 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698