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

Issue 2261693002: Dont track scope_inside_with_ explicitly (Closed)

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

Description

Dont track scope_inside_with_ explicitly This is only needed to set a flag on the SharedFunctionInfo generated for a function literal. Hence we only need it in 1 scope, and only read it once. Recursing in that case will be more efficient than always tracking it. BUG=v8:5209 Committed: https://crrev.com/d814ca8d291404baf5413de4d581f5da49a0d97a Cr-Commit-Position: refs/heads/master@{#38761}

Patch Set 1 #

Patch Set 2 : Don't duplicate InsideWithScope walk in HasTrivialOuterContext #

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

Messages

Total messages: 12 (3 generated)
Toon Verwaest
ptal
4 years, 4 months ago (2016-08-19 14:18:19 UTC) #2
neis
https://codereview.chromium.org/2261693002/diff/20001/src/ast/scopes.h File src/ast/scopes.h (right): https://codereview.chromium.org/2261693002/diff/20001/src/ast/scopes.h#newcode603 src/ast/scopes.h:603: This will return true for any with scope. Is ...
4 years, 4 months ago (2016-08-19 14:25:24 UTC) #3
neis
On 2016/08/19 14:25:24, neis wrote: > https://codereview.chromium.org/2261693002/diff/20001/src/ast/scopes.h > File src/ast/scopes.h (right): > > https://codereview.chromium.org/2261693002/diff/20001/src/ast/scopes.h#newcode603 > ...
4 years, 4 months ago (2016-08-19 14:33:33 UTC) #4
neis
https://codereview.chromium.org/2261693002/diff/20001/src/ast/scopes.cc File src/ast/scopes.cc (right): https://codereview.chromium.org/2261693002/diff/20001/src/ast/scopes.cc#newcode896 src/ast/scopes.cc:896: return !is_with_scope() && outer_scope_->HasTrivialContext(); Now the code doesn't quite ...
4 years, 4 months ago (2016-08-19 14:33:41 UTC) #5
Toon Verwaest
https://codereview.chromium.org/2261693002/diff/20001/src/ast/scopes.h File src/ast/scopes.h (right): https://codereview.chromium.org/2261693002/diff/20001/src/ast/scopes.h#newcode603 src/ast/scopes.h:603: On 2016/08/19 14:25:24, neis wrote: > This will return ...
4 years, 4 months ago (2016-08-19 15:58:23 UTC) #6
Toon Verwaest
https://codereview.chromium.org/2261693002/diff/20001/src/ast/scopes.cc File src/ast/scopes.cc (right): https://codereview.chromium.org/2261693002/diff/20001/src/ast/scopes.cc#newcode896 src/ast/scopes.cc:896: return !is_with_scope() && outer_scope_->HasTrivialContext(); On 2016/08/19 14:33:41, neis wrote: ...
4 years, 4 months ago (2016-08-19 18:00:35 UTC) #7
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/2261693002/20001
4 years, 4 months ago (2016-08-19 18:00:42 UTC) #9
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 4 months ago (2016-08-19 18:36:18 UTC) #10
commit-bot: I haz the power
4 years, 4 months ago (2016-08-19 18:37:09 UTC) #12
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/d814ca8d291404baf5413de4d581f5da49a0d97a
Cr-Commit-Position: refs/heads/master@{#38761}

Powered by Google App Engine
This is Rietveld 408576698