• fedor's avatar
    [machine-operator-reducer] fix float truncation · 64efa2a9
    fedor authored
    Don't replace `TruncateFloat64ToInt32(RoundInt64ToFloat64(value))` with
    `value`. Generally, `value` may have a range bigger than the one that
    could fit into Int32. Replace it with `TruncateInt64ToInt32(value)`
    instead, and only if the `value` fits into Float64 without precision
    loss.
    
    Add missing mjsunit test for 52bit multiplication/division optimization
    that has landed in refs/heads/master@{#31899}.
    
    BUG=
    R=titzer@google.com
    
    Review URL: https://codereview.chromium.org/1433353006
    
    Cr-Commit-Position: refs/heads/master@{#32227}
    64efa2a9
Name
Last commit
Last update
..
benchmarks Loading commit data...
cctest Loading commit data...
intl Loading commit data...
js-perf-test Loading commit data...
memory Loading commit data...
message Loading commit data...
mjsunit Loading commit data...
mozilla Loading commit data...
preparser Loading commit data...
promises-aplus Loading commit data...
simdjs Loading commit data...
test262 Loading commit data...
unittests Loading commit data...
webkit Loading commit data...
bot_default.gyp Loading commit data...
bot_default.isolate Loading commit data...
default.gyp Loading commit data...
default.isolate Loading commit data...
optimize_for_size.gyp Loading commit data...
optimize_for_size.isolate Loading commit data...