• Jakob Kummerow's avatar
    [bigint] Fix accidental input modification in Divide · b5997de8
    Jakob Kummerow authored
    "AbsoluteDivSmall" had a shortcut path for abs(divisor) == 1 where
    it would simply return the dividend as result. However, its caller
    "Divide" was blissfully ignorant of this trick and would therefore
    simply set the value's sign as needed, modifying the input.
    This CL prevents that, while continuing to avoid the full division
    algorithm for abs(divisor) == 1.
    
    Bug: v8:6791
    Change-Id: I04cdc93f5ed2a696587c35c754e68f07012dd1a9
    Reviewed-on: https://chromium-review.googlesource.com/772332
    Commit-Queue: Jakob Kummerow <jkummerow@chromium.org>
    Reviewed-by: 's avatarGeorg Neis <neis@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#49433}
    b5997de8
Name
Last commit
Last update
..
add.js Loading commit data...
and.js Loading commit data...
basics.js Loading commit data...
comparisons.js Loading commit data...
dec.js Loading commit data...
div.js Loading commit data...
inc.js Loading commit data...
json.js Loading commit data...
mod.js Loading commit data...
mul.js Loading commit data...
neg.js Loading commit data...
not.js Loading commit data...
or.js Loading commit data...
regressions.js Loading commit data...
sar.js Loading commit data...
shl.js Loading commit data...
sub.js Loading commit data...
tonumber.js Loading commit data...
too-big-literal.js Loading commit data...
xor.js Loading commit data...