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

Issue 2457393003: Thread decls-list through Declaration (Closed)

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

Description

Thread decls-list through Declaration using a ThreadedList This reduces per-scope overhead from minimally 6 words to 2 words, with one additional pointer per entry, rather than an average of 2 per entry for larger-than-4 element lists. For temp zone parsed functions it additionally makes the declaration-list actually freeable. This introduces ThreadedList to implement the details of dealing with such a list. BUG=v8:5209 Committed: https://crrev.com/5a18685e08f2d2efc8c9ad44afc5adec8e42a4c8 Cr-Commit-Position: refs/heads/master@{#40703}

Patch Set 1 #

Patch Set 2 : Explicitly clear at end #

Patch Set 3 : braces #

Patch Set 4 : Rename At/Length and simplify operator!= #

Patch Set 5 : Move to utils #

Patch Set 6 : Fix reset, add clear #

Patch Set 7 : rename #

Patch Set 8 : rename #

Patch Set 9 : rename #

Total comments: 4

Patch Set 10 : Addressed comments #

Patch Set 11 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+224 lines, -166 lines) Patch
M src/asmjs/asm-typer.cc View 3 chunks +4 lines, -9 lines 0 comments Download
M src/asmjs/asm-wasm-builder.cc View 1 chunk +2 lines, -3 lines 0 comments Download
M src/ast/ast.h View 1 2 3 4 5 6 7 8 9 2 chunks +9 lines, -6 lines 0 comments Download
M src/ast/ast-expression-rewriter.h View 1 chunk +1 line, -1 line 0 comments Download
M src/ast/ast-expression-rewriter.cc View 1 chunk +4 lines, -5 lines 0 comments Download
M src/ast/ast-numbering.cc View 2 chunks +3 lines, -7 lines 0 comments Download
M src/ast/ast-traversal-visitor.h View 2 chunks +3 lines, -4 lines 0 comments Download
M src/ast/prettyprinter.h View 1 chunk +1 line, -1 line 0 comments Download
M src/ast/prettyprinter.cc View 1 chunk +3 lines, -6 lines 0 comments Download
M src/ast/scopes.h View 1 2 3 4 5 6 3 chunks +3 lines, -3 lines 0 comments Download
M src/ast/scopes.cc View 1 2 3 4 5 6 7 8 9 chunks +6 lines, -14 lines 0 comments Download
M src/compiler/ast-graph-builder.h View 1 chunk +1 line, -1 line 0 comments Download
M src/compiler/ast-graph-builder.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -2 lines 0 comments Download
M src/crankshaft/hydrogen.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M src/crankshaft/hydrogen.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +5 lines, -7 lines 0 comments Download
M src/crankshaft/typing.h View 1 chunk +1 line, -1 line 0 comments Download
M src/crankshaft/typing.cc View 1 2 1 chunk +2 lines, -3 lines 0 comments Download
M src/full-codegen/full-codegen.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M src/full-codegen/full-codegen.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -3 lines 0 comments Download
M src/interpreter/bytecode-generator.h View 1 chunk +1 line, -1 line 0 comments Download
M src/interpreter/bytecode-generator.cc View 1 chunk +3 lines, -4 lines 0 comments Download
M src/parsing/parser.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -3 lines 0 comments Download
M src/utils.h View 1 2 3 4 5 6 7 8 9 1 chunk +71 lines, -0 lines 0 comments Download
M test/cctest/asmjs/test-asm-typer.cc View 1 2 3 1 chunk +6 lines, -5 lines 0 comments Download
M test/cctest/test-parsing.cc View 1 2 3 4 5 6 7 8 9 10 5 chunks +90 lines, -75 lines 0 comments Download

Messages

Total messages: 31 (19 generated)
Toon Verwaest
ptal; I'll add more owners if you think this goes in the right direction
4 years, 1 month ago (2016-10-31 14:23:02 UTC) #3
Toon Verwaest
ptal adamk: ptal ast/parsing ahaas: ptal asmjs
4 years, 1 month ago (2016-10-31 15:48:20 UTC) #13
adamk
Haven't looked at the code changes yet, but one thing that would help me evaluate ...
4 years, 1 month ago (2016-10-31 18:33:08 UTC) #16
Toon Verwaest
Added more info.
4 years, 1 month ago (2016-10-31 19:34:47 UTC) #18
adamk
Overall seems like a reasonable win, a few questions below but happy to lgtm for ...
4 years, 1 month ago (2016-10-31 20:34:23 UTC) #19
ahaas
On 2016/10/31 at 20:34:23, adamk wrote: > Overall seems like a reasonable win, a few ...
4 years, 1 month ago (2016-11-02 07:59:57 UTC) #20
ahaas
https://codereview.chromium.org/2457393003/diff/160001/src/asmjs/asm-typer.cc File src/asmjs/asm-typer.cc (right): https://codereview.chromium.org/2457393003/diff/160001/src/asmjs/asm-typer.cc#newcode650 src/asmjs/asm-typer.cc:650: Declaration::List* decls = scope->declarations(); Nit: Why do you store ...
4 years, 1 month ago (2016-11-02 08:02:18 UTC) #21
Michael Starzinger
LGTM on the back-ends.
4 years, 1 month ago (2016-11-02 10:47:36 UTC) #22
Toon Verwaest
Addressed comments. https://codereview.chromium.org/2457393003/diff/160001/src/asmjs/asm-typer.cc File src/asmjs/asm-typer.cc (right): https://codereview.chromium.org/2457393003/diff/160001/src/asmjs/asm-typer.cc#newcode650 src/asmjs/asm-typer.cc:650: Declaration::List* decls = scope->declarations(); On 2016/11/02 08:02:18, ...
4 years, 1 month ago (2016-11-02 13:39:41 UTC) #24
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/2457393003/220001
4 years, 1 month ago (2016-11-02 13:41:43 UTC) #27
commit-bot: I haz the power
Committed patchset #11 (id:220001)
4 years, 1 month ago (2016-11-02 14:08:39 UTC) #29
commit-bot: I haz the power
4 years, 1 month ago (2016-11-17 22:19:33 UTC) #31
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/5a18685e08f2d2efc8c9ad44afc5adec8e42a4c8
Cr-Commit-Position: refs/heads/master@{#40703}

Powered by Google App Engine
This is Rietveld 408576698