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

Issue 1767113004: [esnext] handle elements in FastObjectValuesOrEntries() (Closed)

Created:
4 years, 9 months ago by caitp (gmail)
Modified:
4 years, 8 months 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

[esnext] handle elements in FastObjectValuesOrEntries() Add support for optimizing objects with elements, which do not invoke JS and cannot change the shape of the Object. BUG=v8:4663 LOG=N Committed: https://crrev.com/f5b85cb74c149c008ed1edd56870fd4218350a4d Cr-Commit-Position: refs/heads/master@{#35081}

Patch Set 1 #

Patch Set 2 : Handle element properties #

Total comments: 10

Patch Set 3 : Add `CollectValuesOrEntries()` to ElementsAccessor #

Total comments: 2

Patch Set 4 : Unify FastElementsAccessor element handling #

Patch Set 5 : fix compile #

Patch Set 6 : fix linkage too #

Total comments: 2

Patch Set 7 : re #

Patch Set 8 : Make ElementsAccessor::GetCapacity() public, and use it #

Unified diffs Side-by-side diffs Delta from patch set Stats (+264 lines, -14 lines) Patch
M src/elements.h View 1 2 3 4 5 6 7 3 chunks +8 lines, -2 lines 0 comments Download
M src/elements.cc View 1 2 3 4 5 6 4 chunks +90 lines, -0 lines 0 comments Download
M src/objects.cc View 1 2 3 4 5 6 7 2 chunks +13 lines, -12 lines 0 comments Download
M src/objects-inl.h View 1 2 1 chunk +24 lines, -0 lines 0 comments Download
M test/mjsunit/harmony/object-entries.js View 1 1 chunk +66 lines, -0 lines 0 comments Download
M test/mjsunit/harmony/object-values.js View 1 1 chunk +63 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (6 generated)
caitp (gmail)
PTAL --- the ForEachElements thing didn't work out, so it's hard to share this code, ...
4 years, 9 months ago (2016-03-14 19:37:54 UTC) #1
Camillo Bruni
https://codereview.chromium.org/1767113004/diff/20001/src/objects.cc File src/objects.cc (right): https://codereview.chromium.org/1767113004/diff/20001/src/objects.cc#newcode8750 src/objects.cc:8750: isolate->factory()->NewUninitializedFixedArray(2); That's unsafe here, value is still a raw ...
4 years, 9 months ago (2016-03-15 13:36:14 UTC) #4
caitp (gmail)
https://codereview.chromium.org/1767113004/diff/20001/src/objects.cc File src/objects.cc (right): https://codereview.chromium.org/1767113004/diff/20001/src/objects.cc#newcode8794 src/objects.cc:8794: ElementsKind kind = object->GetElementsKind(); On 2016/03/15 13:36:14, cbruni wrote: ...
4 years, 9 months ago (2016-03-15 15:55:09 UTC) #5
Camillo Bruni
some more comments... will do another thorough pass tomorrow. https://codereview.chromium.org/1767113004/diff/40001/src/elements.cc File src/elements.cc (right): https://codereview.chromium.org/1767113004/diff/40001/src/elements.cc#newcode1841 src/elements.cc:1841: ...
4 years, 9 months ago (2016-03-15 17:59:52 UTC) #6
caitp (gmail)
https://codereview.chromium.org/1767113004/diff/40001/src/elements.cc File src/elements.cc (right): https://codereview.chromium.org/1767113004/diff/40001/src/elements.cc#newcode1841 src/elements.cc:1841: return Just(true); On 2016/03/15 17:59:52, cbruni wrote: > I ...
4 years, 9 months ago (2016-03-15 18:24:30 UTC) #7
Camillo Bruni
lgtm with some more nits https://codereview.chromium.org/1767113004/diff/100001/src/objects.cc File src/objects.cc (right): https://codereview.chromium.org/1767113004/diff/100001/src/objects.cc#newcode8758 src/objects.cc:8758: int number_of_own_elements = object->NumberOfOwnElements(ALL_PROPERTIES); ...
4 years, 9 months ago (2016-03-16 16:04:03 UTC) #8
caitp (gmail)
https://codereview.chromium.org/1767113004/diff/100001/src/objects.cc File src/objects.cc (right): https://codereview.chromium.org/1767113004/diff/100001/src/objects.cc#newcode8758 src/objects.cc:8758: int number_of_own_elements = object->NumberOfOwnElements(ALL_PROPERTIES); On 2016/03/16 16:04:02, cbruni wrote: ...
4 years, 9 months ago (2016-03-17 13:28:41 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1767113004/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1767113004/140001
4 years, 8 months ago (2016-03-28 15:29:00 UTC) #12
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 8 months ago (2016-03-28 15:53:24 UTC) #14
commit-bot: I haz the power
4 years, 8 months ago (2016-03-28 15:54:31 UTC) #16
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/f5b85cb74c149c008ed1edd56870fd4218350a4d
Cr-Commit-Position: refs/heads/master@{#35081}

Powered by Google App Engine
This is Rietveld 408576698