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

Issue 2159573002: Turn the unresolved-references list into a linked list using the VariableProxies themselves (Closed)

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

Description

Turn the unresolved-references list into a linked list using the VariableProxies themselves This is a first step towards reducing memory usage by scopes in the parser. Peak zone memory usage on octane-codeload goes down by ~10% BUG= Committed: https://crrev.com/c908f4b8dfa9ae0ebf103afe3fa99564970e1804 Cr-Commit-Position: refs/heads/master@{#37840}

Patch Set 1 : rebase #

Patch Set 2 : rebase #

Total comments: 2

Patch Set 3 : Addressed comment #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -20 lines) Patch
M src/ast/ast.h View 1 2 chunks +3 lines, -0 lines 0 comments Download
M src/ast/ast.cc View 1 2 chunks +4 lines, -2 lines 0 comments Download
M src/ast/scopes.h View 2 chunks +7 lines, -4 lines 0 comments Download
M src/ast/scopes.cc View 1 2 7 chunks +29 lines, -14 lines 1 comment Download

Messages

Total messages: 15 (8 generated)
Toon Verwaest
ptal
4 years, 5 months ago (2016-07-18 11:43:45 UTC) #3
Michael Starzinger
LGTM. https://codereview.chromium.org/2159573002/diff/40001/src/ast/scopes.cc File src/ast/scopes.cc (right): https://codereview.chromium.org/2159573002/diff/40001/src/ast/scopes.cc#newcode840 src/ast/scopes.cc:840: while (current != nullptr) { nit: Could we ...
4 years, 5 months ago (2016-07-18 13:03:24 UTC) #5
Toon Verwaest
That does make it much nicer, thanks :)
4 years, 5 months ago (2016-07-18 13:26:02 UTC) #6
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/2159573002/60001
4 years, 5 months ago (2016-07-18 13:26:19 UTC) #9
commit-bot: I haz the power
Committed patchset #3 (id:60001)
4 years, 5 months ago (2016-07-18 13:54:06 UTC) #11
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/c908f4b8dfa9ae0ebf103afe3fa99564970e1804 Cr-Commit-Position: refs/heads/master@{#37840}
4 years, 5 months ago (2016-07-18 13:56:33 UTC) #13
adamk
4 years, 5 months ago (2016-07-18 16:54:34 UTC) #15
Message was sent while issue was closed.
https://codereview.chromium.org/2159573002/diff/60001/src/ast/scopes.cc
File src/ast/scopes.cc (left):

https://codereview.chromium.org/2159573002/diff/60001/src/ast/scopes.cc#oldco...
src/ast/scopes.cc:112: unresolved_(16, zone),
I wonder if it was this 16 that was causing excess peak usage. Otherwise I'd
have expected that adding a word to every VariableProxy would be more expensive.

Powered by Google App Engine
This is Rietveld 408576698