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

Issue 2748103002: [wrapper-tracing] Redesign dispatching on non-inheriting cases (Closed)

Created:
3 years, 9 months ago by Michael Lippautz
Modified:
3 years, 9 months ago
Reviewers:
haraken, adithyas
CC:
Mads Ager (chromium), blink-reviews, blink-reviews-bindings_chromium.org, blink-reviews-dom_chromium.org, chromium-reviews, dglazkov+blink, eae+blinkwatch, kinuko+watch, kouhei+heap_chromium.org, oilpan-reviews, rwlbuis, sof
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[wrapper-tracing] Redesign dispatching on non-inheriting cases Use a specialization of TraceTrait<>::traceMarkedWrapper for types that do not inherit from TraceWrapperBase. This way we avoid exposing non-virtual methods exposing GC details on managed objects. Drive-by: Remove CanTraceWrappers macro as any misuse of the other macros will yield in compile time errors. BUG=chromium:701295 Review-Url: https://codereview.chromium.org/2748103002 Cr-Commit-Position: refs/heads/master@{#456714} Committed: https://chromium.googlesource.com/chromium/src/+/96fd6f8611075233b0963e699dfd49305bbb1406

Patch Set 1 #

Total comments: 4

Patch Set 2 : Addressed comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -47 lines) Patch
M third_party/WebKit/Source/bindings/core/v8/ScriptWrappable.h View 2 chunks +0 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/TraceWrapperReference.md View 1 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/dom/ElementRareData.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/NodeListsNodeData.h View 1 2 chunks +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/dom/NodeRareData.h View 1 4 chunks +6 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/heap/GarbageCollected.h View 1 chunk +0 lines, -11 lines 0 comments Download
M third_party/WebKit/Source/platform/heap/TraceTraits.h View 2 chunks +2 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/platform/heap/WrapperVisitor.h View 1 4 chunks +13 lines, -19 lines 0 comments Download

Messages

Total messages: 19 (12 generated)
Michael Lippautz
ptal: I think this way we can still unify the visitors as they do not ...
3 years, 9 months ago (2017-03-14 12:51:59 UTC) #3
haraken
LGTM https://codereview.chromium.org/2748103002/diff/1/third_party/WebKit/Source/platform/heap/WrapperVisitor.h File third_party/WebKit/Source/platform/heap/WrapperVisitor.h (right): https://codereview.chromium.org/2748103002/diff/1/third_party/WebKit/Source/platform/heap/WrapperVisitor.h#newcode73 third_party/WebKit/Source/platform/heap/WrapperVisitor.h:73: #define DEFINE_TRACE_TRAIT_FOR_WRAPPER_WITHOUT_BASE(ClassName) \ DEFINE_TRAIT_FOR_TRACE_WRAPPERS (_WITHOUT_BASE) ? Just to ...
3 years, 9 months ago (2017-03-14 13:00:12 UTC) #7
Michael Lippautz
https://codereview.chromium.org/2748103002/diff/1/third_party/WebKit/Source/platform/heap/WrapperVisitor.h File third_party/WebKit/Source/platform/heap/WrapperVisitor.h (right): https://codereview.chromium.org/2748103002/diff/1/third_party/WebKit/Source/platform/heap/WrapperVisitor.h#newcode73 third_party/WebKit/Source/platform/heap/WrapperVisitor.h:73: #define DEFINE_TRACE_TRAIT_FOR_WRAPPER_WITHOUT_BASE(ClassName) \ On 2017/03/14 13:00:11, haraken wrote: > ...
3 years, 9 months ago (2017-03-14 13:43:43 UTC) #8
haraken
LGTM
3 years, 9 months ago (2017-03-14 14:19:00 UTC) #11
adithyas
lgtm Thanks!
3 years, 9 months ago (2017-03-14 14:38:34 UTC) #12
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/2748103002/20001
3 years, 9 months ago (2017-03-14 15:52:14 UTC) #16
commit-bot: I haz the power
3 years, 9 months ago (2017-03-14 15:57:54 UTC) #19
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/96fd6f8611075233b0963e699dfd...

Powered by Google App Engine
This is Rietveld 408576698