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

Issue 2411793003: Preparse lazy function parameters (Closed)

Created:
4 years, 2 months ago by marja
Modified:
4 years, 1 month ago
Reviewers:
Toon Verwaest
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Preparse lazy function parameters Parameters of a lazily parsed function used to be parsed eagerly, and parameter handling was split between Parser::ParseFunctionLiteral and ParseEagerFunctionBody, leading into inconsistencies. After this CL, we preparse (lazy parse) the parameters of lazily parsed functions. (For arrow functions, we cannot do that ofc.) This is needed for later features (PreParser with scope analysis). BUG=

Patch Set 1 #

Patch Set 2 : new version - now compiles #

Patch Set 3 : fixes, transmit arity #

Patch Set 4 : fixes #

Patch Set 5 : rebased #

Patch Set 6 : rebased #

Patch Set 7 : fixes #

Patch Set 8 : cleanup #

Patch Set 9 : fixes and cleanup #

Patch Set 10 : fixes #

Patch Set 11 : rebased #

Patch Set 12 : . #

Patch Set 13 : fixing but it doesn't work yet #

Patch Set 14 : fixing #

Patch Set 15 : moar #

Patch Set 16 : rebased #

Total comments: 7

Patch Set 17 : rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+305 lines, -140 lines) Patch
M src/parsing/parser.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 4 chunks +35 lines, -15 lines 0 comments Download
M src/parsing/parser.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 14 chunks +122 lines, -90 lines 0 comments Download
M src/parsing/parser-base.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +13 lines, -2 lines 0 comments Download
M src/parsing/preparse-data.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 5 chunks +41 lines, -4 lines 0 comments Download
M src/parsing/preparse-data-format.h View 1 1 chunk +1 line, -1 line 0 comments Download
M src/parsing/preparser.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +9 lines, -4 lines 0 comments Download
M src/parsing/preparser.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 4 chunks +57 lines, -12 lines 0 comments Download
M test/cctest/test-parsing.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +27 lines, -12 lines 0 comments Download

Messages

Total messages: 14 (11 generated)
marja
ptal
4 years, 2 months ago (2016-10-18 11:58:46 UTC) #10
Toon Verwaest
Overall this looks good. I'm not sure it's easier to understand to have a single ...
4 years, 2 months ago (2016-10-18 15:24:28 UTC) #13
marja
4 years, 1 month ago (2016-11-16 10:44:38 UTC) #14
Closing this, since https://codereview.chromium.org/2472063002 from
verwaest@ contains the relevant changes from this cl.

Powered by Google App Engine
This is Rietveld 408576698