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

Issue 2007463003: binding: Reimplements V8HiddenValue as V8PrivateProperty. (Closed)

Created:
4 years, 7 months ago by Yuki
Modified:
4 years, 6 months ago
CC:
Ken Russell (switch to Gerrit), chromium-reviews, blink-reviews, blink-reviews-bindings_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

binding: Reimplements V8HiddenValue as V8PrivateProperty. V8HiddenValue is very slow. This CL implements it again as V8PrivateProperty so that it will be efficient. Also makes it clear which interface and which attribute, etc. is using which private symbol. Note that "Class#property" is recommended as symbol names by V8. Following CLs will replace V8HiddenValue with V8PrivateProperty gradually. BUG=611864 Committed: https://crrev.com/4419cbd172b5d77e0e33b7622666e523d8b20afa Cr-Commit-Position: refs/heads/master@{#396694}

Patch Set 1 #

Total comments: 13

Patch Set 2 : Synced. #

Patch Set 3 : Addressed review comments. #

Total comments: 7

Patch Set 4 : Addressed review comments. #

Patch Set 5 : Added obj->HasPrivate() back. #

Total comments: 4

Patch Set 6 : Synced. #

Patch Set 7 : Addressed review comments. #

Messages

Total messages: 19 (5 generated)
Yuki
Could you review this CL?
4 years, 7 months ago (2016-05-23 13:41:50 UTC) #2
haraken
The change looks good. Did you get some performance results with this CL?
4 years, 7 months ago (2016-05-23 22:03:58 UTC) #3
Yuki
On 2016/05/23 22:03:58, haraken wrote: > The change looks good. > > Did you get ...
4 years, 7 months ago (2016-05-24 08:00:07 UTC) #4
haraken
4x speed-up is already a big win. I'm fine with landing this CL even if ...
4 years, 7 months ago (2016-05-24 17:33:53 UTC) #5
Ken Russell (switch to Gerrit)
Thanks for the CC:. The overall direction seems fine. v8::Private is marked an experimental API. ...
4 years, 7 months ago (2016-05-24 21:49:19 UTC) #7
haraken
On 2016/05/24 21:49:19, Ken Russell wrote: > Thanks for the CC:. > > The overall ...
4 years, 7 months ago (2016-05-24 22:31:06 UTC) #8
Yuki
https://codereview.chromium.org/2007463003/diff/1/third_party/WebKit/Source/bindings/core/v8/V8PrivateProperty.cpp File third_party/WebKit/Source/bindings/core/v8/V8PrivateProperty.cpp (right): https://codereview.chromium.org/2007463003/diff/1/third_party/WebKit/Source/bindings/core/v8/V8PrivateProperty.cpp#newcode22 third_party/WebKit/Source/bindings/core/v8/V8PrivateProperty.cpp:22: if (!LIKELY(v8::String::NewFromOneByte(isolate, reinterpret_cast<const uint8_t*>(symbol), v8::NewStringType::kNormal, static_cast<int>(length)).ToLocal(&str))) { On 2016/05/24 ...
4 years, 7 months ago (2016-05-26 10:52:11 UTC) #9
haraken
Mostly looks good. https://codereview.chromium.org/2007463003/diff/40001/third_party/WebKit/Source/bindings/core/v8/V8PrivateProperty.h File third_party/WebKit/Source/bindings/core/v8/V8PrivateProperty.h (right): https://codereview.chromium.org/2007463003/diff/40001/third_party/WebKit/Source/bindings/core/v8/V8PrivateProperty.h#newcode68 third_party/WebKit/Source/bindings/core/v8/V8PrivateProperty.h:68: if (object->GetPrivate(context, m_privateSymbol).ToLocal(&value)) Can we use ...
4 years, 6 months ago (2016-05-26 16:41:53 UTC) #10
Yuki
https://codereview.chromium.org/2007463003/diff/40001/third_party/WebKit/Source/bindings/core/v8/V8PrivateProperty.h File third_party/WebKit/Source/bindings/core/v8/V8PrivateProperty.h (right): https://codereview.chromium.org/2007463003/diff/40001/third_party/WebKit/Source/bindings/core/v8/V8PrivateProperty.h#newcode68 third_party/WebKit/Source/bindings/core/v8/V8PrivateProperty.h:68: if (object->GetPrivate(context, m_privateSymbol).ToLocal(&value)) On 2016/05/26 16:41:52, haraken wrote: > ...
4 years, 6 months ago (2016-05-27 11:49:02 UTC) #11
haraken
LGTM https://codereview.chromium.org/2007463003/diff/80001/third_party/WebKit/Source/bindings/core/v8/V8PrivateProperty.h File third_party/WebKit/Source/bindings/core/v8/V8PrivateProperty.h (right): https://codereview.chromium.org/2007463003/diff/80001/third_party/WebKit/Source/bindings/core/v8/V8PrivateProperty.h#newcode70 third_party/WebKit/Source/bindings/core/v8/V8PrivateProperty.h:70: if (v8Call(object->GetPrivate(context, m_privateSymbol), value)) You were saying that ...
4 years, 6 months ago (2016-05-27 18:15:20 UTC) #12
Yuki
https://codereview.chromium.org/2007463003/diff/80001/third_party/WebKit/Source/bindings/core/v8/V8PrivateProperty.h File third_party/WebKit/Source/bindings/core/v8/V8PrivateProperty.h (right): https://codereview.chromium.org/2007463003/diff/80001/third_party/WebKit/Source/bindings/core/v8/V8PrivateProperty.h#newcode70 third_party/WebKit/Source/bindings/core/v8/V8PrivateProperty.h:70: if (v8Call(object->GetPrivate(context, m_privateSymbol), value)) On 2016/05/27 18:15:20, haraken wrote: ...
4 years, 6 months ago (2016-05-30 06:44:28 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2007463003/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2007463003/120001
4 years, 6 months ago (2016-05-30 06:45:56 UTC) #16
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 6 months ago (2016-05-30 08:27:43 UTC) #17
commit-bot: I haz the power
4 years, 6 months ago (2016-05-30 08:29:17 UTC) #19
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/4419cbd172b5d77e0e33b7622666e523d8b20afa
Cr-Commit-Position: refs/heads/master@{#396694}

Powered by Google App Engine
This is Rietveld 408576698