v8/test/mjsunit/harmony/bigint
Jakob Kummerow b5997de8a9 [bigint] Fix accidental input modification in Divide
"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: Georg Neis <neis@chromium.org>
Cr-Commit-Position: refs/heads/master@{#49433}
2017-11-17 01:50:50 +00:00
..
add.js [bigint] Add tests for unary/binary ops 2017-10-23 19:11:01 +00:00
and.js [bigint] Add tests for unary/binary ops 2017-10-23 19:11:01 +00:00
basics.js [bigint] Correct StringToBigInt radix and junk handling 2017-11-13 18:55:00 +00:00
comparisons.js [bigint] Correct StringToBigInt radix and junk handling 2017-11-13 18:55:00 +00:00
dec.js [bigint] Add tests for unary/binary ops 2017-10-23 19:11:01 +00:00
div.js [bigint] Add tests for unary/binary ops 2017-10-23 19:11:01 +00:00
inc.js [bigint] Add tests for unary/binary ops 2017-10-23 19:11:01 +00:00
json.js [bigint] Adapt JSON.stringify. 2017-10-25 07:13:47 +00:00
mod.js [bigint] Add tests for unary/binary ops 2017-10-23 19:11:01 +00:00
mul.js [bigint] Add tests for unary/binary ops 2017-10-23 19:11:01 +00:00
neg.js [bigint] Add tests for unary/binary ops 2017-10-23 19:11:01 +00:00
not.js [bigint] Add tests for unary/binary ops 2017-10-23 19:11:01 +00:00
or.js [bigint] Add tests for unary/binary ops 2017-10-23 19:11:01 +00:00
regressions.js [bigint] Fix accidental input modification in Divide 2017-11-17 01:50:50 +00:00
sar.js [bigint] Fix RightShift by 32 2017-10-25 18:03:18 +00:00
shl.js [bigint] Add tests for unary/binary ops 2017-10-23 19:11:01 +00:00
sub.js [bigint] Add tests for unary/binary ops 2017-10-23 19:11:01 +00:00
tonumber.js [bigint] Adapt Number() to convert BigInts 2017-10-28 01:59:32 +00:00
too-big-literal.js [bigint] Restrict the length of literals in the scanner 2017-10-31 22:14:14 +00:00
xor.js [bigint] Add tests for unary/binary ops 2017-10-23 19:11:01 +00:00