[destructuring] Refactor duplicate parameter name detection.
authordslomov <dslomov@chromium.org>
Tue, 9 Jun 2015 17:13:35 +0000 (10:13 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 9 Jun 2015 17:13:48 +0000 (17:13 +0000)
commitb64e13b0d846daf57bc200dc4559e834f9cb2a91
tree2963926d7ff2e48199d6d067078085686deb0bde
parent08a09d1b258eb775f641c5edf3aba4ac1c522652
[destructuring] Refactor duplicate parameter name detection.

Pushed the detection logic down to ParseAndClassifyIdentifier in
preparation to having patterns in parameter positions.

R=arv@chromium.org,rossberg@chromium.org,wingo@igalia.com
BUG=v8:811
LOG=N

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

Cr-Commit-Position: refs/heads/master@{#28876}
BUILD.gn
src/expression-classifier.h [new file with mode: 0644]
src/parser.cc
src/parser.h
src/preparser.cc
src/preparser.h
tools/gyp/v8.gyp