[turbofan] Fix JSInliner to handle non-returning bodies.
authormstarzinger <mstarzinger@chromium.org>
Tue, 15 Sep 2015 11:19:02 +0000 (04:19 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 15 Sep 2015 11:19:23 +0000 (11:19 +0000)
commit9e47ec6edab84adcbd180d2e7fa03fcb2d9295ee
tree1b8832ac58cbed85bb605f527ab52f7abbb9ddee
parent1e00bb57a2969e3e428a1d552116752a95c06022
[turbofan] Fix JSInliner to handle non-returning bodies.

The assumption that every function body produces a value does not hold
for functions that e.g. unconditionally throw or endlessly loop. This
fixes the inlining logic to handle such cases.

R=bmeurer@chromium.org
TEST=mjsunit/regress/regress-crbug-530598
BUG=chromium:530598
LOG=n

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

Cr-Commit-Position: refs/heads/master@{#30738}
src/compiler/js-inlining.cc
test/mjsunit/regress/regress-crbug-530598.js [new file with mode: 0644]