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

Issue 1637753004: [es7] refactor and fix Object.values() / Object.entries() (Closed)

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

[es7] refactor and fix Object.values() / Object.entries() Previously, Object.values() and Object.entries() were piggy-backing on Object.keys(). This meant that they would pre-filter non-enumerable properties, violating the runtime behaviour of the methods. Unfortunately, this does not match the current proposal text. Also incorporates several tests verifying this behaviour based on tests included in the ChakraCore implementation. BUG=v8:4663 LOG=N R=adamk@chromium.org, rossberg@chromium.org, littledan@chromium.org Committed: https://crrev.com/5c5ccd9d7f8693990d1a9eb26ba3a94f376dcf0b Cr-Commit-Position: refs/heads/master@{#33782}

Patch Set 1 #

Patch Set 2 : Update TestOrder() + also add PrivateSymbol test #

Patch Set 3 : keepin it fresh #

Total comments: 8

Patch Set 4 : less auto, less parameters, less unused stuff #

Patch Set 5 : rebase #

Patch Set 6 : Fix rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+416 lines, -37 lines) Patch
M src/builtins.cc View 1 2 3 4 5 2 chunks +7 lines, -34 lines 0 comments Download
M src/objects.h View 1 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download
M src/objects.cc View 1 2 3 4 5 1 chunk +58 lines, -0 lines 0 comments Download
M src/objects-inl.h View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M test/mjsunit/harmony/object-entries.js View 1 2 3 4 5 5 chunks +177 lines, -1 line 0 comments Download
M test/mjsunit/harmony/object-values.js View 1 2 3 4 5 5 chunks +166 lines, -1 line 0 comments Download

Messages

Total messages: 23 (5 generated)
caitp (gmail)
I was taking a look at the ChakraCore impl, and saw that the original impl ...
4 years, 11 months ago (2016-01-26 16:45:39 UTC) #1
adamk
+cbruni for key-accumulator expertise
4 years, 11 months ago (2016-01-26 18:49:54 UTC) #3
Dan Ehrenberg
On 2016/01/26 at 18:49:54, adamk wrote: > +cbruni for key-accumulator expertise There are a bunch ...
4 years, 11 months ago (2016-01-26 18:56:32 UTC) #4
caitp (gmail)
On 2016/01/26 18:56:32, Dan Ehrenberg wrote: > On 2016/01/26 at 18:49:54, adamk wrote: > > ...
4 years, 11 months ago (2016-01-26 19:57:00 UTC) #5
caitp (gmail)
It looks like the GetKeys_Internal with the trivial lambda gets inlined (at least in Xcode ...
4 years, 10 months ago (2016-02-01 15:00:28 UTC) #6
Dan Ehrenberg
On 2016/02/01 at 15:00:28, caitpotter88 wrote: > It looks like the GetKeys_Internal with the trivial ...
4 years, 10 months ago (2016-02-01 18:24:46 UTC) #7
caitp (gmail)
On 2016/02/01 18:24:46, Dan Ehrenberg wrote: > On 2016/02/01 at 15:00:28, caitpotter88 wrote: > > ...
4 years, 10 months ago (2016-02-02 02:29:16 UTC) #8
Camillo Bruni
Added some feedback (mostly about "auto"). I'm fine with the templatized GetKeys implementation. If performance ...
4 years, 10 months ago (2016-02-03 12:03:49 UTC) #9
caitp (gmail)
thanks for the look https://codereview.chromium.org/1637753004/diff/40001/src/key-accumulator.cc File src/key-accumulator.cc (right): https://codereview.chromium.org/1637753004/diff/40001/src/key-accumulator.cc#newcode105 src/key-accumulator.cc:105: auto add_value = [receiver, isolate](Handle<FixedArray> ...
4 years, 10 months ago (2016-02-03 12:57:31 UTC) #10
Camillo Bruni
lgtm
4 years, 10 months ago (2016-02-04 17:21:47 UTC) #11
caitp (gmail)
On 2016/02/04 17:21:47, cbruni wrote: > lgtm the templatized key-accumulator stuff no longer works because ...
4 years, 10 months ago (2016-02-04 19:44:31 UTC) #12
Camillo Bruni
ah right, shortcuts everywhere :) patch 6 lgtm
4 years, 10 months ago (2016-02-05 12:53:56 UTC) #13
caitp (gmail)
On 2016/02/05 12:53:56, cbruni wrote: > ah right, shortcuts everywhere :) > patch 6 lgtm ...
4 years, 10 months ago (2016-02-05 12:55:45 UTC) #15
Dan Ehrenberg
lgtm
4 years, 10 months ago (2016-02-05 13:56:41 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1637753004/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1637753004/100001
4 years, 10 months ago (2016-02-05 14:05:33 UTC) #18
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 10 months ago (2016-02-05 14:38:31 UTC) #20
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/5c5ccd9d7f8693990d1a9eb26ba3a94f376dcf0b Cr-Commit-Position: refs/heads/master@{#33782}
4 years, 10 months ago (2016-02-05 14:38:41 UTC) #22
Michael Achenbach
4 years, 10 months ago (2016-02-05 15:35:05 UTC) #23
Message was sent while issue was closed.
A revert of this CL (patchset #6 id:100001) has been created in
https://codereview.chromium.org/1675663002/ by machenbach@chromium.org.

The reason for reverting is: [Sheriff] Breaks gc stress:
https://build.chromium.org/p/client.v8/builders/V8%20Linux%20-%20gc%20stress/....

Powered by Google App Engine
This is Rietveld 408576698