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

Issue 2595053002: [wrapper-tracing] Simplify tracing by forbidding tracing from within mixins (Closed)

Created:
4 years ago by Michael Lippautz
Modified:
4 years ago
CC:
Mads Ager (chromium), blink-reviews, chromium-reviews, haraken, kouhei+heap_chromium.org, oilpan-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[wrapper-tracing] Simplify tracing by forbidding tracing from within mixins We don't have a single use case where we would require wrapper tracing from within mixins. Remove the infra that would be needed, including the catch-all handler. Note that we can now statically check not tracing from within a mixin using a static_assert. BUG=chromium:468240 Committed: https://crrev.com/a22545438325b77d8926b8e6adefd0dfe34ee1a0 Cr-Commit-Position: refs/heads/master@{#440389}

Patch Set 1 #

Total comments: 5

Patch Set 2 : Addressed comments #

Patch Set 3 : IsGarbageCollectedMixin -> NeedsAdjustAndMark #

Patch Set 4 : Guard DCHECK with DCHECK_IS_ON() as the method is only conditionally compiled #

Unified diffs Side-by-side diffs Delta from patch set Stats (+52 lines, -121 lines) Patch
M third_party/WebKit/Source/platform/heap/GarbageCollected.h View 4 chunks +0 lines, -48 lines 0 comments Download
M third_party/WebKit/Source/platform/heap/TraceTraits.h View 1 2 3 4 chunks +52 lines, -65 lines 0 comments Download
M third_party/WebKit/Source/platform/heap/WrapperVisitor.h View 1 chunk +0 lines, -8 lines 0 comments Download

Messages

Total messages: 36 (20 generated)
Michael Lippautz
https://codereview.chromium.org/2595053002/diff/1/third_party/WebKit/Source/platform/heap/TraceTraits.h File third_party/WebKit/Source/platform/heap/TraceTraits.h (right): https://codereview.chromium.org/2595053002/diff/1/third_party/WebKit/Source/platform/heap/TraceTraits.h#newcode206 third_party/WebKit/Source/platform/heap/TraceTraits.h:206: static_assert(!NeedsAdjustAndMark<T>::value, This static_assert makes sure we don't trace T ...
4 years ago (2016-12-21 17:22:15 UTC) #3
sof
https://codereview.chromium.org/2595053002/diff/1/third_party/WebKit/Source/platform/heap/TraceTraits.h File third_party/WebKit/Source/platform/heap/TraceTraits.h (right): https://codereview.chromium.org/2595053002/diff/1/third_party/WebKit/Source/platform/heap/TraceTraits.h#newcode206 third_party/WebKit/Source/platform/heap/TraceTraits.h:206: static_assert(!NeedsAdjustAndMark<T>::value, On 2016/12/21 17:22:14, Michael Lippautz wrote: > This ...
4 years ago (2016-12-21 18:57:28 UTC) #6
Marcel Hlopko
I like the simplification, lgtm to land this
4 years ago (2016-12-21 19:46:27 UTC) #9
haraken
LGTM
4 years ago (2016-12-22 00:48:55 UTC) #10
haraken
https://codereview.chromium.org/2595053002/diff/1/third_party/WebKit/Source/platform/heap/TraceTraits.h File third_party/WebKit/Source/platform/heap/TraceTraits.h (right): https://codereview.chromium.org/2595053002/diff/1/third_party/WebKit/Source/platform/heap/TraceTraits.h#newcode208 third_party/WebKit/Source/platform/heap/TraceTraits.h:208: return reinterpret_cast<const T*>(t); Also we can add DCHECK(t->checkHeader()).
4 years ago (2016-12-22 00:50:07 UTC) #11
Michael Lippautz
Thanks! https://codereview.chromium.org/2595053002/diff/1/third_party/WebKit/Source/platform/heap/TraceTraits.h File third_party/WebKit/Source/platform/heap/TraceTraits.h (right): https://codereview.chromium.org/2595053002/diff/1/third_party/WebKit/Source/platform/heap/TraceTraits.h#newcode206 third_party/WebKit/Source/platform/heap/TraceTraits.h:206: static_assert(!NeedsAdjustAndMark<T>::value, On 2016/12/21 18:57:28, sof wrote: > On ...
4 years ago (2016-12-22 08:45:23 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/2595053002/20001
4 years ago (2016-12-22 08:46:01 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_android on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/cast_shell_android/builds/184910)
4 years ago (2016-12-22 08:59:02 UTC) #17
Michael Lippautz
On 2016/12/21 18:57:28, sof wrote: > https://codereview.chromium.org/2595053002/diff/1/third_party/WebKit/Source/platform/heap/TraceTraits.h > File third_party/WebKit/Source/platform/heap/TraceTraits.h (right): > > https://codereview.chromium.org/2595053002/diff/1/third_party/WebKit/Source/platform/heap/TraceTraits.h#newcode206 > ...
4 years ago (2016-12-22 09:06:44 UTC) #18
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/2595053002/40001
4 years ago (2016-12-22 09:07:05 UTC) #21
sof
On 2016/12/22 09:06:44, Michael Lippautz wrote: > On 2016/12/21 18:57:28, sof wrote: > > > ...
4 years ago (2016-12-22 09:14:22 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: chromeos_amd64-generic_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_amd64-generic_chromium_compile_only_ng/builds/256034)
4 years ago (2016-12-22 09:36:21 UTC) #24
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/2595053002/60001
4 years ago (2016-12-22 09:41:11 UTC) #27
Hannes Payer (out of office)
Awesome catch Michi, LGTM
4 years ago (2016-12-22 11:36:46 UTC) #31
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years ago (2016-12-22 11:53:02 UTC) #34
commit-bot: I haz the power
4 years ago (2016-12-22 11:56:04 UTC) #36
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/a22545438325b77d8926b8e6adefd0dfe34ee1a0
Cr-Commit-Position: refs/heads/master@{#440389}

Powered by Google App Engine
This is Rietveld 408576698