Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(372)

Issue 6815006: [Arguments] Mark functions with duplicated parameters. (Closed)

Created:
9 years, 8 months ago by Kevin Millikin (Chromium)
Modified:
9 years, 7 months ago
Reviewers:
Martin Maly, rossberg
CC:
v8-dev
Visibility:
Public.

Description

[Arguments] Mark functions with duplicated parameters. Add a bit to the scope, set when a duplicated parameter is detected by the parser. Propagate it to the shared function info. Committed: http://code.google.com/p/v8/source/detail?r=7538

Patch Set 1 #

Patch Set 2 : Moved bit from scope to function literal. #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+52 lines, -27 lines) Patch
M src/ast.h View 1 4 chunks +12 lines, -6 lines 0 comments Download
M src/compiler.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/objects.h View 2 chunks +16 lines, -8 lines 0 comments Download
M src/objects-inl.h View 1 chunk +4 lines, -0 lines 0 comments Download
M src/parser.cc View 1 5 chunks +17 lines, -13 lines 0 comments Download
M src/scopes.h View 1 2 chunks +2 lines, -0 lines 3 comments Download

Messages

Total messages: 5 (0 generated)
Kevin Millikin (Chromium)
9 years, 8 months ago (2011-04-07 09:44:32 UTC) #1
Martin Maly
We should make sure this change works well with lazy compilation. When we do full ...
9 years, 8 months ago (2011-04-07 09:53:24 UTC) #2
Kevin Millikin (Chromium)
Moved the bit to the function literal (it's per function, not per scope).
9 years, 8 months ago (2011-04-07 10:46:52 UTC) #3
Martin Maly
LGTM. http://codereview.chromium.org/6815006/diff/2002/src/scopes.h File src/scopes.h (right): http://codereview.chromium.org/6815006/diff/2002/src/scopes.h#newcode362 src/scopes.h:362: bool has_duplicate_parameters_; Is this still needed? http://codereview.chromium.org/6815006/diff/2002/src/scopes.h#newcode436 src/scopes.h:436: ...
9 years, 8 months ago (2011-04-07 11:00:49 UTC) #4
Kevin Millikin (Chromium)
9 years, 8 months ago (2011-04-07 11:02:00 UTC) #5
http://codereview.chromium.org/6815006/diff/2002/src/scopes.h
File src/scopes.h (right):

http://codereview.chromium.org/6815006/diff/2002/src/scopes.h#newcode362
src/scopes.h:362: bool has_duplicate_parameters_;
On 2011/04/07 11:00:49, Martin Maly wrote:
> Is this still needed?

Good catch, removed.

Powered by Google App Engine
This is Rietveld 408576698