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

Issue 2491373004: [ast] Simplify FetchFreeVariables. (Closed)

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

Description

[ast] Simplify FetchFreeVariables. This CL removes the ParseInfo argument from FetchFreeVariables, since it seems to have become unnecessary. R=verwaest@chromium.org BUG= Committed: https://crrev.com/7743e4993ef735e44f6ab9a2c01408ba4a1ddb28 Cr-Commit-Position: refs/heads/master@{#40933}

Patch Set 1 #

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

Messages

Total messages: 11 (2 generated)
neis
4 years, 1 month ago (2016-11-11 11:21:25 UTC) #1
Toon Verwaest
lgtm
4 years, 1 month ago (2016-11-11 14:39:05 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/2491373004/1
4 years, 1 month ago (2016-11-11 14:40:09 UTC) #4
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 1 month ago (2016-11-11 15:09:25 UTC) #5
Toon Verwaest
Thinking about this a little more I'm not convinced this is correct. FetchFreeVariables destroys unresolved_ ...
4 years, 1 month ago (2016-11-11 22:14:49 UTC) #6
neis
A revert of this CL (patchset #1 id:1) has been created in https://codereview.chromium.org/2495293002/ by neis@chromium.org. ...
4 years, 1 month ago (2016-11-14 12:55:36 UTC) #7
neis
On 2016/11/11 22:14:49, Toon Verwaest wrote: > Thinking about this a little more I'm not ...
4 years, 1 month ago (2016-11-14 15:27:31 UTC) #8
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/7743e4993ef735e44f6ab9a2c01408ba4a1ddb28 Cr-Commit-Position: refs/heads/master@{#40933}
4 years, 1 month ago (2016-11-17 22:31:04 UTC) #10
adamk
4 years ago (2016-11-28 20:07:43 UTC) #11
Message was sent while issue was closed.
On 2016/11/14 15:27:31, neis wrote:
> On 2016/11/11 22:14:49, Toon Verwaest wrote:
> > Thinking about this a little more I'm not convinced this is correct.
> > FetchFreeVariables destroys unresolved_ and hence subsequent allocation
yields
> > different results than if we hadn't collected non locals. Odd that no test
> > failed though; but we should double-check that this doesn't break the
> debugger.
> 
> Ok, I reverted as advised.  Can you come up with a test that would fail with
> this CL?  Or tell me how to write one?
> 
> Thanks.

I wanted to follow up on this. Toon, you mention "subsequent allocation", but in
my reading of the code it didn't look like we ever actually do any allocation in
the debugger case (all we're trying to do with FetchFreeVariables is get a list
of names). Are there any known test cases that fail with this patch? If we can't
think of any, I feel like the code would make more sense with this re-landed...

Powered by Google App Engine
This is Rietveld 408576698