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

Issue 2759243002: [wrapper-tracing] Emite write barrier upon associating a wrapper (Closed)

Created:
3 years, 9 months ago by Michael Lippautz
Modified:
3 years, 9 months ago
CC:
blink-reviews, blink-reviews-bindings_chromium.org, blink-reviews-dom_chromium.org, chromium-reviews, dglazkov+blink, eae+blinkwatch, rwlbuis, sof
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[wrapper-tracing] Emite write barrier upon associating a wrapper Whenever we assign a reference that should be traced into V8 we need to emit a write barrier. We automatically emit write barriers for TraceWrapperv8Reference. However, we still use a regular (weak) Persistent in ScriptWrappable, so we need to emit the barrier there manually. A follow up should convert the reference in ScriptWrappable to TraceWrapperv8Reference. BUG=chromium:702490, chromium:701601, chromium:468240 Review-Url: https://codereview.chromium.org/2759243002 Cr-Commit-Position: refs/heads/master@{#458357} Committed: https://chromium.googlesource.com/chromium/src/+/a2011780ffefd6f9c120b80651015b3f6646244b

Patch Set 1 #

Total comments: 2

Patch Set 2 : Unconditionally mark during tracing without checking backpointer for SW #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -2 lines) Patch
M third_party/WebKit/Source/bindings/core/v8/ScriptWrappable.h View 1 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/ScriptWrappableVisitor.h View 1 3 chunks +6 lines, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/ScriptWrappableVisitor.cpp View 1 3 chunks +12 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/dom/MutationCallback.h View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 29 (13 generated)
Michael Lippautz
jochen: fyi, this is what we were talking about haraken: ptal, this needs to be ...
3 years, 9 months ago (2017-03-20 19:28:42 UTC) #2
jochen (gone - plz use gerrit)
https://codereview.chromium.org/2759243002/diff/1/third_party/WebKit/Source/bindings/core/v8/ScriptWrappable.h File third_party/WebKit/Source/bindings/core/v8/ScriptWrappable.h (right): https://codereview.chromium.org/2759243002/diff/1/third_party/WebKit/Source/bindings/core/v8/ScriptWrappable.h#newcode129 third_party/WebKit/Source/bindings/core/v8/ScriptWrappable.h:129: ScriptWrappableVisitor::writeBarrier(this, &m_mainWorldWrapper); "this" is not necessarily pointing to the ...
3 years, 9 months ago (2017-03-20 20:59:40 UTC) #7
Michael Lippautz
https://codereview.chromium.org/2759243002/diff/1/third_party/WebKit/Source/bindings/core/v8/ScriptWrappable.h File third_party/WebKit/Source/bindings/core/v8/ScriptWrappable.h (right): https://codereview.chromium.org/2759243002/diff/1/third_party/WebKit/Source/bindings/core/v8/ScriptWrappable.h#newcode129 third_party/WebKit/Source/bindings/core/v8/ScriptWrappable.h:129: ScriptWrappableVisitor::writeBarrier(this, &m_mainWorldWrapper); On 2017/03/20 20:59:39, jochen wrote: > "this" ...
3 years, 9 months ago (2017-03-20 21:04:22 UTC) #8
jochen (gone - plz use gerrit)
SVGPointListTearOff for example
3 years, 9 months ago (2017-03-20 21:11:34 UTC) #9
Michael Lippautz
On 2017/03/20 21:11:34, jochen wrote: > SVGPointListTearOff for example Interesting... the use of SW as ...
3 years, 9 months ago (2017-03-20 21:15:14 UTC) #10
jochen (gone - plz use gerrit)
just mark the v8 object - black allocation ftw
3 years, 9 months ago (2017-03-20 21:23:27 UTC) #11
Michael Lippautz
On 2017/03/20 21:23:27, jochen wrote: > just mark the v8 object - black allocation ftw ...
3 years, 9 months ago (2017-03-20 21:50:55 UTC) #12
haraken
LGTM On 2017/03/20 21:15:14, Michael Lippautz wrote: > On 2017/03/20 21:11:34, jochen wrote: > > ...
3 years, 9 months ago (2017-03-20 23:48:38 UTC) #13
jochen (gone - plz use gerrit)
On 2017/03/20 at 23:48:38, haraken wrote: > LGTM > > On 2017/03/20 21:15:14, Michael Lippautz ...
3 years, 9 months ago (2017-03-21 05:36:35 UTC) #14
Michael Lippautz
On 2017/03/21 05:36:35, jochen wrote: > On 2017/03/20 at 23:48:38, haraken wrote: > > LGTM ...
3 years, 9 months ago (2017-03-21 07:47:36 UTC) #17
haraken
On 2017/03/21 07:47:36, Michael Lippautz wrote: > On 2017/03/21 05:36:35, jochen wrote: > > On ...
3 years, 9 months ago (2017-03-21 07:50:14 UTC) #18
jochen (gone - plz use gerrit)
this lgtm as proposed off-line, I'd fix the inheritance in a separate CL. Just add ...
3 years, 9 months ago (2017-03-21 07:56:25 UTC) #19
Michael Lippautz
On 2017/03/21 07:50:14, haraken wrote: > Does it mean that we push all ScriptWrappables to ...
3 years, 9 months ago (2017-03-21 07:57:52 UTC) #20
haraken
On 2017/03/21 07:57:52, Michael Lippautz wrote: > On 2017/03/21 07:50:14, haraken wrote: > > Does ...
3 years, 9 months ago (2017-03-21 07:58:30 UTC) #21
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/2759243002/20001
3 years, 9 months ago (2017-03-21 09:23:35 UTC) #26
commit-bot: I haz the power
3 years, 9 months ago (2017-03-21 09:27:39 UTC) #29
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/a2011780ffefd6f9c120b8065101...

Powered by Google App Engine
This is Rietveld 408576698