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

Issue 2244123005: [api] Add PropertyDescriptor and DefineProperty(). (Closed)

Created:
4 years, 4 months ago by Franzi
Modified:
4 years, 3 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

[api] Add PropertyDescriptor and DefineProperty(). BUG= Committed: https://crrev.com/8acb7ab9f152f6e0b3e96ce91a6c48df74446c4e Cr-Commit-Position: refs/heads/master@{#39093}

Patch Set 1 #

Patch Set 2 : Use undefined for empty handles #

Patch Set 3 : Add test that shows need for has_attribute() functions #

Total comments: 10

Patch Set 4 : Address review comments. #

Patch Set 5 : Use reference instead of pointer #

Patch Set 6 : Rename test variables #

Total comments: 9

Patch Set 7 : Address review comments. #

Patch Set 8 : Do not allow empty handle for value. #

Patch Set 9 : Do not allow empty handle for value. #

Patch Set 10 : Move copy constructor to public: section. #

Patch Set 11 : Reword comment. #

Total comments: 6

Patch Set 12 : Defer all functions in v8::Descriptor to internal descriptor. #

Patch Set 13 : Fix formatting. #

Patch Set 14 : Move destructor. #

Total comments: 4

Patch Set 15 : Address review comments. #

Patch Set 16 : Fix documentation. #

Patch Set 17 : Remove enum State, more restrictive API. #

Patch Set 18 : Improve documentation for descriptor. #

Patch Set 19 : Improve documentation for descriptor. #

Patch Set 20 : Minor fixes. #

Total comments: 4

Patch Set 21 : Do not copy property descriptor to internal descriptor. #

Patch Set 22 : Descriptor in defineProperty() is not const. #

Patch Set 23 : Fix typo. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+616 lines, -7 lines) Patch
M include/v8.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 4 chunks +90 lines, -0 lines 0 comments Download
M src/api.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 3 chunks +105 lines, -7 lines 0 comments Download
M src/counters.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M test/cctest/test-api.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 2 chunks +420 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 79 (59 generated)
Franzi
Hi Toon, Here's v8::DefineProperty() that uses a PropertyDescriptor. Can you have a look, please. Thanks, ...
4 years, 4 months ago (2016-08-17 11:08:04 UTC) #6
Toon Verwaest
https://codereview.chromium.org/2244123005/diff/40001/include/v8.h File include/v8.h (right): https://codereview.chromium.org/2244123005/diff/40001/include/v8.h#newcode2699 include/v8.h:2699: // The defineProperty function is used to add an ...
4 years, 4 months ago (2016-08-18 07:25:39 UTC) #16
Franzi
Thanks Toon, I addressed your comments. Jochen, can you have a look before we land ...
4 years, 4 months ago (2016-08-18 09:56:24 UTC) #22
Toon Verwaest
lgtm
4 years, 4 months ago (2016-08-23 09:52:20 UTC) #25
jochen (gone - plz use gerrit)
https://codereview.chromium.org/2244123005/diff/100001/include/v8.h File include/v8.h (right): https://codereview.chromium.org/2244123005/diff/100001/include/v8.h#newcode3464 include/v8.h:3464: * Empty handles for value, get, or set should ...
4 years, 4 months ago (2016-08-23 12:38:42 UTC) #26
Franzi
Hi Jochen, I addressed your comments. Please take another look. Thanks, Franzi https://codereview.chromium.org/2244123005/diff/100001/include/v8.h File include/v8.h ...
4 years, 4 months ago (2016-08-23 16:08:23 UTC) #27
Toon Verwaest
https://codereview.chromium.org/2244123005/diff/100001/include/v8.h File include/v8.h (right): https://codereview.chromium.org/2244123005/diff/100001/include/v8.h#newcode3464 include/v8.h:3464: * Empty handles for value, get, or set should ...
4 years, 4 months ago (2016-08-23 18:01:43 UTC) #28
Franzi
On 2016/08/23 18:01:43, Toon Verwaest wrote: > https://codereview.chromium.org/2244123005/diff/100001/include/v8.h > File include/v8.h (right): > > https://codereview.chromium.org/2244123005/diff/100001/include/v8.h#newcode3464 ...
4 years, 4 months ago (2016-08-24 12:58:22 UTC) #31
Jakob Kummerow
DBC. https://codereview.chromium.org/2244123005/diff/200001/include/v8.h File include/v8.h (right): https://codereview.chromium.org/2244123005/diff/200001/include/v8.h#newcode3461 include/v8.h:3461: * Empty handles for `get` or `set` are ...
4 years, 3 months ago (2016-08-26 13:28:31 UTC) #37
jochen (gone - plz use gerrit)
for the record, I proposed to move the internal PropertyDescriptor to the API instead of ...
4 years, 3 months ago (2016-08-26 15:01:17 UTC) #38
Franzi
On 2016/08/26 15:01:17, jochen wrote: > for the record, I proposed to move the internal ...
4 years, 3 months ago (2016-08-26 22:00:59 UTC) #42
jochen (gone - plz use gerrit)
sgtm
4 years, 3 months ago (2016-08-29 09:24:20 UTC) #43
Jakob Kummerow
Looks good, minor comments. https://codereview.chromium.org/2244123005/diff/260001/include/v8.h File include/v8.h (right): https://codereview.chromium.org/2244123005/diff/260001/include/v8.h#newcode3668 include/v8.h:3668: State enumerable() const; I'd be ...
4 years, 3 months ago (2016-08-29 12:32:24 UTC) #44
jochen (gone - plz use gerrit)
lgtm
4 years, 3 months ago (2016-08-29 12:54:10 UTC) #45
Franzi
Hi Jakob, I made some final changes. Do you want to have another look? Thanks, ...
4 years, 3 months ago (2016-08-31 09:44:13 UTC) #62
Jakob Kummerow
lgtm https://codereview.chromium.org/2244123005/diff/380001/src/api.cc File src/api.cc (right): https://codereview.chromium.org/2244123005/diff/380001/src/api.cc#newcode3897 src/api.cc:3897: desc.set_value(Utils::OpenHandle(*descriptor.value(), true)); This works, but it's just about ...
4 years, 3 months ago (2016-08-31 14:15:13 UTC) #63
Franzi
https://codereview.chromium.org/2244123005/diff/380001/src/api.cc File src/api.cc (right): https://codereview.chromium.org/2244123005/diff/380001/src/api.cc#newcode3897 src/api.cc:3897: desc.set_value(Utils::OpenHandle(*descriptor.value(), true)); On 2016/08/31 14:15:13, Jakob wrote: > This ...
4 years, 3 months ago (2016-08-31 20:10:51 UTC) #70
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/2244123005/440001
4 years, 3 months ago (2016-09-01 14:35:48 UTC) #75
commit-bot: I haz the power
Committed patchset #23 (id:440001)
4 years, 3 months ago (2016-09-01 15:09:49 UTC) #77
commit-bot: I haz the power
4 years, 3 months ago (2016-09-01 15:10:07 UTC) #79
Message was sent while issue was closed.
Patchset 23 (id:??) landed as
https://crrev.com/8acb7ab9f152f6e0b3e96ce91a6c48df74446c4e
Cr-Commit-Position: refs/heads/master@{#39093}

Powered by Google App Engine
This is Rietveld 408576698