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

Issue 2225423002: Make the AstValueFactory more efficient and less memory hungry (Closed)

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

Description

Make the AstValueFactory more efficient and less memory hungry This makes strings_ and values_ in AstValueFactory a linked list through the AstString and AstValue objects. Additionally the CL computes whether strings are convertible to array indexes directly using the AstString's hash + literal bytes just as Name does, rather than indirecting over name if available. BUG= Committed: https://crrev.com/cbe5d41d88f35dc8ee29d2e0f9ce739d9e132481 Cr-Commit-Position: refs/heads/master@{#38536}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Addressed comment #

Patch Set 3 : Remove HandleDereferenceMode #

Patch Set 4 : Remove HandleDereferenceMode from IsPropertyName #

Total comments: 2

Patch Set 5 : update comment #

Patch Set 6 : Undo union since windows #

Unified diffs Side-by-side diffs Delta from patch set Stats (+104 lines, -92 lines) Patch
M src/ast/ast.h View 1 2 3 4 3 chunks +6 lines, -15 lines 0 comments Download
M src/ast/ast.cc View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
M src/ast/ast-value-factory.h View 1 2 3 4 5 11 chunks +53 lines, -18 lines 0 comments Download
M src/ast/ast-value-factory.cc View 1 2 3 6 chunks +42 lines, -56 lines 0 comments Download

Messages

Total messages: 19 (10 generated)
Toon Verwaest
ptal
4 years, 4 months ago (2016-08-09 15:22:36 UTC) #2
marja
lgtm https://codereview.chromium.org/2225423002/diff/1/src/ast/ast-value-factory.cc File src/ast/ast-value-factory.cc (right): https://codereview.chromium.org/2225423002/diff/1/src/ast/ast-value-factory.cc#newcode110 src/ast/ast-value-factory.cc:110: if ((hash_ & Name::kIsNotArrayIndexMask) != 0) return false; ...
4 years, 4 months ago (2016-08-10 08:33:17 UTC) #3
rmcilroy
LGTM, thanks! https://codereview.chromium.org/2225423002/diff/60001/src/ast/ast.h File src/ast/ast.h (right): https://codereview.chromium.org/2225423002/diff/60001/src/ast/ast.h#newcode1197 src/ast/ast.h:1197: // kAllowed or kDisallowed, although may be ...
4 years, 4 months ago (2016-08-10 11:12:58 UTC) #5
Toon Verwaest
Done, thanks for the hint!
4 years, 4 months ago (2016-08-10 11:21:20 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/2225423002/80001
4 years, 4 months ago (2016-08-10 11:21:55 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: v8_win_compile_dbg on master.tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_win_compile_dbg/builds/22364)
4 years, 4 months ago (2016-08-10 11:26:46 UTC) #11
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/2225423002/100001
4 years, 4 months ago (2016-08-10 11:29:56 UTC) #14
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 4 months ago (2016-08-10 11:55:06 UTC) #17
commit-bot: I haz the power
4 years, 4 months ago (2016-08-10 11:55:25 UTC) #19
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/cbe5d41d88f35dc8ee29d2e0f9ce739d9e132481
Cr-Commit-Position: refs/heads/master@{#38536}

Powered by Google App Engine
This is Rietveld 408576698