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

Issue 880253004: Do not create unresolved variables when parsing arrow functions lazily (Closed)

Created:
5 years, 10 months ago by aperez
Modified:
5 years, 10 months ago
Reviewers:
wingo, marja
CC:
v8-dev
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Do not create unresolved variables when parsing arrow functions lazily Arrow function parameter lists are parsed as expressions. When an identifier is found a VariableProxy is created and added to the list of unresolved variables for the scope. When parsing a function lazily, the scope has been already resolved, so with this patch only the VariableProxy is created, without adding it as an unresolved variable in the scope. BUG=v8:3501 LOG=Y Committed: https://crrev.com/91b87e7a2884b3322f48dd9cf532eb0e8b462029 Cr-Commit-Position: refs/heads/master@{#26328}

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -6 lines) Patch
M src/parser.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/parser.cc View 4 chunks +17 lines, -1 line 2 comments Download
A + test/mjsunit/regress/regress-3501.js View 1 chunk +5 lines, -5 lines 0 comments Download

Messages

Total messages: 10 (3 generated)
aperez
5 years, 10 months ago (2015-01-28 19:22:36 UTC) #2
marja
https://codereview.chromium.org/880253004/diff/1/src/parser.cc File src/parser.cc (right): https://codereview.chromium.org/880253004/diff/1/src/parser.cc#newcode1078 src/parser.cc:1078: result = expression->AsFunctionLiteral(); Why are setting parsing_lazy_arrow_parameters_ to true ...
5 years, 10 months ago (2015-01-29 09:53:01 UTC) #4
aperez
https://codereview.chromium.org/880253004/diff/1/src/parser.cc File src/parser.cc (right): https://codereview.chromium.org/880253004/diff/1/src/parser.cc#newcode1078 src/parser.cc:1078: result = expression->AsFunctionLiteral(); On 2015/01/29 09:53:01, marja wrote: > ...
5 years, 10 months ago (2015-01-29 14:38:04 UTC) #5
marja
Ah, right, yes. lgtm.
5 years, 10 months ago (2015-01-29 14:46:24 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/880253004/1
5 years, 10 months ago (2015-01-29 15:23:37 UTC) #8
commit-bot: I haz the power
Committed patchset #1 (id:1)
5 years, 10 months ago (2015-01-29 15:53:11 UTC) #9
commit-bot: I haz the power
5 years, 10 months ago (2015-01-29 15:53:26 UTC) #10
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/91b87e7a2884b3322f48dd9cf532eb0e8b462029
Cr-Commit-Position: refs/heads/master@{#26328}

Powered by Google App Engine
This is Rietveld 408576698