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

Issue 2002203002: [api] Add more parameters to Object::GetPropertyNames (Closed)

Created:
4 years, 7 months ago by Camillo Bruni
Modified:
4 years, 6 months ago
CC:
peria, Paweł Hajdan Jr., v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@2016-05-06_keys_fast_path_1995263002
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[api] Add more parameters to Object::GetPropertyNames Expose more or less the full functionality of the KeyAccumulator in the API: - use the PropertyFilter introduced for GetOwnPropertyNames - use KeyCollectionLimit for OWN_ONLY or INLCUDE_PROTOS - use IndexFilter to eithe SKIP_INDICES or INCLUDE_INDICES Rewire Object::GetOwnPropertyNames to use GetPropertyNames. BUG=chromium:148757 Committed: https://crrev.com/63efe9e4164a68888a8ee74aae75a31fe3149cab Cr-Commit-Position: refs/heads/master@{#36595}

Patch Set 1 #

Patch Set 2 : creating proper CL #

Patch Set 3 : reverting accidental formatting #

Total comments: 5

Patch Set 4 : addressing renames #

Patch Set 5 : using enum class #

Patch Set 6 : adding more tests #

Total comments: 3

Patch Set 7 : renaming enums and fixing cctests #

Patch Set 8 : addressing nits #

Patch Set 9 : remove print #

Total comments: 4

Patch Set 10 : directly initialize enums from api enums #

Patch Set 11 : remove debug code #

Total comments: 2

Patch Set 12 : addressing nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+237 lines, -83 lines) Patch
M include/v8.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +18 lines, -0 lines 0 comments Download
M src/api.cc View 1 2 3 4 5 6 7 2 chunks +18 lines, -17 lines 0 comments Download
M src/builtins.cc View 1 2 3 4 5 6 5 chunks +14 lines, -9 lines 0 comments Download
M src/debug/debug-scopes.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/debug/debug-scopes.cc View 1 2 3 4 5 6 4 chunks +7 lines, -5 lines 0 comments Download
M src/elements.cc View 1 2 3 4 5 6 5 chunks +7 lines, -6 lines 0 comments Download
M src/json-stringifier.cc View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M src/keys.h View 1 2 3 4 5 6 5 chunks +12 lines, -10 lines 0 comments Download
M src/keys.cc View 1 2 3 4 5 6 8 chunks +12 lines, -11 lines 0 comments Download
M src/objects.h View 1 2 3 4 5 6 7 8 9 1 chunk +6 lines, -3 lines 0 comments Download
M src/objects.cc View 1 2 3 4 5 6 4 chunks +7 lines, -5 lines 0 comments Download
M src/objects-inl.h View 1 2 3 4 5 6 1 chunk +3 lines, -2 lines 0 comments Download
M src/runtime/runtime-array.cc View 1 2 3 4 5 6 2 chunks +4 lines, -2 lines 0 comments Download
M src/runtime/runtime-forin.cc View 1 2 3 4 5 6 1 chunk +5 lines, -3 lines 0 comments Download
M src/runtime/runtime-object.cc View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M test/cctest/test-api.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +119 lines, -7 lines 0 comments Download

Messages

Total messages: 20 (7 generated)
Camillo Bruni
yangguo@ please have a look at debug* ishell@ PTAL at the rest
4 years, 6 months ago (2016-05-25 09:58:31 UTC) #3
Igor Sheludko
https://codereview.chromium.org/2002203002/diff/40001/include/v8.h File include/v8.h (right): https://codereview.chromium.org/2002203002/diff/40001/include/v8.h#newcode2634 include/v8.h:2634: enum KeysCollectionLimit { OWN_ONLY, INCLUDE_PROTOS }; WDYT about KeyCollectionMode? ...
4 years, 6 months ago (2016-05-25 14:52:57 UTC) #4
Camillo Bruni
PTAL again, more work on the tests https://codereview.chromium.org/2002203002/diff/40001/include/v8.h File include/v8.h (right): https://codereview.chromium.org/2002203002/diff/40001/include/v8.h#newcode2634 include/v8.h:2634: enum KeysCollectionLimit ...
4 years, 6 months ago (2016-05-27 12:58:37 UTC) #5
Igor Sheludko
https://codereview.chromium.org/2002203002/diff/100001/include/v8.h File include/v8.h (right): https://codereview.chromium.org/2002203002/diff/100001/include/v8.h#newcode2634 include/v8.h:2634: enum class KeyCollectionMode { OWN_ONLY, INCLUDE_PROTOS }; I think ...
4 years, 6 months ago (2016-05-27 13:53:42 UTC) #6
Camillo Bruni
PTAL again
4 years, 6 months ago (2016-05-27 16:16:40 UTC) #7
Yang
+Jochen https://codereview.chromium.org/2002203002/diff/160001/include/v8.h File include/v8.h (right): https://codereview.chromium.org/2002203002/diff/160001/include/v8.h#newcode2634 include/v8.h:2634: enum class KeyCollectionMode { kOwnOnly, kIncludePrototypes }; Do ...
4 years, 6 months ago (2016-05-30 09:25:28 UTC) #9
Camillo Bruni
ishel, PTAL again https://codereview.chromium.org/2002203002/diff/160001/include/v8.h File include/v8.h (right): https://codereview.chromium.org/2002203002/diff/160001/include/v8.h#newcode2634 include/v8.h:2634: enum class KeyCollectionMode { kOwnOnly, kIncludePrototypes ...
4 years, 6 months ago (2016-05-30 11:25:45 UTC) #10
Igor Sheludko
lgtm with nits: https://codereview.chromium.org/2002203002/diff/200001/include/v8.h File include/v8.h (right): https://codereview.chromium.org/2002203002/diff/200001/include/v8.h#newcode2634 include/v8.h:2634: enum class KeyCollectionMode { kOwnOnly, kIncludePrototypes ...
4 years, 6 months ago (2016-05-30 13:35:37 UTC) #11
jochen (gone - plz use gerrit)
i like enum classes with kCamelCase, I think we should use that going forward
4 years, 6 months ago (2016-05-30 14:28:49 UTC) #12
Yang
On 2016/05/30 14:28:49, jochen wrote: > i like enum classes with kCamelCase, I think we ...
4 years, 6 months ago (2016-05-30 15:03:36 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2002203002/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2002203002/220001
4 years, 6 months ago (2016-05-30 15:22:12 UTC) #16
commit-bot: I haz the power
Committed patchset #12 (id:220001)
4 years, 6 months ago (2016-05-30 15:53:03 UTC) #18
commit-bot: I haz the power
4 years, 6 months ago (2016-05-30 15:54:19 UTC) #20
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/63efe9e4164a68888a8ee74aae75a31fe3149cab
Cr-Commit-Position: refs/heads/master@{#36595}

Powered by Google App Engine
This is Rietveld 408576698