[crankshaft] DCE must not eliminate (observable) math operations.
authorbmeurer <bmeurer@chromium.org>
Tue, 25 Aug 2015 06:24:40 +0000 (23:24 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 25 Aug 2015 06:24:55 +0000 (06:24 +0000)
commitfef38c21e8e119e3bbf5423fd6fc2c03fd1f6c39
treec5827fce3612bdd2537e01237e2ce468fe894a83
parent5d875a57fa2e65c1a4a6b50aeb23c38299c3cfbc
[crankshaft] DCE must not eliminate (observable) math operations.

The HUnaryMathOperation cannot be eliminated in general, because the
spec requires a ToNumber conversion on the input, which is observable
of course.

BUG=v8:4389
LOG=y

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

Cr-Commit-Position: refs/heads/master@{#30343}
src/hydrogen-instructions.h
test/mjsunit/compiler/regress-4389-1.js [new file with mode: 0644]
test/mjsunit/compiler/regress-4389-2.js [new file with mode: 0644]
test/mjsunit/compiler/regress-4389-3.js [new file with mode: 0644]
test/mjsunit/compiler/regress-4389-4.js [new file with mode: 0644]
test/mjsunit/compiler/regress-4389-5.js [new file with mode: 0644]
test/mjsunit/compiler/regress-4389-6.js [new file with mode: 0644]