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

Issue 2472063002: Preparse lazy function parameters (Closed)

Created:
4 years, 1 month ago by Toon Verwaest
Modified:
4 years, 1 month ago
Reviewers:
vogelheim, marja
CC:
v8-reviews_googlegroups.com, marja
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 to 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). -- CL adapted from marja's https://codereview.chromium.org/2411793003/ BUG= Committed: https://crrev.com/4ff2cafe9309b591b1ecd68823d2a01cedf5efb8 Cr-Commit-Position: refs/heads/master@{#40771}

Patch Set 1 #

Patch Set 2 : Better pack log entries #

Patch Set 3 : fix #

Total comments: 4

Patch Set 4 : IsArrowFunction #

Unified diffs Side-by-side diffs Delta from patch set Stats (+322 lines, -177 lines) Patch
M src/ast/scopes.cc View 2 chunks +3 lines, -22 lines 0 comments Download
M src/ast/variables.h View 1 chunk +0 lines, -3 lines 0 comments Download
M src/parsing/parser.h View 1 2 4 chunks +56 lines, -20 lines 0 comments Download
M src/parsing/parser.cc View 1 13 chunks +111 lines, -88 lines 0 comments Download
M src/parsing/parser-base.h View 1 2 chunks +13 lines, -2 lines 0 comments Download
M src/parsing/preparse-data.h View 1 6 chunks +35 lines, -13 lines 0 comments Download
M src/parsing/preparse-data.cc View 1 1 chunk +14 lines, -0 lines 0 comments Download
M src/parsing/preparse-data-format.h View 1 chunk +1 line, -1 line 0 comments Download
M src/parsing/preparser.h View 1 3 chunks +9 lines, -4 lines 0 comments Download
M src/parsing/preparser.cc View 1 2 3 4 chunks +53 lines, -12 lines 0 comments Download
M test/cctest/test-parsing.cc View 2 chunks +27 lines, -12 lines 0 comments Download

Messages

Total messages: 11 (4 generated)
Toon Verwaest
ptal
4 years, 1 month ago (2016-11-04 13:00:17 UTC) #2
marja
generally lg (and not least because it's mostly from my cl ;) https://codereview.chromium.org/2472063002/diff/40001/src/parsing/parser.cc File src/parsing/parser.cc ...
4 years, 1 month ago (2016-11-04 14:25:08 UTC) #4
marja
lgtm for lparen, i didn't notice the comment in my orig cl; indeed this version ...
4 years, 1 month ago (2016-11-04 14:35:09 UTC) #5
Toon Verwaest
https://codereview.chromium.org/2472063002/diff/40001/src/parsing/parser.cc File src/parsing/parser.cc (right): https://codereview.chromium.org/2472063002/diff/40001/src/parsing/parser.cc#newcode3101 src/parsing/parser.cc:3101: On 2016/11/04 14:25:07, marja wrote: > Any particular reason ...
4 years, 1 month ago (2016-11-04 14:35:56 UTC) #6
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/2472063002/60001
4 years, 1 month ago (2016-11-04 14:37:13 UTC) #8
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 1 month ago (2016-11-04 15:04:09 UTC) #9
commit-bot: I haz the power
4 years, 1 month ago (2016-11-17 22:23:08 UTC) #11
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/4ff2cafe9309b591b1ecd68823d2a01cedf5efb8
Cr-Commit-Position: refs/heads/master@{#40771}

Powered by Google App Engine
This is Rietveld 408576698