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

Issue 2041963003: [elements] Precisely estimate elements size for large-object limits (Closed)

Created:
4 years, 6 months ago by Camillo Bruni
Modified:
4 years, 1 month ago
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

[elements] Precisely estimate elements size as last resort In case of an allocation failure in for-in over holey elements, use precise number of elements to allocate a smaller buffer for the collected indices. Drive-by-fix: make is_the_hole accept the isolate for faster checks. BUG=chromium:609761 Committed: https://crrev.com/14c6a651d1c04c90379299e577dd8e187967f5a9 Cr-Commit-Position: refs/heads/master@{#41010}

Patch Set 1 #

Total comments: 3

Patch Set 2 : addressing nits #

Patch Set 3 : merging in master #

Patch Set 4 : fixing compilation issues #

Patch Set 5 : merging with master #

Patch Set 6 : only use precise elements estimation in case of failing allocation #

Patch Set 7 : add missing method on string wrapper #

Unified diffs Side-by-side diffs Delta from patch set Stats (+187 lines, -78 lines) Patch
M src/compiler/js-create-lowering.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M src/compiler/js-global-object-specialization.cc View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M src/elements.h View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M src/elements.cc View 1 2 3 4 5 6 35 chunks +151 lines, -66 lines 0 comments Download
M src/factory.h View 1 2 3 4 5 1 chunk +8 lines, -0 lines 0 comments Download
M src/factory.cc View 1 2 3 4 5 1 chunk +9 lines, -0 lines 0 comments Download
M src/lookup.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M src/objects.h View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M src/objects.cc View 1 2 3 4 2 chunks +4 lines, -2 lines 0 comments Download
M src/objects-inl.h View 1 2 3 4 2 chunks +5 lines, -3 lines 0 comments Download
M src/runtime/runtime-scopes.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 30 (17 generated)
Camillo Bruni
mlippautz@ PTAL at the large object space limit check in elements.cc:990+ ishell@ PTAL
4 years, 6 months ago (2016-06-07 13:45:31 UTC) #3
Igor Sheludko
https://codereview.chromium.org/2041963003/diff/1/src/elements.cc File src/elements.cc (right): https://codereview.chromium.org/2041963003/diff/1/src/elements.cc#newcode993 src/elements.cc:993: if (kind() == FAST_HOLEY_ELEMENTS) { FAST_HOLEY_DOUBLE_ELEMENTS ? https://codereview.chromium.org/2041963003/diff/1/src/elements.cc#newcode1011 src/elements.cc:1011: ...
4 years, 6 months ago (2016-06-07 14:50:01 UTC) #4
Michael Lippautz
Looking good, just waiting for the performance investigation https://codereview.chromium.org/2041963003/diff/1/src/elements.cc File src/elements.cc (right): https://codereview.chromium.org/2041963003/diff/1/src/elements.cc#newcode1015 src/elements.cc:1015: // ...
4 years, 6 months ago (2016-06-07 17:28:27 UTC) #5
Igor Sheludko
lgtm
4 years, 5 months ago (2016-07-14 15:12:53 UTC) #7
Yang
On 2016/07/14 15:12:53, Igor Sheludko wrote: > lgtm Can we get this up to shape ...
4 years, 4 months ago (2016-07-28 10:56:40 UTC) #8
Michael Lippautz
On 2016/07/28 10:56:40, Yang wrote: > On 2016/07/14 15:12:53, Igor Sheludko wrote: > > lgtm ...
4 years, 4 months ago (2016-08-02 19:23:36 UTC) #9
Michael Lippautz
still lgtm only looked at factory and object allocation
4 years, 1 month ago (2016-11-15 16:14:12 UTC) #19
Camillo Bruni
bmeurer@ PTAL src/compiler/.*
4 years, 1 month ago (2016-11-15 17:17:19 UTC) #21
Benedikt Meurer
LGTM on compiler.
4 years, 1 month ago (2016-11-15 17:20:36 UTC) #22
Jakob Kummerow
The diff from patch set 5 -> 7 LGTM.
4 years, 1 month ago (2016-11-15 18:24:37 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/2041963003/120001
4 years, 1 month ago (2016-11-15 18:27:39 UTC) #27
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 1 month ago (2016-11-15 18:30:40 UTC) #28
commit-bot: I haz the power
4 years, 1 month ago (2016-11-17 22:35:02 UTC) #30
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/14c6a651d1c04c90379299e577dd8e187967f5a9
Cr-Commit-Position: refs/heads/master@{#41010}

Powered by Google App Engine
This is Rietveld 408576698