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

Issue 569573002: Remove redundant ids from AST (Closed)

Created:
6 years, 3 months ago by oetuaho-nv
Modified:
6 years, 3 months ago
Reviewers:
Sven Panne, Yang, marja
CC:
v8-dev
Base URL:
git://github.com/v8/v8.git@master
Project:
v8
Visibility:
Public.

Description

Remove redundant ids from AST This conserves memory used by AST, which can get very large. Peak Zone allocations measured from a Unity asm.js demo were reduced by 3.5% (52 MB out of 1500 MB) on x64 build with this patch. The patch did not have a discernible effect on Octane performance when tested on ARM A15 -based Tegra K1 or on Intel Core i7 960. BUG=v8:3557 LOG=Y

Patch Set 1 #

Total comments: 2

Patch Set 2 : Cleaner structure for reserving ids in AST #

Unified diffs Side-by-side diffs Delta from patch set Stats (+230 lines, -111 lines) Patch
M src/ast.h View 1 46 chunks +216 lines, -105 lines 0 comments Download
M src/ast.cc View 1 2 chunks +14 lines, -6 lines 0 comments Download

Messages

Total messages: 9 (2 generated)
oetuaho-nv
Please review this memory usage optimization.
6 years, 3 months ago (2014-09-12 12:26:01 UTC) #2
marja
https://codereview.chromium.org/569573002/diff/1/src/ast.h File src/ast.h (right): https://codereview.chromium.org/569573002/diff/1/src/ast.h#newcode455 src/ast.h:455: BailoutId DeclsId() const { return BailoutId(EntryId().ToInt() + 2); } ...
6 years, 3 months ago (2014-09-12 12:51:55 UTC) #3
oetuaho-nv
https://codereview.chromium.org/569573002/diff/1/src/ast.h File src/ast.h (right): https://codereview.chromium.org/569573002/diff/1/src/ast.h#newcode455 src/ast.h:455: BailoutId DeclsId() const { return BailoutId(EntryId().ToInt() + 2); } ...
6 years, 3 months ago (2014-09-12 13:26:30 UTC) #4
oetuaho-nv
The new patch set makes things considerably less fragile. I added some macros to abstract ...
6 years, 3 months ago (2014-09-12 15:55:39 UTC) #5
Sven Panne
NOT LGTM, this is totally obfuscating things, we'll discuss how to do this later. The ...
6 years, 3 months ago (2014-09-15 06:09:14 UTC) #7
Sven Panne
After some internal discussion, I think we should not pursue this further: The ID handling ...
6 years, 3 months ago (2014-09-15 11:35:15 UTC) #8
oetuaho-nv
6 years, 3 months ago (2014-09-15 12:37:46 UTC) #9
I agree that the patch complicates things, perhaps too much considering the
gains. Some improvement to the memory bloat is definitely needed, but if you
already have a better plan, it's good. Hopefully the restructuring will result
in greater memory usage reduction. I'll close the issue.

Powered by Google App Engine
This is Rietveld 408576698