Description[turbofan] Add support for Math.round to the JSBuiltinReducer.
We can reduce Math.round(v) to a sequence of
let i = Float64RoundUp(v);
let r = i - v;
return r > 0.5 ? 1.0 + i : i;
if the target supports the Float64RoundUp machine operator (i.e.
roundsd with RoundUp rounding on Intel processors with SSE4.1).
R=jarin@chromium.org
Committed: https://crrev.com/f8ece9a01384d83737ba7f79999fc95bf5529efa
Cr-Commit-Position: refs/heads/master@{#33572}
Patch Set 1 #
Messages
Total messages: 8 (2 generated)
|