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

Issue 2656753003: [ast/parsing] Pessimistically assume all top-level variables will be assigned. (Closed)

Created:
3 years, 11 months ago by neis
Modified:
3 years, 10 months ago
Reviewers:
adamk, marja
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[ast/parsing] Pessimistically assume all top-level variables will be assigned. A previous CL (https://codereview.chromium.org/2634123002) did that for let-declared variables. This CL also does it for var- and function-declared variables. BUG=v8:5636 Review-Url: https://codereview.chromium.org/2656753003 Cr-Commit-Position: refs/heads/master@{#42813} Committed: https://chromium.googlesource.com/v8/v8/+/32842802b5f64544b0d3222a780f3fff7be13232

Patch Set 1 #

Total comments: 3

Patch Set 2 : Update comment. #

Patch Set 3 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -14 lines) Patch
M src/ast/ast.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M src/ast/scopes.cc View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M src/parsing/parser.h View 1 2 1 chunk +14 lines, -0 lines 0 comments Download
M src/parsing/parser.cc View 1 2 2 chunks +4 lines, -1 line 0 comments Download
M src/parsing/pattern-rewriter.cc View 1 2 3 chunks +3 lines, -11 lines 0 comments Download
M test/cctest/test-parsing.cc View 1 2 1 chunk +4 lines, -1 line 0 comments Download

Messages

Total messages: 26 (15 generated)
neis
ptal
3 years, 11 months ago (2017-01-25 12:31:49 UTC) #5
marja
https://codereview.chromium.org/2656753003/diff/1/src/parsing/parser.h File src/parsing/parser.h (right): https://codereview.chromium.org/2656753003/diff/1/src/parsing/parser.h#newcode827 src/parsing/parser.h:827: // assigned. This is because they might be accessed ...
3 years, 11 months ago (2017-01-25 12:44:10 UTC) #6
neis
On 2017/01/25 12:44:10, marja wrote: > https://codereview.chromium.org/2656753003/diff/1/src/parsing/parser.h > File src/parsing/parser.h (right): > > https://codereview.chromium.org/2656753003/diff/1/src/parsing/parser.h#newcode827 > ...
3 years, 11 months ago (2017-01-25 13:48:22 UTC) #9
marja
Hmm, e.g., in the case of complex params we create several variables - which of ...
3 years, 11 months ago (2017-01-25 17:15:08 UTC) #10
marja
Hmm, lgtm, as I don't have concrete ideas how to make this better for now, ...
3 years, 11 months ago (2017-01-25 20:38:57 UTC) #11
neis
Adam, any thoughts?
3 years, 10 months ago (2017-01-27 09:30:00 UTC) #13
adamk
https://codereview.chromium.org/2656753003/diff/1/src/parsing/parser.h File src/parsing/parser.h (right): https://codereview.chromium.org/2656753003/diff/1/src/parsing/parser.h#newcode833 src/parsing/parser.h:833: if (scope->is_script_scope() || scope->is_module_scope()) { I thought we currently ...
3 years, 10 months ago (2017-01-27 16:07:36 UTC) #14
neis
On 2017/01/27 16:07:36, adamk wrote: > https://codereview.chromium.org/2656753003/diff/1/src/parsing/parser.h > File src/parsing/parser.h (right): > > https://codereview.chromium.org/2656753003/diff/1/src/parsing/parser.h#newcode833 > ...
3 years, 10 months ago (2017-01-30 09:30:34 UTC) #15
adamk
Apparently the answer is, I was confused. This lgtm, though I agree we should continue ...
3 years, 10 months ago (2017-01-30 21:06:57 UTC) #16
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/2656753003/60001
3 years, 10 months ago (2017-01-31 13:33:13 UTC) #23
commit-bot: I haz the power
3 years, 10 months ago (2017-01-31 13:36:01 UTC) #26
Message was sent while issue was closed.
Committed patchset #3 (id:60001) as
https://chromium.googlesource.com/v8/v8/+/32842802b5f64544b0d3222a780f3fff7be...

Powered by Google App Engine
This is Rietveld 408576698