• bmeurer's avatar
    [turbofan] Introduce dedicated NumberToBoolean operator. · c071a8f0
    bmeurer authored
    Previously we always lowered JSToBoolean(x:Number) to the subgraph
    NumberLessThan(0.0, NumberAbs(x)), which deals with both 0, -0 and
    NaNs appropriately. However this doesn't always generate the best,
    especially when we can later derive from feedback that x is always
    an Integral32 value, where the ideal code would be just a single
    comparison to 0 w/o the absolute value computation.
    
    R=mvstanton@chromium.org
    BUG=v8:5267,v8:5270
    
    Review-Url: https://codereview.chromium.org/2309953002
    Cr-Commit-Position: refs/heads/master@{#39194}
    c071a8f0
Name
Last commit
Last update
..
base Loading commit data...
compiler Loading commit data...
compiler-dispatcher Loading commit data...
heap Loading commit data...
interpreter Loading commit data...
libplatform Loading commit data...
wasm Loading commit data...
BUILD.gn Loading commit data...
DEPS Loading commit data...
cancelable-tasks-unittest.cc Loading commit data...
char-predicates-unittest.cc Loading commit data...
counters-unittest.cc Loading commit data...
eh-frame-iterator-unittest.cc Loading commit data...
eh-frame-writer-unittest.cc Loading commit data...
locked-queue-unittest.cc Loading commit data...
register-configuration-unittest.cc Loading commit data...
run-all-unittests.cc Loading commit data...
source-position-table-unittest.cc Loading commit data...
test-utils.cc Loading commit data...
test-utils.h Loading commit data...
unittests.gyp Loading commit data...
unittests.isolate Loading commit data...
unittests.status Loading commit data...
value-serializer-unittest.cc Loading commit data...