• ahaas's avatar
    [wasm] Fixed float-to-int32 conversion to match the spec. · dcac1f14
    ahaas authored
    The new implementation detects if the input value is outside i32 range
    and traps it that case.
    
    The range check is done as follows:
    The input value is converted to int32 and then back to float. If the
    result is the same as the truncated input value, then the input value
    is within int32 range.
    
    R=bmeurer@chromium.org
    
    Review URL: https://codereview.chromium.org/1537393003
    
    Cr-Commit-Position: refs/heads/master@{#32984}
    dcac1f14
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...