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

Issue 2220293003: Remove two more special cases from Scope::MustAllocate(Variable*) (Closed)

Created:
4 years, 4 months ago by adamk
Modified:
4 years, 4 months ago
Reviewers:
neis
CC:
v8-reviews_googlegroups.com, Toon Verwaest
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Remove two more special cases from Scope::MustAllocate(Variable*) Block scopes don't need any special treatment here (it's unclear to me why they ever did). And the has_forced_context_allocation() check seems, according to our tests, to only have been necessary for proper handling of 'with' scopes. This patch instead uses the "is_used" bit to keep track of variables that are accessed from within a with. R=neis@chromium.org Committed: https://crrev.com/2028c0931ecb49ff2625710cade681681dd7ec1c Cr-Commit-Position: refs/heads/master@{#38505}

Patch Set 1 #

Patch Set 2 : Move ForceContextAllocation call down into same block #

Total comments: 2

Patch Set 3 : Add DCHECK #

Patch Set 4 : Rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -4 lines) Patch
M src/ast/scopes.cc View 1 2 3 3 chunks +8 lines, -4 lines 0 comments Download

Messages

Total messages: 22 (14 generated)
adamk
4 years, 4 months ago (2016-08-08 19:26:25 UTC) #1
neis
lgtm with comment https://codereview.chromium.org/2220293003/diff/20001/src/ast/scopes.cc File src/ast/scopes.cc (right): https://codereview.chromium.org/2220293003/diff/20001/src/ast/scopes.cc#newcode1502 src/ast/scopes.cc:1502: return !var->IsGlobalObjectProperty() && var->is_used(); Can you ...
4 years, 4 months ago (2016-08-09 07:27:15 UTC) #8
adamk
https://codereview.chromium.org/2220293003/diff/20001/src/ast/scopes.cc File src/ast/scopes.cc (right): https://codereview.chromium.org/2220293003/diff/20001/src/ast/scopes.cc#newcode1502 src/ast/scopes.cc:1502: return !var->IsGlobalObjectProperty() && var->is_used(); On 2016/08/09 07:27:15, neis wrote: ...
4 years, 4 months ago (2016-08-09 16:25:18 UTC) #10
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/2220293003/40001
4 years, 4 months ago (2016-08-09 16:25:33 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: v8_win64_rel_ng on master.tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_win64_rel_ng/builds/12180) v8_win64_rel_ng_triggered on master.tryserver.v8 (JOB_FAILED, ...
4 years, 4 months ago (2016-08-09 16:46:01 UTC) #15
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/2220293003/60001
4 years, 4 months ago (2016-08-09 17:07:41 UTC) #18
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 4 months ago (2016-08-09 17:28:55 UTC) #20
commit-bot: I haz the power
4 years, 4 months ago (2016-08-09 17:29:10 UTC) #22
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/2028c0931ecb49ff2625710cade681681dd7ec1c
Cr-Commit-Position: refs/heads/master@{#38505}

Powered by Google App Engine
This is Rietveld 408576698