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

Issue 2313723005: [parser] Simplify parse-time function name inference for properties (Closed)

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

Description

[parser] Simplify parse-time function name inference for properties Move the code to perform function name inference for properties into parsing the properties themselves, instead of the containing object. This allows us to avoid unnecessary calls when parsing shorthand properties and methods and simplifies the logic in the remaining cases. Also fixes an edge case bug: inferring the name of the getter in `class { static get constructor(){} }`. Committed: https://crrev.com/2aab10f5b329a569de91ac36bcd28e4a6a9941aa Cr-Commit-Position: refs/heads/master@{#39222}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+70 lines, -87 lines) Patch
M src/parsing/parser.h View 1 chunk +3 lines, -2 lines 0 comments Download
M src/parsing/parser.cc View 3 chunks +17 lines, -54 lines 0 comments Download
M src/parsing/parser-base.h View 13 chunks +41 lines, -29 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 +1 line, -2 lines 0 comments Download
M test/mjsunit/es6/function-name.js View 2 chunks +5 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (4 generated)
bakkot
PTAL and add other reviewers as appropriate. Afaict, SetFunctionNameFromPropertyName is only necessary in two cases: ...
4 years, 3 months ago (2016-09-06 18:06:35 UTC) #3
adamk
lgtm
4 years, 3 months ago (2016-09-06 18:18:52 UTC) #4
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/2313723005/1
4 years, 3 months ago (2016-09-06 18:22:56 UTC) #6
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 3 months ago (2016-09-06 18:49:12 UTC) #7
commit-bot: I haz the power
4 years, 3 months ago (2016-09-06 18:49:58 UTC) #9
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/2aab10f5b329a569de91ac36bcd28e4a6a9941aa
Cr-Commit-Position: refs/heads/master@{#39222}

Powered by Google App Engine
This is Rietveld 408576698