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

Issue 1952093002: fix Set::AsArray to not leave undefined holes in output array (Closed)

Created:
4 years, 7 months ago by jwolfe
Modified:
4 years, 7 months ago
Reviewers:
caitp (gmail), adamk
CC:
v8-reviews_googlegroups.com, wingo
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

fix Set::AsArray to not leave undefined holes in output array Add comments explaining how to iterate over an OrderedHashTable. Use the correct strategy for iteration in Set::AsArray(). Add a DCHECK bounds check in OrderedHashTable::KeyAt(). BUG=v8:4946 LOG=y Committed: https://crrev.com/2d9bfe9ad5a3a742df57127014b085cbed7f8093 Cr-Commit-Position: refs/heads/master@{#36091}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -4 lines) Patch
M src/api.cc View 1 chunk +6 lines, -2 lines 0 comments Download
M src/objects.h View 4 chunks +9 lines, -2 lines 0 comments Download
M test/cctest/test-api.cc View 1 chunk +26 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (9 generated)
jwolfe
I think @caitp is right that this is also a problem with Map::AsArray(). Should I ...
4 years, 7 months ago (2016-05-05 01:25:30 UTC) #3
caitp (gmail)
+adamk
4 years, 7 months ago (2016-05-06 21:55:14 UTC) #5
adamk
lgtm. You'll have to add a "LOG=n" line to the CL description to keep the ...
4 years, 7 months ago (2016-05-06 22:01:27 UTC) #6
adamk
On 2016/05/06 22:01:27, adamk wrote: > lgtm. You'll have to add a "LOG=n" line to ...
4 years, 7 months ago (2016-05-06 22:01:55 UTC) #7
jwolfe
On 2016/05/06 22:01:55, adamk wrote: > Or maybe LOG=y, since this is an "API change" ...
4 years, 7 months ago (2016-05-06 22:37:20 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1952093002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1952093002/1
4 years, 7 months ago (2016-05-06 22:38:56 UTC) #11
commit-bot: I haz the power
The author jwolfe@igalia.com has not signed Google Contributor License Agreement. Please visit https://cla.developers.google.com to sign ...
4 years, 7 months ago (2016-05-06 22:38:59 UTC) #13
caitp (gmail)
On 2016/05/06 22:38:59, commit-bot: I haz the power wrote: > The author mailto:jwolfe@igalia.com has not ...
4 years, 7 months ago (2016-05-06 22:42:29 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1952093002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1952093002/1
4 years, 7 months ago (2016-05-07 00:00:38 UTC) #16
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 7 months ago (2016-05-07 00:32:44 UTC) #18
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/2d9bfe9ad5a3a742df57127014b085cbed7f8093 Cr-Commit-Position: refs/heads/master@{#36091}
4 years, 7 months ago (2016-05-07 00:33:32 UTC) #20
adamk
The obvious followup to this would be to fix Map::AsArray; do you have plans to ...
4 years, 7 months ago (2016-05-09 20:56:42 UTC) #21
jwolfe
On 2016/05/09 20:56:42, adamk wrote: > The obvious followup to this would be to fix ...
4 years, 7 months ago (2016-05-09 21:25:50 UTC) #22
adamk
4 years, 7 months ago (2016-05-09 22:17:56 UTC) #23
Message was sent while issue was closed.
On 2016/05/09 21:25:50, jwolfe wrote:
> On 2016/05/09 20:56:42, adamk wrote:
> > The obvious followup to this would be to fix Map::AsArray; do you have plans
> to
> > do so soon? If not I'll probably pick it up.
> 
> I have plenty of things to keep my busy at the moment. I could do it, but it
> sounds like you should take care of it instead.

Ok, sent https://codereview.chromium.org/1965593002/ out for review.

Powered by Google App Engine
This is Rietveld 408576698