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

Issue 2521513004: Preparse inner functions: fix maybe_assigned (Closed)

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

Description

Preparse inner functions: fix maybe_assigned ... but be less pessimistic about context allocation (see below). We might have just (pessimistically) context-allocated a variable based on references coming from an inner function, but after that we still need to set maybe_assigned (pessimistically). This makes test-parsing/InnerAssignment pass with FLAG_lazy_inner_functions. This was undetected until now because we didn't have lazy parsing enabled for small scripts. Less pessimistic approach: now that inner functions laziness decisions are stable (if we have once compiled a piece of code with lazy inner functions, we never compile the same code with eager inner functions), we don't need to be as pessimistic with context allocation as before. BUG=v8:5501 Committed: https://crrev.com/d2e90c5d8100d4d7933c942111946645f3d61941 Cr-Commit-Position: refs/heads/master@{#41183}

Patch Set 1 #

Patch Set 2 : less pessimistic #

Total comments: 1

Patch Set 3 : even better #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -25 lines) Patch
M src/ast/scopes.cc View 1 2 1 chunk +0 lines, -23 lines 0 comments Download
M src/parsing/preparser.cc View 1 2 1 chunk +5 lines, -2 lines 0 comments Download

Messages

Total messages: 21 (15 generated)
marja
ptal
4 years, 1 month ago (2016-11-22 12:50:31 UTC) #8
Toon Verwaest
https://codereview.chromium.org/2521513004/diff/20001/src/ast/scopes.cc File src/ast/scopes.cc (right): https://codereview.chromium.org/2521513004/diff/20001/src/ast/scopes.cc#newcode1624 src/ast/scopes.cc:1624: var->set_maybe_assigned(); I don't think we need to set is_used ...
4 years, 1 month ago (2016-11-22 13:11:42 UTC) #11
Toon Verwaest
lgtm
4 years, 1 month ago (2016-11-22 13:49:23 UTC) #14
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/2521513004/40001
4 years, 1 month ago (2016-11-22 13:49:57 UTC) #16
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 1 month ago (2016-11-22 14:18:05 UTC) #19
commit-bot: I haz the power
4 years, 1 month ago (2016-11-22 14:18:27 UTC) #21
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/d2e90c5d8100d4d7933c942111946645f3d61941
Cr-Commit-Position: refs/heads/master@{#41183}

Powered by Google App Engine
This is Rietveld 408576698