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

Issue 2210243002: Put Scopes into temporary Zone (second try) (Closed)

Created:
4 years, 4 months ago by marja
Modified:
4 years, 4 months ago
Reviewers:
titzer, adamk
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

Put Scopes into temporary Zone (second try) When parsing a eagerly-parsed-but-lazily-compiled function, we used to put some of its AST nodes into a discardable Zone. This CL puts the function Scope, its inner Scopes and the related AST nodes (Declarations, VariableProxys) into the temporary Zone too. This reduces peak memory usage and enables future work to keep the temporary Zone around for later compilation. BUG= Committed: https://crrev.com/bf3081c83732534af1bd61541508891a0667a7bd Cr-Commit-Position: refs/heads/master@{#38348}

Patch Set 1 #

Patch Set 2 : arity fix #

Patch Set 3 : streamlining variable migration #

Patch Set 4 : rebased #

Patch Set 5 : fixing the rebase #

Patch Set 6 : force context allocation fix #

Total comments: 2

Patch Set 7 : adding comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+361 lines, -214 lines) Patch
M src/ast/ast.h View 1 2 3 4 16 chunks +99 lines, -118 lines 0 comments Download
M src/ast/ast.cc View 1 chunk +12 lines, -0 lines 0 comments Download
M src/ast/scopes.h View 1 2 3 4 chunks +22 lines, -3 lines 0 comments Download
M src/ast/scopes.cc View 1 2 3 4 5 7 chunks +69 lines, -5 lines 0 comments Download
M src/objects.cc View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M src/parsing/parser.h View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M src/parsing/parser.cc View 1 2 3 5 chunks +115 lines, -84 lines 0 comments Download
M src/parsing/parser-base.h View 3 chunks +9 lines, -3 lines 0 comments Download
A test/mjsunit/eagerly-parsed-lazily-compiled-functions.js View 1 1 chunk +33 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (15 generated)
marja
ptal Here's the second try for the Scopes-Zones CL. The bug was that function.length was ...
4 years, 4 months ago (2016-08-04 12:09:09 UTC) #8
marja
Forgot to say; the diffs should contain the fixes so hopefully they're easy to review.
4 years, 4 months ago (2016-08-04 12:22:32 UTC) #13
adamk
I'd be interested in seeing that the null scope approach would look like. And I ...
4 years, 4 months ago (2016-08-04 16:49:16 UTC) #16
marja
Summarizing discussion w/ adamk@: - The "null scope" thing I suggested doesn't fly; we don't ...
4 years, 4 months ago (2016-08-04 18:48:51 UTC) #17
marja
s/didn't think/couldn't think/
4 years, 4 months ago (2016-08-04 18:49:05 UTC) #18
adamk
lgtm and thanks for summarizing our discussion https://codereview.chromium.org/2210243002/diff/100001/src/ast/scopes.cc File src/ast/scopes.cc (right): https://codereview.chromium.org/2210243002/diff/100001/src/ast/scopes.cc#newcode994 src/ast/scopes.cc:994: migrate_to->force_context_allocation_ = ...
4 years, 4 months ago (2016-08-04 18:49:22 UTC) #19
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/2210243002/120001
4 years, 4 months ago (2016-08-04 18:53:14 UTC) #21
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 4 months ago (2016-08-04 19:15:23 UTC) #22
commit-bot: I haz the power
4 years, 4 months ago (2016-08-04 19:16:04 UTC) #24
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/bf3081c83732534af1bd61541508891a0667a7bd
Cr-Commit-Position: refs/heads/master@{#38348}

Powered by Google App Engine
This is Rietveld 408576698