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

Issue 2400613003: PreParsing inner functions: Fix declaration-only variables, part 2. (Closed)

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

Description

PreParsing inner functions: Fix declaration-only variables, part 2. If an inner function only declares a variable but doesn't use it, Parser and PreParser produced different unresolved variables, and that confused the pessimistic context allocation. This is continuation to https://codereview.chromium.org/2388183003/ This CL fixes more complicated declarations (which are not just one identifier). For this, PreParser needs to accumulate identifiers used in expressions. In addition, this CL manifests FLAG_lazy_inner_functions in tests, so that we get clusterfuzz coverage for it. BUG=chromium:650969, v8:5501 Committed: https://crrev.com/e474e5ffc83cddc0cc1ff7cc9d247f90cd827bfd Cr-Commit-Position: refs/heads/master@{#40112}

Patch Set 1 #

Patch Set 2 : more tests and fixes #

Patch Set 3 : cleanup #

Patch Set 4 : beautify #

Patch Set 5 : flag on - just for try jobs - will land w/ flag off #

Patch Set 6 : rebased #

Total comments: 7

Patch Set 7 : flag off + code review (adamk@) #

Patch Set 8 : rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+677 lines, -51 lines) Patch
M src/ast/scopes.cc View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M src/parsing/parser.cc View 1 2 3 4 5 6 2 chunks +2 lines, -0 lines 0 comments Download
M src/parsing/preparser.h View 1 2 3 4 5 6 9 chunks +90 lines, -28 lines 0 comments Download
M src/parsing/preparser.cc View 2 chunks +10 lines, -7 lines 0 comments Download
M test/mjsunit/fixed-context-shapes-when-recompiling.js View 1 2 3 10 chunks +573 lines, -14 lines 0 comments Download

Messages

Total messages: 28 (18 generated)
marja
adamk ptal
4 years, 2 months ago (2016-10-06 12:21:57 UTC) #8
marja
Ahem, the tests that fail on try bots didn't fail locally, also Stderr: Exception thrown ...
4 years, 2 months ago (2016-10-06 13:02:25 UTC) #11
marja
Alright, debugged the failure. It's independent of this CL, and also happens in master w/ ...
4 years, 2 months ago (2016-10-07 11:28:10 UTC) #16
adamk
https://codereview.chromium.org/2400613003/diff/90001/src/ast/scopes.cc File src/ast/scopes.cc (right): https://codereview.chromium.org/2400613003/diff/90001/src/ast/scopes.cc#newcode1010 src/ast/scopes.cc:1010: if (next != nullptr && next->raw_name() == name) { ...
4 years, 2 months ago (2016-10-07 18:35:55 UTC) #17
marja
thanks for having a look! https://codereview.chromium.org/2400613003/diff/90001/src/ast/scopes.cc File src/ast/scopes.cc (right): https://codereview.chromium.org/2400613003/diff/90001/src/ast/scopes.cc#newcode1010 src/ast/scopes.cc:1010: if (next != nullptr ...
4 years, 2 months ago (2016-10-07 19:00:28 UTC) #18
adamk
lgtm, thanks
4 years, 2 months ago (2016-10-07 19:01:00 UTC) #19
marja
thanks for review! https://codereview.chromium.org/2400613003/diff/90001/src/parsing/preparser.h File src/parsing/preparser.h (right): https://codereview.chromium.org/2400613003/diff/90001/src/parsing/preparser.h#newcode542 src/parsing/preparser.h:542: expression.AddIdentifier(identifier.string_, zone_); On 2016/10/07 19:00:27, marja ...
4 years, 2 months ago (2016-10-10 08:53:22 UTC) #21
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/2400613003/130001
4 years, 2 months ago (2016-10-10 08:55:02 UTC) #24
commit-bot: I haz the power
Committed patchset #8 (id:130001)
4 years, 2 months ago (2016-10-10 09:22:26 UTC) #26
commit-bot: I haz the power
4 years, 2 months ago (2016-10-10 09:22:44 UTC) #28
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/e474e5ffc83cddc0cc1ff7cc9d247f90cd827bfd
Cr-Commit-Position: refs/heads/master@{#40112}

Powered by Google App Engine
This is Rietveld 408576698