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

Issue 2781443002: [Bindings] Specialize WindowDocument symbol in V8PrivateProperty (Closed)

Created:
3 years, 9 months ago by peria
Modified:
3 years, 8 months ago
Reviewers:
haraken, jbroman, Yuki
CC:
blink-reviews, blink-reviews-bindings_chromium.org, chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Specialize WindowDocument symbol in V8PrivateProperty to use ScopedPersistent instead of v8::Eternal. This specialization is needed to resolve an issue in snapshot feature and should be a short time fix. So other symbols are kept as-is. BUG=617892 Review-Url: https://codereview.chromium.org/2781443002 Cr-Commit-Position: refs/heads/master@{#461069} Committed: https://chromium.googlesource.com/chromium/src/+/74b864441c2ce011435c511f23ea5fab6e23a7d1

Patch Set 1 : . #

Total comments: 11

Patch Set 2 : Specialize createV8Private to use ForApi #

Total comments: 7

Patch Set 3 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+56 lines, -32 lines) Patch
M third_party/WebKit/Source/bindings/core/v8/V8PrivateProperty.h View 1 2 3 chunks +47 lines, -24 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8PrivateProperty.cpp View 1 2 1 chunk +9 lines, -8 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 35 (22 generated)
peria
PTL.
3 years, 9 months ago (2017-03-27 08:55:30 UTC) #5
Yuki
LGTM. https://codereview.chromium.org/2781443002/diff/20001/third_party/WebKit/Source/bindings/core/v8/V8PrivateProperty.h File third_party/WebKit/Source/bindings/core/v8/V8PrivateProperty.h (right): https://codereview.chromium.org/2781443002/diff/20001/third_party/WebKit/Source/bindings/core/v8/V8PrivateProperty.h#newcode168 third_party/WebKit/Source/bindings/core/v8/V8PrivateProperty.h:168: static constexpr char kSymbol[] = "Window#Document"; nit: Window#document? ...
3 years, 9 months ago (2017-03-27 09:06:18 UTC) #8
haraken
LGTM
3 years, 9 months ago (2017-03-27 09:48:23 UTC) #9
haraken
https://codereview.chromium.org/2781443002/diff/20001/third_party/WebKit/Source/bindings/core/v8/V8PrivateProperty.h File third_party/WebKit/Source/bindings/core/v8/V8PrivateProperty.h (right): https://codereview.chromium.org/2781443002/diff/20001/third_party/WebKit/Source/bindings/core/v8/V8PrivateProperty.h#newcode191 third_party/WebKit/Source/bindings/core/v8/V8PrivateProperty.h:191: // TODO(peria): Do not use specialized hack for Window#Document. ...
3 years, 9 months ago (2017-03-27 09:49:56 UTC) #10
jbroman
https://codereview.chromium.org/2781443002/diff/20001/third_party/WebKit/Source/bindings/core/v8/V8PrivateProperty.h File third_party/WebKit/Source/bindings/core/v8/V8PrivateProperty.h (right): https://codereview.chromium.org/2781443002/diff/20001/third_party/WebKit/Source/bindings/core/v8/V8PrivateProperty.h#newcode194 third_party/WebKit/Source/bindings/core/v8/V8PrivateProperty.h:194: ScopedPersistent<v8::Private> m_symbolWindowDocument; Can you explain to me why this ...
3 years, 9 months ago (2017-03-27 18:06:57 UTC) #13
peria
I also specialized createV8Private for Window#DocumentCachedAccessor to use v8::Private::ForApi in PS2. PTAL. https://codereview.chromium.org/2781443002/diff/20001/third_party/WebKit/Source/bindings/core/v8/V8PrivateProperty.h File third_party/WebKit/Source/bindings/core/v8/V8PrivateProperty.h ...
3 years, 8 months ago (2017-03-28 08:10:03 UTC) #17
Yuki
https://codereview.chromium.org/2781443002/diff/20001/third_party/WebKit/Source/bindings/core/v8/V8PrivateProperty.h File third_party/WebKit/Source/bindings/core/v8/V8PrivateProperty.h (right): https://codereview.chromium.org/2781443002/diff/20001/third_party/WebKit/Source/bindings/core/v8/V8PrivateProperty.h#newcode194 third_party/WebKit/Source/bindings/core/v8/V8PrivateProperty.h:194: ScopedPersistent<v8::Private> m_symbolWindowDocument; On 2017/03/28 08:10:03, peria wrote: > On ...
3 years, 8 months ago (2017-03-28 08:17:59 UTC) #18
haraken
On 2017/03/28 08:17:59, Yuki wrote: > https://codereview.chromium.org/2781443002/diff/20001/third_party/WebKit/Source/bindings/core/v8/V8PrivateProperty.h > File third_party/WebKit/Source/bindings/core/v8/V8PrivateProperty.h (right): > > https://codereview.chromium.org/2781443002/diff/20001/third_party/WebKit/Source/bindings/core/v8/V8PrivateProperty.h#newcode194 > ...
3 years, 8 months ago (2017-03-28 11:18:10 UTC) #21
peria
On 2017/03/28 11:18:10, haraken wrote: > Is it guaranteed that ForApi() returns the same symbol ...
3 years, 8 months ago (2017-03-30 04:37:00 UTC) #22
jbroman
lgtm as a short-term fix. https://codereview.chromium.org/2781443002/diff/60001/third_party/WebKit/Source/bindings/core/v8/V8PrivateProperty.cpp File third_party/WebKit/Source/bindings/core/v8/V8PrivateProperty.cpp (right): https://codereview.chromium.org/2781443002/diff/60001/third_party/WebKit/Source/bindings/core/v8/V8PrivateProperty.cpp#newcode14 third_party/WebKit/Source/bindings/core/v8/V8PrivateProperty.cpp:14: static inline v8::Local<v8::String> createV8String(v8::Isolate* ...
3 years, 8 months ago (2017-03-30 15:55:56 UTC) #23
peria
Rebased on https://codereview.chromium.org/2785943002/ https://codereview.chromium.org/2781443002/diff/60001/third_party/WebKit/Source/bindings/core/v8/V8PrivateProperty.cpp File third_party/WebKit/Source/bindings/core/v8/V8PrivateProperty.cpp (right): https://codereview.chromium.org/2781443002/diff/60001/third_party/WebKit/Source/bindings/core/v8/V8PrivateProperty.cpp#newcode14 third_party/WebKit/Source/bindings/core/v8/V8PrivateProperty.cpp:14: static inline v8::Local<v8::String> createV8String(v8::Isolate* isolate, On ...
3 years, 8 months ago (2017-03-31 04:26:50 UTC) #25
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/2781443002/100001
3 years, 8 months ago (2017-03-31 07:20:51 UTC) #32
commit-bot: I haz the power
3 years, 8 months ago (2017-03-31 07:27:24 UTC) #35
Message was sent while issue was closed.
Committed patchset #3 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/74b864441c2ce011435c511f23ea...

Powered by Google App Engine
This is Rietveld 408576698