Description[wasm] Fixed float-to-int32 conversion to match the spec.
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
Committed: https://crrev.com/dcac1f144e4c8d37338ce9ee94cc1704e81fb0b7
Cr-Commit-Position: refs/heads/master@{#32984}
Patch Set 1 #
Messages
Total messages: 7 (2 generated)
|