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

Issue 1563923002: [es6] Handle function names in object and class literals (Closed)

Created:
4 years, 11 months ago by adamk
Modified:
4 years, 11 months ago
Reviewers:
Dan Ehrenberg
CC:
v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[es6] Handle function names in object and class literals This required refactoring ParsePropertyDefinition to pass the parsed string name as an out param, since ObjectLiteralProperty stores Smis for Smi-representable property keys. Computed properties are not yet handled in this patch. BUG=v8:3699 LOG=n Committed: https://crrev.com/2367abf02579dd2b0643927109bc6d74c502479f Cr-Commit-Position: refs/heads/master@{#33141}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Handled review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+166 lines, -21 lines) Patch
M src/ast/ast.h View 3 chunks +4 lines, -4 lines 0 comments Download
M src/ast/ast-value-factory.h View 2 chunks +2 lines, -0 lines 0 comments Download
M src/parsing/parser.h View 1 chunk +3 lines, -0 lines 0 comments Download
M src/parsing/parser.cc View 1 3 chunks +44 lines, -1 line 0 comments Download
M src/parsing/parser-base.h View 1 11 chunks +21 lines, -15 lines 0 comments Download
M src/parsing/preparser.h View 1 chunk +3 lines, -0 lines 0 comments Download
M src/parsing/preparser.cc View 1 chunk +2 lines, -1 line 0 comments Download
M test/mjsunit/harmony/function-name.js View 1 1 chunk +87 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (7 generated)
adamk
4 years, 11 months ago (2016-01-06 20:36:03 UTC) #3
Dan Ehrenberg
lgtm https://codereview.chromium.org/1563923002/diff/1/src/parsing/parser.cc File src/parsing/parser.cc (right): https://codereview.chromium.org/1563923002/diff/1/src/parsing/parser.cc#newcode6536 src/parsing/parser.cc:6536: if (property->is_computed_name()) return; Optional: Add a failing test ...
4 years, 11 months ago (2016-01-06 21:25:39 UTC) #5
Dan Ehrenberg
That was a mistaken click. I have a couple comments, but the big one is ...
4 years, 11 months ago (2016-01-06 21:26:25 UTC) #7
Dan Ehrenberg
On 2016/01/06 at 21:26:25, Dan Ehrenberg wrote: > That was a mistaken click. I have ...
4 years, 11 months ago (2016-01-06 21:36:41 UTC) #8
adamk
Good catch, __proto__ is now handled correctly. https://codereview.chromium.org/1563923002/diff/1/src/parsing/parser.cc File src/parsing/parser.cc (right): https://codereview.chromium.org/1563923002/diff/1/src/parsing/parser.cc#newcode6536 src/parsing/parser.cc:6536: if (property->is_computed_name()) ...
4 years, 11 months ago (2016-01-06 21:53:03 UTC) #9
Dan Ehrenberg
lgtm
4 years, 11 months ago (2016-01-06 22:09:30 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1563923002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1563923002/20001
4 years, 11 months ago (2016-01-06 22:32:57 UTC) #12
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 11 months ago (2016-01-06 23:38:34 UTC) #14
commit-bot: I haz the power
4 years, 11 months ago (2016-01-06 23:39:22 UTC) #16
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/2367abf02579dd2b0643927109bc6d74c502479f
Cr-Commit-Position: refs/heads/master@{#33141}

Powered by Google App Engine
This is Rietveld 408576698