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

Issue 1078483002: [es6]: Lexical arguments for arrow functions (Closed)

Created:
5 years, 8 months ago by arv (Not doing code reviews)
Modified:
5 years, 8 months ago
Reviewers:
wingo, caitp (gmail), adamk
CC:
v8-dev
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Lexical arguments for arrow functions Only allocate 'arguments' if the scope is not an arrow scope. BUG=v8:2700 LOG=N R=adamk@chromium.org, wingo@igalia.cmo Committed: https://crrev.com/635b5fea9879de29173376ee12ae12319370123e Cr-Commit-Position: refs/heads/master@{#27716}

Patch Set 1 #

Patch Set 2 : ready #

Total comments: 5

Patch Set 3 : Make arguments() DCHECK instead #

Unified diffs Side-by-side diffs Delta from patch set Stats (+168 lines, -5 lines) Patch
M src/scopes.h View 1 2 1 chunk +4 lines, -1 line 0 comments Download
M src/scopes.cc View 1 2 chunks +6 lines, -4 lines 0 comments Download
A test/mjsunit/harmony/arrow-functions-lexical-arguments.js View 1 1 chunk +158 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (4 generated)
arv (Not doing code reviews)
Adam, Andy: Is this a reasonable approach? I can make this into a real CL ...
5 years, 8 months ago (2015-04-08 21:51:25 UTC) #2
adamk
This looks reasonable to me (though I'm just now booting up on arrow functions).
5 years, 8 months ago (2015-04-08 21:59:00 UTC) #3
wingo
On 2015/04/08 21:59:00, adamk wrote: > This looks reasonable to me (though I'm just now ...
5 years, 8 months ago (2015-04-09 07:59:23 UTC) #4
arv (Not doing code reviews)
ready
5 years, 8 months ago (2015-04-09 14:58:54 UTC) #5
arv (Not doing code reviews)
This is now ready for realz. PTAL
5 years, 8 months ago (2015-04-09 15:01:53 UTC) #6
caitp (gmail)
https://codereview.chromium.org/1078483002/diff/20001/test/mjsunit/harmony/arrow-functions-lexical-arguments.js File test/mjsunit/harmony/arrow-functions-lexical-arguments.js (right): https://codereview.chromium.org/1078483002/diff/20001/test/mjsunit/harmony/arrow-functions-lexical-arguments.js#newcode151 test/mjsunit/harmony/arrow-functions-lexical-arguments.js:151: (() => { Should there be a test where ...
5 years, 8 months ago (2015-04-09 15:13:09 UTC) #8
arv (Not doing code reviews)
On 2015/04/09 15:13:09, caitp wrote: > https://codereview.chromium.org/1078483002/diff/20001/test/mjsunit/harmony/arrow-functions-lexical-arguments.js > File test/mjsunit/harmony/arrow-functions-lexical-arguments.js (right): > > https://codereview.chromium.org/1078483002/diff/20001/test/mjsunit/harmony/arrow-functions-lexical-arguments.js#newcode151 > ...
5 years, 8 months ago (2015-04-09 15:37:40 UTC) #9
arv (Not doing code reviews)
On 2015/04/09 15:37:40, arv wrote: > On 2015/04/09 15:13:09, caitp wrote: > > > https://codereview.chromium.org/1078483002/diff/20001/test/mjsunit/harmony/arrow-functions-lexical-arguments.js ...
5 years, 8 months ago (2015-04-09 15:43:44 UTC) #10
caitp (gmail)
On 2015/04/09 15:37:40, arv wrote: > On 2015/04/09 15:13:09, caitp wrote: > > > https://codereview.chromium.org/1078483002/diff/20001/test/mjsunit/harmony/arrow-functions-lexical-arguments.js ...
5 years, 8 months ago (2015-04-09 15:44:21 UTC) #11
arv (Not doing code reviews)
On 2015/04/09 15:43:44, arv wrote: > On 2015/04/09 15:37:40, arv wrote: > > On 2015/04/09 ...
5 years, 8 months ago (2015-04-09 15:46:08 UTC) #12
arv (Not doing code reviews)
On 2015/04/09 15:44:21, caitp wrote: > I think it matters re: lexical `arguments`, because a ...
5 years, 8 months ago (2015-04-09 15:47:21 UTC) #13
adamk
https://codereview.chromium.org/1078483002/diff/20001/src/scopes.h File src/scopes.h (right): https://codereview.chromium.org/1078483002/diff/20001/src/scopes.h#newcode398 src/scopes.h:398: return is_arrow_scope() ? nullptr : arguments_; Why is this ...
5 years, 8 months ago (2015-04-09 15:56:03 UTC) #14
adamk
lgtm https://codereview.chromium.org/1078483002/diff/20001/src/scopes.h File src/scopes.h (right): https://codereview.chromium.org/1078483002/diff/20001/src/scopes.h#newcode398 src/scopes.h:398: return is_arrow_scope() ? nullptr : arguments_; On 2015/04/09 ...
5 years, 8 months ago (2015-04-09 16:18:04 UTC) #15
wingo
LGTM. Nice! https://codereview.chromium.org/1078483002/diff/20001/test/mjsunit/harmony/arrow-functions-lexical-arguments.js File test/mjsunit/harmony/arrow-functions-lexical-arguments.js (right): https://codereview.chromium.org/1078483002/diff/20001/test/mjsunit/harmony/arrow-functions-lexical-arguments.js#newcode151 test/mjsunit/harmony/arrow-functions-lexical-arguments.js:151: (() => { On 2015/04/09 15:13:09, caitp ...
5 years, 8 months ago (2015-04-09 16:18:21 UTC) #16
wingo
> https://codereview.chromium.org/1078483002/diff/20001/test/mjsunit/harmony/arrow-functions-lexical-arguments.js#newcode151 > test/mjsunit/harmony/arrow-functions-lexical-arguments.js:151: (() => { > On 2015/04/09 15:13:09, caitp wrote: > > ...
5 years, 8 months ago (2015-04-09 16:22:26 UTC) #17
arv (Not doing code reviews)
On 2015/04/09 16:22:26, wingo wrote: > > > https://codereview.chromium.org/1078483002/diff/20001/test/mjsunit/harmony/arrow-functions-lexical-arguments.js#newcode151 > > test/mjsunit/harmony/arrow-functions-lexical-arguments.js:151: (() => { ...
5 years, 8 months ago (2015-04-09 16:49:56 UTC) #18
arv (Not doing code reviews)
https://codereview.chromium.org/1078483002/diff/20001/src/scopes.h File src/scopes.h (right): https://codereview.chromium.org/1078483002/diff/20001/src/scopes.h#newcode398 src/scopes.h:398: return is_arrow_scope() ? nullptr : arguments_; On 2015/04/09 16:18:04, ...
5 years, 8 months ago (2015-04-09 16:53:07 UTC) #19
arv (Not doing code reviews)
Make arguments() DCHECK instead
5 years, 8 months ago (2015-04-09 16:56:25 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1078483002/40001
5 years, 8 months ago (2015-04-09 16:59:19 UTC) #23
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 8 months ago (2015-04-09 19:39:41 UTC) #24
commit-bot: I haz the power
5 years, 8 months ago (2015-04-09 19:39:52 UTC) #25
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/635b5fea9879de29173376ee12ae12319370123e
Cr-Commit-Position: refs/heads/master@{#27716}

Powered by Google App Engine
This is Rietveld 408576698