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

Issue 2485423002: Adding smi cache (Closed)

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

Description

[Parser] Added SMI cache With the very same SMIs making up a big chunk of the parser zone (especially for asm.js) it makes sense to cache the AstValues for them. This is not ideal yet, but already saves hundreds (sic!) MBs of memory for Unity games. Committed: https://crrev.com/da3e22252585a72a3c17cff93378d67fe1b9b497 Cr-Commit-Position: refs/heads/master@{#40866}

Patch Set 1 #

Patch Set 2 : Added smi cache to save memory #

Patch Set 3 : Added smi cache to save memory #

Patch Set 4 : Changed signature to uint #

Total comments: 4

Patch Set 5 : Using a number literal instead, will end up as a smi anyway, but not hitting the cache #

Patch Set 6 : Changed signature to uint #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -11 lines) Patch
M src/ast/ast.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/ast/ast-value-factory.h View 1 2 3 4 5 5 chunks +9 lines, -1 line 0 comments Download
M src/ast/ast-value-factory.cc View 1 2 3 4 5 1 chunk +5 lines, -3 lines 0 comments Download
M src/parsing/parser.cc View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download
M src/parsing/scanner.h View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M src/parsing/scanner.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 23 (16 generated)
heimbuef
PTAL
4 years, 1 month ago (2016-11-09 14:15:49 UTC) #3
vogelheim
lgtm Generally looks good, but two style nitpicks. Also, I'm confused about the thing in ...
4 years, 1 month ago (2016-11-09 15:04:10 UTC) #13
vogelheim
https://codereview.chromium.org/2485423002/diff/60001/src/parsing/parser.cc File src/parsing/parser.cc (right): https://codereview.chromium.org/2485423002/diff/60001/src/parsing/parser.cc#newcode3925 src/parsing/parser.cc:3925: DCHECK(Smi::IsValid(static_cast<intptr_t>(hash))); On 2016/11/09 15:04:10, vogelheim wrote: > I don't ...
4 years, 1 month ago (2016-11-09 15:05:18 UTC) #14
Toon Verwaest
lgtm
4 years, 1 month ago (2016-11-09 15:28:36 UTC) #17
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/2485423002/100001
4 years, 1 month ago (2016-11-09 15:44:38 UTC) #20
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 1 month ago (2016-11-09 16:12:02 UTC) #21
commit-bot: I haz the power
4 years, 1 month ago (2016-11-17 22:27:49 UTC) #23
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/da3e22252585a72a3c17cff93378d67fe1b9b497
Cr-Commit-Position: refs/heads/master@{#40866}

Powered by Google App Engine
This is Rietveld 408576698