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

Issue 2031123003: Avoid creating weak cells for literal arrays that are empty of literals. (Closed)

Created:
4 years, 6 months ago by mvstanton
Modified:
4 years, 6 months ago
Reviewers:
Michael Starzinger
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

Avoid creating weak cells for literal arrays that are empty of literals. It may be that we have a feedback vector, but no literals. In this case we can store into the OptimizedCodeMap directly instead of using a WeakCell, because all data in the feedback vector is already held weakly. The use of a WeakCell in the OptimizedCodeMap is only required when there are literals which may hold maps strongly. This is to address a performance regression caused by the creation of a large number of WeakCells. BUG=chromium:615831 Committed: https://crrev.com/3cfcc7e111a32f231a483b8feda19ef2d8c45253 Cr-Commit-Position: refs/heads/master@{#36786}

Patch Set 1 #

Patch Set 2 : Now a version without the Cell. #

Patch Set 3 : Ports. #

Total comments: 4

Patch Set 4 : Addressed comments. #

Patch Set 5 : REBASE. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+152 lines, -24 lines) Patch
M src/arm/builtins-arm.cc View 1 2 3 4 1 chunk +17 lines, -1 line 0 comments Download
M src/arm64/builtins-arm64.cc View 1 2 3 4 1 chunk +19 lines, -1 line 0 comments Download
M src/ia32/builtins-ia32.cc View 1 2 3 4 1 chunk +18 lines, -1 line 0 comments Download
M src/mips/builtins-mips.cc View 1 2 3 4 1 chunk +16 lines, -1 line 0 comments Download
M src/mips64/builtins-mips64.cc View 1 2 3 4 1 chunk +15 lines, -1 line 0 comments Download
M src/objects.cc View 1 2 3 4 4 chunks +36 lines, -13 lines 0 comments Download
M src/type-feedback-vector.cc View 1 2 3 4 1 chunk +13 lines, -5 lines 0 comments Download
M src/x64/builtins-x64.cc View 1 2 3 4 1 chunk +18 lines, -1 line 0 comments Download

Messages

Total messages: 13 (7 generated)
mvstanton
Hi Michael, Here are the changes we discussed this morning, thanks for the look! --Mike
4 years, 6 months ago (2016-06-06 20:50:02 UTC) #4
Michael Starzinger
LGTM. Only looked at the ARM ported, assuming the others are more or less the ...
4 years, 6 months ago (2016-06-07 09:41:37 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2031123003/80001
4 years, 6 months ago (2016-06-07 11:35:18 UTC) #8
mvstanton
Thanks, addressed! https://codereview.chromium.org/2031123003/diff/40001/src/type-feedback-vector.cc File src/type-feedback-vector.cc (right): https://codereview.chromium.org/2031123003/diff/40001/src/type-feedback-vector.cc#newcode284 src/type-feedback-vector.cc:284: TypeFeedbackVector* vector = NULL; On 2016/06/07 09:41:37, ...
4 years, 6 months ago (2016-06-07 11:35:34 UTC) #9
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 6 months ago (2016-06-07 12:01:59 UTC) #11
commit-bot: I haz the power
4 years, 6 months ago (2016-06-07 12:04:07 UTC) #13
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/3cfcc7e111a32f231a483b8feda19ef2d8c45253
Cr-Commit-Position: refs/heads/master@{#36786}

Powered by Google App Engine
This is Rietveld 408576698