mirrored from https://chromium.googlesource.com/v8/v8.git
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't count duplicate assignments to the same property as distinct ones.
In the ThisNamedPropertyAssignmentFinder, duplicate assignments to the same property were counted as distinct assignments. As a simple fix, subsequent ones overwrite the previously recorded assignment. This will reorder the assignments, but it is safe since they are restricted to have only constants and parameters on the right-hand side (and there are no assignments to the parameters). R=vegorov@chromium.org BUG= TEST= Review URL: http://codereview.chromium.org/8139037 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@9540 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
- Loading branch information
kmillikin@chromium.org
committed
Oct 6, 2011
1 parent
11d79c5
commit fa425b5
Showing
1 changed file
with
53 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters