Do not remove HAdd with zero if the other operand is a double.
authoryangguo@chromium.org <yangguo@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 30 Oct 2013 10:22:52 +0000 (10:22 +0000)
committeryangguo@chromium.org <yangguo@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 30 Oct 2013 10:22:52 +0000 (10:22 +0000)
commit3f1a833524328095473743d5d8bad019143f7a51
tree074741320fee0d09573f24429e42d6c153899817
parent9e88c23cbfc3ca7f1a1f5c3eb19885051d4245f6
Do not remove HAdd with zero if the other operand is a double.

The other operand might be minus zero, and -0 + 0 = +0

R=svenpanne@chromium.org
BUG=

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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@17432 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/hydrogen-instructions.cc
test/mjsunit/regress/regress-add-minus-zero.js [new file with mode: 0644]