• Jakob Kummerow's avatar
    [bigint] Fix harmless DCHECK failure · a6ab4e00
    Jakob Kummerow authored
    Behavior in Release mode was correct; Debug mode triggered a DCHECK
    failure that indicated an inefficiency: when a requested truncation
    would be a no-op, we should return the original BigInt, rather than
    creating a copy. In the special case of -2^(n-1), i.e. the smallest
    negative n-bit integer, getting truncated to n bits, with n being a
    multiple of kDigitBits, this shortcut was not taken.
    
    Bug: v8:8426
    Change-Id: I8e4595d9ac0dbef81aae06688f9a9636bd2d9cd9
    Reviewed-on: https://chromium-review.googlesource.com/c/1325029Reviewed-by: 's avatarGeorg Neis <neis@chromium.org>
    Commit-Queue: Jakob Kummerow <jkummerow@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#57369}
    a6ab4e00
Name
Last commit
Last update
..
add.js Loading commit data...
and.js Loading commit data...
as-int-n.js Loading commit data...
basics.js Loading commit data...
comparisons.js Loading commit data...
dataview.js Loading commit data...
dec.js Loading commit data...
div.js Loading commit data...
exp.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...
regress-tonumbercode.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...
turbo.js Loading commit data...
typedarray.js Loading commit data...
xor.js Loading commit data...