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

Issue 2224593002: Don't analyze scopes outside of the compiled scope (Closed)

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

Description

Don't analyze scopes outside of the compiled scope The outer scope of the scope we are compiling doesn't need analysis. Either we're compiling top-level code in which case there is no outer scope. Or we are compiling code at the top-level (eval, function, module), and there won't be anything to resolve in the outer scope. Lastly we could also be compiling with a deserialized scope. In that case the outer scope is already resolved. BUG=v8:5209 Committed: https://crrev.com/0c699a581917d6c499e0f55eff349060ff1a474b Cr-Commit-Position: refs/heads/master@{#38419}

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -10 lines) Patch
M src/ast/scopes.cc View 1 chunk +8 lines, -10 lines 1 comment Download

Messages

Total messages: 16 (10 generated)
Toon Verwaest
ptal. I think this should hold; and our tests don't disagree, wdyt?
4 years, 4 months ago (2016-08-05 19:06:57 UTC) #4
adamk
I agree that this is correct for variable analysis, but I haven't yet convinced myself ...
4 years, 4 months ago (2016-08-05 20:13:44 UTC) #8
bradnelson
lgtm https://codereview.chromium.org/2224593002/diff/1/src/ast/scopes.cc File src/ast/scopes.cc (right): https://codereview.chromium.org/2224593002/diff/1/src/ast/scopes.cc#newcode383 src/ast/scopes.cc:383: // 3) a function/eval in a scope that ...
4 years, 4 months ago (2016-08-07 03:05:24 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/2224593002/1
4 years, 4 months ago (2016-08-08 08:27:16 UTC) #12
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 4 months ago (2016-08-08 08:47:52 UTC) #14
commit-bot: I haz the power
4 years, 4 months ago (2016-08-08 08:48:48 UTC) #16
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/0c699a581917d6c499e0f55eff349060ff1a474b
Cr-Commit-Position: refs/heads/master@{#38419}

Powered by Google App Engine
This is Rietveld 408576698