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

Issue 2475433002: Turn Scope::locals_ into a ThreadedList (Closed)

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

Description

Turn Scope::locals_ into a ThreadedList This turns the ZoneList with minimum 6 words overhead into a linked list through variables, using 2 words for the empty list. Additionally the average number of pointers per entry goes down to the optimal 1 per variable that's in a list. This does introduce 1 pointer unnecessary overhead for dynamic variables. If that becomes a problem we could distinguish between variables in lists and variables not in lists. We can distinguish them at construction-time. BUG=v8:5209 Committed: https://crrev.com/4fa2ebcbe0d8207cbea45dae6610725c24052915 Cr-Commit-Position: refs/heads/master@{#40714}

Patch Set 1 #

Patch Set 2 : Fix abort preparsing args #

Patch Set 3 : Better fix #

Patch Set 4 : Fix test again #

Total comments: 4

Patch Set 5 : Addressed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+62 lines, -45 lines) Patch
M src/ast/scopeinfo.cc View 3 chunks +2 lines, -5 lines 0 comments Download
M src/ast/scopes.h View 5 chunks +5 lines, -18 lines 0 comments Download
M src/ast/scopes.cc View 1 2 3 4 10 chunks +33 lines, -14 lines 0 comments Download
M src/ast/variables.h View 1 3 chunks +8 lines, -0 lines 0 comments Download
M src/ast/variables.cc View 1 chunk +1 line, -0 lines 0 comments Download
M src/crankshaft/typing.cc View 1 chunk +1 line, -3 lines 0 comments Download
M src/debug/liveedit.cc View 1 chunk +1 line, -3 lines 0 comments Download
M src/utils.h View 1 2 3 4 1 chunk +9 lines, -0 lines 0 comments Download
M test/mjsunit/regress/regress-abort-preparsing-params.js View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 15 (7 generated)
Toon Verwaest
ptal
4 years, 1 month ago (2016-11-02 15:55:39 UTC) #3
adamk
lgtm % nits/comments https://codereview.chromium.org/2475433002/diff/60001/src/ast/scopes.cc File src/ast/scopes.cc (right): https://codereview.chromium.org/2475433002/diff/60001/src/ast/scopes.cc#newcode1273 src/ast/scopes.cc:1273: *var->next() = nullptr; Please add TODOs ...
4 years, 1 month ago (2016-11-02 18:54:05 UTC) #4
Toon Verwaest
https://codereview.chromium.org/2475433002/diff/60001/src/ast/scopes.cc File src/ast/scopes.cc (right): https://codereview.chromium.org/2475433002/diff/60001/src/ast/scopes.cc#newcode1273 src/ast/scopes.cc:1273: *var->next() = nullptr; On 2016/11/02 18:54:05, adamk wrote: > ...
4 years, 1 month ago (2016-11-02 18:59:58 UTC) #5
Yang
https://codereview.chromium.org/2475433002/diff/60001/src/debug/liveedit.cc File src/debug/liveedit.cc (right): https://codereview.chromium.org/2475433002/diff/60001/src/debug/liveedit.cc#newcode1903 src/debug/liveedit.cc:1903: for (Variable* var : *current_scope->locals()) { lgtm.
4 years, 1 month ago (2016-11-03 08:13:19 UTC) #7
Toon Verwaest
Addressed comments.
4 years, 1 month ago (2016-11-03 09:39:29 UTC) #8
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/2475433002/80001
4 years, 1 month ago (2016-11-03 09:39:35 UTC) #11
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 1 month ago (2016-11-03 10:06:33 UTC) #13
commit-bot: I haz the power
4 years, 1 month ago (2016-11-17 22:20:02 UTC) #15
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/4fa2ebcbe0d8207cbea45dae6610725c24052915
Cr-Commit-Position: refs/heads/master@{#40714}

Powered by Google App Engine
This is Rietveld 408576698