|
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.
Committed: http://code.google.com/p/v8/source/detail?r=8541
Total comments: 5
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+611 lines, -76 lines) |
Patch |
|
M |
src/SConscript
|
View
|
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/bignum-dtoa.cc
|
View
|
|
2 chunks |
+5 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/conversions.h
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/conversions.cc
|
View
|
|
3 chunks |
+2 lines, -21 lines |
0 comments
|
Download
|
|
M |
src/dtoa.cc
|
View
|
|
2 chunks |
+5 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/fast-dtoa.cc
|
View
|
|
2 chunks |
+4 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/fixed-dtoa.cc
|
View
|
|
2 chunks |
+4 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/preparser.h
|
View
|
|
4 chunks |
+97 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/preparser.cc
|
View
|
1
2
|
20 chunks |
+215 lines, -33 lines |
0 comments
|
Download
|
|
M |
src/preparser-api.cc
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
src/scanner-base.h
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/utils.h
|
View
|
|
2 chunks |
+15 lines, -10 lines |
0 comments
|
Download
|
|
A |
test/preparser/duplicate-parameter.pyt
|
View
|
1
2
|
1 chunk |
+90 lines, -0 lines |
0 comments
|
Download
|
|
A |
test/preparser/duplicate-property.pyt
|
View
|
1
2
|
1 chunk |
+162 lines, -0 lines |
0 comments
|
Download
|
|
M |
test/preparser/testcfg.py
|
View
|
|
3 chunks |
+2 lines, -4 lines |
0 comments
|
Download
|
Total messages: 3 (0 generated)
|