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

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

Issue 2309953002: [turbofan] Introduce dedicated NumberToBoolean operator. (Closed)
Patch Set: Fix unittest. Created 4 years, 3 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/simplified-operator.h ('k') | src/compiler/typer.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 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/compiler/types.h" 10 #include "src/compiler/types.h"
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 V(NumberMin, Operator::kNoProperties, 2, 0) \ 374 V(NumberMin, Operator::kNoProperties, 2, 0) \
375 V(NumberPow, Operator::kNoProperties, 2, 0) \ 375 V(NumberPow, Operator::kNoProperties, 2, 0) \
376 V(NumberRound, Operator::kNoProperties, 1, 0) \ 376 V(NumberRound, Operator::kNoProperties, 1, 0) \
377 V(NumberSign, Operator::kNoProperties, 1, 0) \ 377 V(NumberSign, Operator::kNoProperties, 1, 0) \
378 V(NumberSin, Operator::kNoProperties, 1, 0) \ 378 V(NumberSin, Operator::kNoProperties, 1, 0) \
379 V(NumberSinh, Operator::kNoProperties, 1, 0) \ 379 V(NumberSinh, Operator::kNoProperties, 1, 0) \
380 V(NumberSqrt, Operator::kNoProperties, 1, 0) \ 380 V(NumberSqrt, Operator::kNoProperties, 1, 0) \
381 V(NumberTan, Operator::kNoProperties, 1, 0) \ 381 V(NumberTan, Operator::kNoProperties, 1, 0) \
382 V(NumberTanh, Operator::kNoProperties, 1, 0) \ 382 V(NumberTanh, Operator::kNoProperties, 1, 0) \
383 V(NumberTrunc, Operator::kNoProperties, 1, 0) \ 383 V(NumberTrunc, Operator::kNoProperties, 1, 0) \
384 V(NumberToBoolean, Operator::kNoProperties, 1, 0) \
384 V(NumberToInt32, Operator::kNoProperties, 1, 0) \ 385 V(NumberToInt32, Operator::kNoProperties, 1, 0) \
385 V(NumberToUint32, Operator::kNoProperties, 1, 0) \ 386 V(NumberToUint32, Operator::kNoProperties, 1, 0) \
386 V(NumberSilenceNaN, Operator::kNoProperties, 1, 0) \ 387 V(NumberSilenceNaN, Operator::kNoProperties, 1, 0) \
387 V(StringCharCodeAt, Operator::kNoProperties, 2, 1) \ 388 V(StringCharCodeAt, Operator::kNoProperties, 2, 1) \
388 V(StringFromCharCode, Operator::kNoProperties, 1, 0) \ 389 V(StringFromCharCode, Operator::kNoProperties, 1, 0) \
389 V(PlainPrimitiveToNumber, Operator::kNoProperties, 1, 0) \ 390 V(PlainPrimitiveToNumber, Operator::kNoProperties, 1, 0) \
390 V(PlainPrimitiveToWord32, Operator::kNoProperties, 1, 0) \ 391 V(PlainPrimitiveToWord32, Operator::kNoProperties, 1, 0) \
391 V(PlainPrimitiveToFloat64, Operator::kNoProperties, 1, 0) \ 392 V(PlainPrimitiveToFloat64, Operator::kNoProperties, 1, 0) \
392 V(ChangeTaggedSignedToInt32, Operator::kNoProperties, 1, 0) \ 393 V(ChangeTaggedSignedToInt32, Operator::kNoProperties, 1, 0) \
393 V(ChangeTaggedToInt32, Operator::kNoProperties, 1, 0) \ 394 V(ChangeTaggedToInt32, Operator::kNoProperties, 1, 0) \
(...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after
803 Operator::kNoDeopt | Operator::kNoThrow | properties, \ 804 Operator::kNoDeopt | Operator::kNoThrow | properties, \
804 #Name, value_input_count, 1, control_input_count, \ 805 #Name, value_input_count, 1, control_input_count, \
805 output_count, 1, 0, access); \ 806 output_count, 1, 0, access); \
806 } 807 }
807 ACCESS_OP_LIST(ACCESS) 808 ACCESS_OP_LIST(ACCESS)
808 #undef ACCESS 809 #undef ACCESS
809 810
810 } // namespace compiler 811 } // namespace compiler
811 } // namespace internal 812 } // namespace internal
812 } // namespace v8 813 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/simplified-operator.h ('k') | src/compiler/typer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698