Make preparser detect duplicate parameters and object literal properties.
authorlrn@chromium.org <lrn@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 6 Jul 2011 08:32:48 +0000 (08:32 +0000)
committerlrn@chromium.org <lrn@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 6 Jul 2011 08:32:48 +0000 (08:32 +0000)
commit57760b8275f8cf9aa44bbb0334af58094499c147
tree0730b013a2ed5e509e519c3d7e28d85e6580bc8c
parent1fff78036e47097670e8baeb4848cd754f8a220c
Make preparser detect duplicate parameters and object literal properties.

This is a fix and reapply of r8516 with some comments addressed and more
tests added.
The difference from r8516 is that canonicalization of number literals is
no performed using the same methods as in v8, to avoid false positives/negatives
when detecting duplicates.

Review URL: http://codereview.chromium.org/7193045

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@8541 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
15 files changed:
src/SConscript
src/bignum-dtoa.cc
src/conversions.cc
src/conversions.h
src/dtoa.cc
src/fast-dtoa.cc
src/fixed-dtoa.cc
src/preparser-api.cc
src/preparser.cc
src/preparser.h
src/scanner-base.h
src/utils.h
test/preparser/duplicate-parameter.pyt [new file with mode: 0644]
test/preparser/duplicate-property.pyt [new file with mode: 0644]
test/preparser/testcfg.py