Compute the same hash for all NaN values.
authorbmeurer <bmeurer@chromium.org>
Tue, 3 Feb 2015 06:28:59 +0000 (22:28 -0800)
committerCommit bot <commit-bot@chromium.org>
Tue, 3 Feb 2015 06:29:18 +0000 (06:29 +0000)
commitf6e02e195cf6b887204f896640b172741fe09d0f
tree79669e555b05be4572a43a2ff728bb0eaeaf4d07
parent9cce4ff2852d465d8319d47bba92405ce3990f2f
Compute the same hash for all NaN values.

Both SameValue and SameValueZero consider different NaNs equal, so we
better assign the same hash value to all NaNs.

BUG=v8:3859
LOG=y
R=verwaest@chromium.org

Review URL: https://codereview.chromium.org/897593002

Cr-Commit-Position: refs/heads/master@{#26391}
src/objects.cc
test/mjsunit/regress/regress-3859.js [new file with mode: 0644]