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

Issue 2670633003: [parser] Skipping inner funcs: produce the same scopes / variables for sloppy block funcs. (Closed)

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

Description

[parser] Skipping inner funcs: produce the same scopes / variables for sloppy block funcs. BUG=v8:5516 R=vogelheim@chromium.org Review-Url: https://codereview.chromium.org/2670633003 Cr-Commit-Position: refs/heads/master@{#42913} Committed: https://chromium.googlesource.com/v8/v8/+/dec6112752d700ad21873462b503f4272d3c66f4

Patch Set 1 #

Total comments: 7

Patch Set 2 : code review (vogelheim@) #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+65 lines, -23 lines) Patch
M src/ast/scopes.h View 2 chunks +3 lines, -2 lines 0 comments Download
M src/ast/scopes.cc View 1 7 chunks +24 lines, -15 lines 2 comments Download
M src/parsing/preparser.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M test/cctest/test-parsing.cc View 1 2 chunks +34 lines, -2 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 11 (4 generated)
marja
ptal https://codereview.chromium.org/2670633003/diff/1/src/ast/scopes.cc File src/ast/scopes.cc (right): https://codereview.chromium.org/2670633003/diff/1/src/ast/scopes.cc#newcode575 src/ast/scopes.cc:575: created_variable->set_maybe_assigned(); The Variable passing is needed to be ...
3 years, 10 months ago (2017-02-02 11:56:17 UTC) #1
vogelheim
lgtm https://codereview.chromium.org/2670633003/diff/1/src/ast/scopes.cc File src/ast/scopes.cc (right): https://codereview.chromium.org/2670633003/diff/1/src/ast/scopes.cc#newcode575 src/ast/scopes.cc:575: created_variable->set_maybe_assigned(); On 2017/02/02 11:56:17, marja wrote: > The ...
3 years, 10 months ago (2017-02-02 19:00:42 UTC) #2
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/2670633003/20001
3 years, 10 months ago (2017-02-03 07:47:27 UTC) #5
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://chromium.googlesource.com/v8/v8/+/dec6112752d700ad21873462b503f4272d3c66f4
3 years, 10 months ago (2017-02-03 08:16:13 UTC) #8
vogelheim
https://codereview.chromium.org/2670633003/diff/20001/src/ast/scopes.cc File src/ast/scopes.cc (right): https://codereview.chromium.org/2670633003/diff/20001/src/ast/scopes.cc#newcode574 src/ast/scopes.cc:574: if (created_variable != kDummyPreParserVariable && In the previous version, ...
3 years, 10 months ago (2017-02-03 18:33:26 UTC) #9
marja
had forgot to post these comments will look at your question shortly.. https://codereview.chromium.org/2670633003/diff/1/src/ast/scopes.cc File src/ast/scopes.cc ...
3 years, 10 months ago (2017-02-03 21:03:01 UTC) #10
marja
3 years, 10 months ago (2017-02-03 21:03:54 UTC) #11
Message was sent while issue was closed.
https://codereview.chromium.org/2670633003/diff/20001/src/ast/scopes.cc
File src/ast/scopes.cc (right):

https://codereview.chromium.org/2670633003/diff/20001/src/ast/scopes.cc#newco...
src/ast/scopes.cc:574: if (created_variable != kDummyPreParserVariable &&
On 2017/02/03 18:33:25, vogelheim wrote:
> In the previous version, this check always happened when !factory, even if
> created_variable was set in a previous iteration and is not-null in this one.
Is
> this intentional?

Yeah, we don't need to set_maybe_assigned on the same variable multiple times.

Powered by Google App Engine
This is Rietveld 408576698