[turbofan] Fix broken dynamic TDZ check for let and const.
authormstarzinger <mstarzinger@chromium.org>
Wed, 26 Aug 2015 09:52:59 +0000 (02:52 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 26 Aug 2015 09:53:11 +0000 (09:53 +0000)
commitcbd4f5aa98eb82f5ef68c7163f2fd4f27b958e67
treeed65e7710b6d65d11f84fef7b0ef8a5113e5ae82
parent590b3bed5cde682b9830b4b78c99fb4961734402
[turbofan] Fix broken dynamic TDZ check for let and const.

This fixes broken dynamic hole-checks for the temporal dead zone of
non-initializing assignments to {let} and {const} declared variables.
Also note that this exemplifies a case where the dynamic check for such
assignments to {let} declared variables can no longer be elided as the
comment suggested.

R=rossberg@chromium.org
TEST=mjsunit/regress/regress-4388
BUG=v8:4388
LOG=n

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

Cr-Commit-Position: refs/heads/master@{#30375}
src/compiler/ast-graph-builder.cc
test/mjsunit/regress/regress-4388.js [new file with mode: 0644]