[turbofan] Fix exit control flow in TryCatchBuilder.
authormstarzinger <mstarzinger@chromium.org>
Tue, 30 Jun 2015 03:23:30 +0000 (20:23 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 30 Jun 2015 03:23:41 +0000 (03:23 +0000)
commitdf06f1c71511ea7f60d0117111e3ee5346d47d83
tree1a327981bd42976a187b0e5736438ebd7753044b
parent40d01b57d93958e31a4e305bbd0d79b2eb8fc3da
[turbofan] Fix exit control flow in TryCatchBuilder.

This makes sure that the exit control flow that merges the try-block
with the catch-block after a try-catch-statement creates a new merge
node in cases where it has to. Otherwise dangling phi nodes might have
the wrong number of value inputs.

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

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

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