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

Issue 996223003: [es6] support template literals after MemberExpression (Closed)

Created:
5 years, 9 months ago by caitp (gmail)
Modified:
5 years, 9 months ago
CC:
v8-dev
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[es6] support template literals after MemberExpression BUG=v8:3958, 450942 LOG=N R=arv@chromium.org Committed: https://crrev.com/1aae3a1c89c2c4283c8e611930ce74f49d6cd9b1 Cr-Commit-Position: refs/heads/master@{#27159}

Patch Set 1 #

Patch Set 2 : Remove duplicated code, simplify test code #

Patch Set 3 : Delete meaningless edit #

Total comments: 2

Patch Set 4 : Get rid of handling in LeftHandSideExpression, add comment #

Patch Set 5 : Fix tagged template NewExpression case #

Total comments: 6

Patch Set 6 : New tests, delete unneeded code, some comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+94 lines, -23 lines) Patch
M src/preparser.h View 1 2 3 4 5 4 chunks +18 lines, -19 lines 0 comments Download
M src/scanner.h View 2 chunks +7 lines, -3 lines 0 comments Download
M test/mjsunit/harmony/templates.js View 1 2 3 4 5 2 chunks +69 lines, -1 line 0 comments Download

Messages

Total messages: 27 (10 generated)
caitp (gmail)
PTAL Things on the TODO list: - Don't duplicate code between ParseLeftHandSideExpression and ParseMemberExpressionContinuation - ...
5 years, 9 months ago (2015-03-11 17:05:33 UTC) #2
arv (Not doing code reviews)
LGTM https://codereview.chromium.org/996223003/diff/40001/src/scanner.h File src/scanner.h (right): https://codereview.chromium.org/996223003/diff/40001/src/scanner.h#newcode723 src/scanner.h:723: LiteralBuffer raw_literal_buffer2_; Ah, I remember this... Silly me ...
5 years, 9 months ago (2015-03-11 18:25:11 UTC) #3
caitp (gmail)
On 2015/03/11 18:25:11, arv wrote: > LGTM > > https://codereview.chromium.org/996223003/diff/40001/src/scanner.h > File src/scanner.h (right): > ...
5 years, 9 months ago (2015-03-11 18:28:18 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/996223003/40001
5 years, 9 months ago (2015-03-11 18:29:03 UTC) #7
arv (Not doing code reviews)
https://codereview.chromium.org/996223003/diff/40001/src/preparser.h File src/preparser.h (right): https://codereview.chromium.org/996223003/diff/40001/src/preparser.h#newcode2812 src/preparser.h:2812: // ('[' Expression ']' | '.' Identifier)* update this ...
5 years, 9 months ago (2015-03-11 18:48:54 UTC) #9
caitp (gmail)
On 2015/03/11 18:48:54, arv wrote: > https://codereview.chromium.org/996223003/diff/40001/src/preparser.h > File src/preparser.h (right): > > https://codereview.chromium.org/996223003/diff/40001/src/preparser.h#newcode2812 > ...
5 years, 9 months ago (2015-03-11 18:57:11 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/996223003/60001
5 years, 9 months ago (2015-03-11 18:59:01 UTC) #13
caitp (gmail)
New test for new tag`...` `...` `...`, behaviour appears to match Nightly, but reading the ...
5 years, 9 months ago (2015-03-11 20:22:21 UTC) #15
caitp (gmail)
On 2015/03/11 20:22:21, caitp wrote: > New test for new tag`...` `...` `...`, behaviour appears ...
5 years, 9 months ago (2015-03-11 23:01:25 UTC) #17
marja
LGTM Re: spec, I think your interpretation is correct (as far as I can tell ...
5 years, 9 months ago (2015-03-12 11:43:35 UTC) #18
caitp (gmail)
https://codereview.chromium.org/996223003/diff/80001/src/preparser.h File src/preparser.h (right): https://codereview.chromium.org/996223003/diff/80001/src/preparser.h#newcode2713 src/preparser.h:2713: // new tag`a` -> new(tag`a`) On 2015/03/12 11:43:35, marja ...
5 years, 9 months ago (2015-03-12 13:34:15 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/996223003/100001
5 years, 9 months ago (2015-03-12 13:40:06 UTC) #22
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 9 months ago (2015-03-12 14:02:01 UTC) #23
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/1aae3a1c89c2c4283c8e611930ce74f49d6cd9b1 Cr-Commit-Position: refs/heads/master@{#27159}
5 years, 9 months ago (2015-03-12 14:02:14 UTC) #24
arv (Not doing code reviews)
LGTM https://codereview.chromium.org/996223003/diff/80001/test/mjsunit/harmony/templates.js File test/mjsunit/harmony/templates.js (right): https://codereview.chromium.org/996223003/diff/80001/test/mjsunit/harmony/templates.js#newcode579 test/mjsunit/harmony/templates.js:579: })(); One more thing we could test would ...
5 years, 9 months ago (2015-03-12 15:20:03 UTC) #25
caitp (gmail)
On 2015/03/12 15:20:03, arv wrote: > LGTM > > https://codereview.chromium.org/996223003/diff/80001/test/mjsunit/harmony/templates.js > File test/mjsunit/harmony/templates.js (right): > ...
5 years, 9 months ago (2015-03-12 15:21:37 UTC) #26
arv (Not doing code reviews)
5 years, 9 months ago (2015-03-12 15:27:49 UTC) #27
Message was sent while issue was closed.
On 2015/03/12 15:21:37, caitp wrote:
> On 2015/03/12 15:20:03, arv wrote:
> > LGTM
> > 
> >
>
https://codereview.chromium.org/996223003/diff/80001/test/mjsunit/harmony/tem...
> > File test/mjsunit/harmony/templates.js (right):
> > 
> >
>
https://codereview.chromium.org/996223003/diff/80001/test/mjsunit/harmony/tem...
> > test/mjsunit/harmony/templates.js:579: })();
> > One more thing we could test would be:
> > 
> > new tag `x` `y` ('z')
> > 
> > which I believe should be treated as 
> > 
> > new (tag `x` `y`)('z')
> > 
> > ie construct (tag `x` `y`) with 'y' as a param.
> 
> You mean with 'z' as a param? I added this test in the checked in commit, it
> matches Firefox so I think that's good

Oops. yeah 'z'

Powered by Google App Engine
This is Rietveld 408576698