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

Issue 2290753003: Allow lexically declared "arguments" in function scope in sloppy mode. (Closed)

Created:
4 years, 3 months ago by lpy
Modified:
4 years, 3 months ago
Reviewers:
adamk, mythria
CC:
v8-reviews_googlegroups.com, oth, rmcilroy
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Reland - Allow lexically declared "arguments" in function scope in sloppy mode. Lexically declared "arguments" in sloppy mode will throw redeclaration error currently, this patch fixes it by delaying the declaration of arguments until we fully parse parameter list and function body. BUG=v8:4577 LOG=N Committed: https://crrev.com/70a613dd0a5f5d205b46559b55702764464851fa Committed: https://crrev.com/7a38b927c89f54d27ee0ce5c297f06b9b655373b Cr-Original-Commit-Position: refs/heads/master@{#39109} Cr-Commit-Position: refs/heads/master@{#39230}

Patch Set 1 #

Total comments: 8

Patch Set 2 : update #

Total comments: 10

Patch Set 3 : Update #

Total comments: 1

Patch Set 4 : update #

Total comments: 3

Patch Set 5 : clang format #

Unified diffs Side-by-side diffs Delta from patch set Stats (+360 lines, -317 lines) Patch
M src/ast/scopes.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M src/ast/scopes.cc View 1 2 3 chunks +22 lines, -8 lines 0 comments Download
M src/parsing/parser.cc View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/CallLookupSlot.golden View 1 chunk +2 lines, -2 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/ContextVariables.golden View 1 2 1 chunk +263 lines, -260 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/CreateRestParameter.golden View 1 chunk +6 lines, -6 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/Eval.golden View 1 chunk +2 lines, -2 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/LookupSlot.golden View 3 chunks +6 lines, -6 lines 0 comments Download
M test/cctest/interpreter/test-bytecode-generator.cc View 1 2 3 2 chunks +3 lines, -2 lines 0 comments Download
M test/cctest/test-parsing.cc View 1 2 3 4 3 chunks +43 lines, -18 lines 0 comments Download
D test/mjsunit/bugs/bug-4577.js View 1 chunk +0 lines, -13 lines 0 comments Download
A + test/mjsunit/regress/regress-4577.js View 1 2 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 61 (38 generated)
lpy
PTAL.
4 years, 3 months ago (2016-08-29 22:39:47 UTC) #6
adamk
Do you understand why the bytecode golden files changed so much? Is it just because ...
4 years, 3 months ago (2016-08-30 20:45:57 UTC) #7
lpy
PTAL. https://codereview.chromium.org/2290753003/diff/1/src/ast/scopes.cc File src/ast/scopes.cc (right): https://codereview.chromium.org/2290753003/diff/1/src/ast/scopes.cc#newcode444 src/ast/scopes.cc:444: if (arg_variable != NULL && IsLexicalVariableMode(arg_variable->mode())) { On ...
4 years, 3 months ago (2016-09-01 01:17:30 UTC) #10
lpy
Also + mythria@, could you please take a look at bytecode_expectations/?
4 years, 3 months ago (2016-09-01 01:20:12 UTC) #13
mythria
Most changes in bytecode expectations are because of the change in feedback slots. I think ...
4 years, 3 months ago (2016-09-01 09:44:28 UTC) #16
adamk
Just a few more bits. https://codereview.chromium.org/2290753003/diff/20001/src/ast/scopes.cc File src/ast/scopes.cc (right): https://codereview.chromium.org/2290753003/diff/20001/src/ast/scopes.cc#newcode445 src/ast/scopes.cc:445: // See https://tc39.github.io/ecma262/#sec-functiondeclarationinstantiation, The ...
4 years, 3 months ago (2016-09-01 17:36:26 UTC) #17
lpy
Thanks for the feedback, I updated the CL. https://codereview.chromium.org/2290753003/diff/20001/src/ast/scopes.cc File src/ast/scopes.cc (right): https://codereview.chromium.org/2290753003/diff/20001/src/ast/scopes.cc#newcode445 src/ast/scopes.cc:445: // ...
4 years, 3 months ago (2016-09-01 20:00:55 UTC) #22
adamk
lgtm once unused macro is removed https://codereview.chromium.org/2290753003/diff/40001/test/cctest/interpreter/test-bytecode-generator.cc File test/cctest/interpreter/test-bytecode-generator.cc (right): https://codereview.chromium.org/2290753003/diff/40001/test/cctest/interpreter/test-bytecode-generator.cc#newcode59 test/cctest/interpreter/test-bytecode-generator.cc:59: #define REPEAT_249_UNIQUE_VARS() \ ...
4 years, 3 months ago (2016-09-01 20:09:26 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2290753003/60001
4 years, 3 months ago (2016-09-01 21:14:35 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: v8_presubmit on master.tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_presubmit/builds/23122)
4 years, 3 months ago (2016-09-01 21:18:43 UTC) #32
adamk
https://codereview.chromium.org/2290753003/diff/60001/test/cctest/test-parsing.cc File test/cctest/test-parsing.cc (right): https://codereview.chromium.org/2290753003/diff/60001/test/cctest/test-parsing.cc#newcode8324 test/cctest/test-parsing.cc:8324: const char* context_data[][2] = { To make clang-format happy ...
4 years, 3 months ago (2016-09-01 21:21:30 UTC) #33
lpy
yeah, I updated a new one for it, thanks.
4 years, 3 months ago (2016-09-01 21:23:58 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2290753003/80001
4 years, 3 months ago (2016-09-01 21:37:43 UTC) #37
adamk
lgtm with one more clang-format nit https://codereview.chromium.org/2290753003/diff/60001/test/cctest/test-parsing.cc File test/cctest/test-parsing.cc (right): https://codereview.chromium.org/2290753003/diff/60001/test/cctest/test-parsing.cc#newcode8324 test/cctest/test-parsing.cc:8324: const char* context_data[][2] ...
4 years, 3 months ago (2016-09-01 21:37:59 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2290753003/100001
4 years, 3 months ago (2016-09-01 21:46:43 UTC) #43
lpy
https://codereview.chromium.org/2290753003/diff/60001/test/cctest/test-parsing.cc File test/cctest/test-parsing.cc (right): https://codereview.chromium.org/2290753003/diff/60001/test/cctest/test-parsing.cc#newcode8324 test/cctest/test-parsing.cc:8324: const char* context_data[][2] = { On 2016/09/01 21:37:59, adamk ...
4 years, 3 months ago (2016-09-01 21:47:19 UTC) #44
commit-bot: I haz the power
Committed patchset #5 (id:100001)
4 years, 3 months ago (2016-09-01 22:09:41 UTC) #46
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/70a613dd0a5f5d205b46559b55702764464851fa Cr-Commit-Position: refs/heads/master@{#39109}
4 years, 3 months ago (2016-09-01 22:10:48 UTC) #48
Michael Achenbach
A revert of this CL (patchset #5 id:100001) has been created in https://codereview.chromium.org/2304853002/ by machenbach@chromium.org. ...
4 years, 3 months ago (2016-09-02 06:22:54 UTC) #49
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2290753003/100001
4 years, 3 months ago (2016-09-07 06:24:18 UTC) #52
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2290753003/100001
4 years, 3 months ago (2016-09-07 06:25:08 UTC) #57
commit-bot: I haz the power
Committed patchset #5 (id:100001)
4 years, 3 months ago (2016-09-07 06:54:46 UTC) #59
commit-bot: I haz the power
4 years, 3 months ago (2016-09-07 06:54:59 UTC) #61
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/7a38b927c89f54d27ee0ce5c297f06b9b655373b
Cr-Commit-Position: refs/heads/master@{#39230}

Powered by Google App Engine
This is Rietveld 408576698