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

Issue 1073953004: Expose Object::DefineOwnProperty on the API (Closed)

Created:
5 years, 8 months ago by jochen (gone - plz use gerrit)
Modified:
5 years, 7 months ago
CC:
Paweł Hajdan Jr., v8-dev
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Expose Object::DefineOwnProperty on the API This is equivalent to calling Object.defineProperty on an Object. BUG=chromium:475206 R=adamk@chromium.org,dcarney@chromium.org,verwaest@chromium.org LOG=y

Patch Set 1 #

Total comments: 6

Patch Set 2 : updates #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+97 lines, -0 lines) Patch
M include/v8.h View 1 chunk +4 lines, -0 lines 3 comments Download
M src/api.cc View 1 1 chunk +29 lines, -0 lines 1 comment Download
M src/v8natives.js View 1 chunk +13 lines, -0 lines 1 comment Download
M test/cctest/test-api.cc View 1 1 chunk +51 lines, -0 lines 1 comment Download

Messages

Total messages: 24 (0 generated)
jochen (gone - plz use gerrit)
5 years, 8 months ago (2015-04-15 08:24:46 UTC) #1
dcarney
lgtm https://codereview.chromium.org/1073953004/diff/1/src/api.cc File src/api.cc (right): https://codereview.chromium.org/1073953004/diff/1/src/api.cc#newcode3449 src/api.cc:3449: auto obj = Utils::OpenHandle(this); most of these got ...
5 years, 8 months ago (2015-04-15 08:31:17 UTC) #2
jochen (gone - plz use gerrit)
https://codereview.chromium.org/1073953004/diff/1/src/api.cc File src/api.cc (right): https://codereview.chromium.org/1073953004/diff/1/src/api.cc#newcode3449 src/api.cc:3449: auto obj = Utils::OpenHandle(this); On 2015/04/15 at 08:31:17, dcarney ...
5 years, 8 months ago (2015-04-15 08:35:19 UTC) #3
adamk
https://codereview.chromium.org/1073953004/diff/20001/include/v8.h File include/v8.h (right): https://codereview.chromium.org/1073953004/diff/20001/include/v8.h#newcode2689 include/v8.h:2689: V8_WARN_UNUSED_RESULT MaybeLocal<Value> DefineObjectProperty( Why not "DefineOwnProperty"? Also, it seems ...
5 years, 8 months ago (2015-04-15 16:31:54 UTC) #4
adamk
I also have a higher-level concern about this approach: how much slower is this than ...
5 years, 8 months ago (2015-04-15 17:05:37 UTC) #5
jochen (gone - plz use gerrit)
On 2015/04/15 at 17:05:37, adamk wrote: > I also have a higher-level concern about this ...
5 years, 8 months ago (2015-04-15 18:59:43 UTC) #6
dcarney
https://codereview.chromium.org/1073953004/diff/20001/include/v8.h File include/v8.h (right): https://codereview.chromium.org/1073953004/diff/20001/include/v8.h#newcode2689 include/v8.h:2689: V8_WARN_UNUSED_RESULT MaybeLocal<Value> DefineObjectProperty( On 2015/04/15 16:31:53, adamk wrote: > ...
5 years, 8 months ago (2015-04-15 19:02:56 UTC) #7
dcarney
> not throwing an exception and returning a bool instead sounds fine. that would be ...
5 years, 8 months ago (2015-04-15 19:04:51 UTC) #8
adamk
There are a bunch of different issues here, I guess I'll address each one separately ...
5 years, 8 months ago (2015-04-15 19:11:08 UTC) #9
adamk
On 2015/04/15 19:04:51, dcarney wrote: > > not throwing an exception and returning a bool ...
5 years, 8 months ago (2015-04-15 19:13:15 UTC) #10
adamk
On 2015/04/15 19:13:15, adamk wrote: > On 2015/04/15 19:04:51, dcarney wrote: > > > not ...
5 years, 8 months ago (2015-04-15 19:14:12 UTC) #11
dcarney
On 2015/04/15 19:14:12, adamk wrote: > Oh, I think I see the confusion. Of course ...
5 years, 8 months ago (2015-04-15 19:45:43 UTC) #12
dcarney
> It might be worth having a fast-path in C++ for the "no existing property, ...
5 years, 8 months ago (2015-04-15 19:52:45 UTC) #13
adamk
On 2015/04/15 19:52:45, dcarney wrote: > > It might be worth having a fast-path in ...
5 years, 8 months ago (2015-04-15 22:24:53 UTC) #14
jochen (gone - plz use gerrit)
On 2015/04/15 at 22:24:53, adamk wrote: > On 2015/04/15 19:52:45, dcarney wrote: > > > ...
5 years, 8 months ago (2015-04-20 07:30:34 UTC) #15
adamk
On 2015/04/20 07:30:34, jochen wrote: > On 2015/04/15 at 22:24:53, adamk wrote: > > On ...
5 years, 8 months ago (2015-04-20 17:30:54 UTC) #16
jochen (gone - plz use gerrit)
On 2015/04/20 at 17:30:54, adamk wrote: > On 2015/04/20 07:30:34, jochen wrote: > > On ...
5 years, 8 months ago (2015-04-21 08:37:04 UTC) #17
jochen (gone - plz use gerrit)
On 2015/04/20 at 17:30:54, adamk wrote: > On 2015/04/20 07:30:34, jochen wrote: > > On ...
5 years, 8 months ago (2015-04-21 08:37:04 UTC) #18
jochen (gone - plz use gerrit)
to add some more context. ForceSet() is just wrong. If an object is frozen, ForceSet ...
5 years, 8 months ago (2015-04-21 14:36:59 UTC) #19
adamk
On 2015/04/21 14:36:59, jochen wrote: > to add some more context. ForceSet() is just wrong. ...
5 years, 8 months ago (2015-04-21 15:41:59 UTC) #20
jochen (gone - plz use gerrit)
so what about a defineProperty version that just CHECKs if we try something that's not ...
5 years, 8 months ago (2015-04-23 14:36:45 UTC) #21
adamk
On 2015/04/23 14:36:45, jochen wrote: > so what about a defineProperty version that just CHECKs ...
5 years, 8 months ago (2015-04-23 16:08:58 UTC) #22
adamk
On 2015/04/23 16:08:58, adamk wrote: > On 2015/04/23 14:36:45, jochen wrote: > > so what ...
5 years, 8 months ago (2015-04-23 18:33:10 UTC) #23
jochen (gone - plz use gerrit)
5 years, 7 months ago (2015-05-26 16:48:15 UTC) #24

Powered by Google App Engine
This is Rietveld 408576698