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

Issue 834373003: BlinkGCPlugin: require GC mixin instances to declare local trace(). (Closed)

Created:
5 years, 11 months ago by sof
Modified:
5 years, 11 months ago
Reviewers:
oilpan-reviews, haraken
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

BlinkGCPlugin: require GC mixin instances to declare local trace(). For classes that derive from GarbageCollectedMixin and declare both adjustAndMark() and isHeapObjectAlive() overrides (typically using the USING_GARBAGE_COLLECTED_MIXIN() macro), check that the class also declares a local trace() method override. This is done so as to require that GC mixin instances do have trace() in their leftmost vtbl. R=haraken BUG=444565 Committed: https://crrev.com/35290f1ba94f90e89492b51567826270c02a81da Cr-Commit-Position: refs/heads/master@{#310272}

Patch Set 1 #

Patch Set 2 : Add missing 'override' annotations; sync heap/stubs.h with upstream defs #

Patch Set 3 : Add missing 'override' annotations; sync heap/stubs.h with upstream defs #

Unified diffs Side-by-side diffs Delta from patch set Stats (+157 lines, -19 lines) Patch
M tools/clang/blink_gc_plugin/BlinkGCPlugin.cpp View 5 chunks +24 lines, -0 lines 0 comments Download
M tools/clang/blink_gc_plugin/Config.h View 1 chunk +2 lines, -0 lines 0 comments Download
M tools/clang/blink_gc_plugin/RecordInfo.h View 2 chunks +5 lines, -0 lines 0 comments Download
M tools/clang/blink_gc_plugin/RecordInfo.cpp View 4 chunks +53 lines, -0 lines 0 comments Download
M tools/clang/blink_gc_plugin/tests/class_multiple_trace_bases.txt View 1 chunk +4 lines, -1 line 0 comments Download
M tools/clang/blink_gc_plugin/tests/class_requires_finalization_mixin.h View 1 5 chunks +5 lines, -5 lines 0 comments Download
M tools/clang/blink_gc_plugin/tests/class_requires_trace_method.h View 1 1 chunk +32 lines, -0 lines 0 comments Download
M tools/clang/blink_gc_plugin/tests/class_requires_trace_method.cpp View 1 1 chunk +13 lines, -1 line 0 comments Download
M tools/clang/blink_gc_plugin/tests/class_requires_trace_method.txt View 1 1 chunk +7 lines, -1 line 0 comments Download
M tools/clang/blink_gc_plugin/tests/garbage_collected_mixin.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M tools/clang/blink_gc_plugin/tests/heap/stubs.h View 1 2 chunks +6 lines, -5 lines 0 comments Download
M tools/clang/blink_gc_plugin/tests/trace_templated_super.h View 1 2 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 13 (2 generated)
sof
Please take a look. I _believe_ this is the check we want&have to provide for ...
5 years, 11 months ago (2015-01-06 22:23:38 UTC) #2
haraken
LGTM, thanks for improving the plugin! > I _believe_ this is the check we want&have ...
5 years, 11 months ago (2015-01-07 01:37:51 UTC) #3
sof
On 2015/01/07 01:37:51, haraken wrote: > LGTM, thanks for improving the plugin! > > > ...
5 years, 11 months ago (2015-01-07 08:08:31 UTC) #4
haraken
On 2015/01/07 08:08:31, sof wrote: > On 2015/01/07 01:37:51, haraken wrote: > > LGTM, thanks ...
5 years, 11 months ago (2015-01-07 08:23:08 UTC) #5
zerny-google
IIRC there is no need for a mixin derived class to declare/override a trace method ...
5 years, 11 months ago (2015-01-07 08:55:06 UTC) #6
zerny-google
On 2015/01/07 08:55:06, zerny-google wrote: > IIRC there is no need for a mixin derived ...
5 years, 11 months ago (2015-01-07 08:56:17 UTC) #7
sof
On 2015/01/07 08:56:17, zerny-google wrote: > On 2015/01/07 08:55:06, zerny-google wrote: > > IIRC there ...
5 years, 11 months ago (2015-01-07 08:57:05 UTC) #8
zerny-google
On 2015/01/07 08:57:05, sof wrote: > On 2015/01/07 08:56:17, zerny-google wrote: > > On 2015/01/07 ...
5 years, 11 months ago (2015-01-07 09:51:48 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/834373003/40001
5 years, 11 months ago (2015-01-07 12:12:59 UTC) #11
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 11 months ago (2015-01-07 12:53:56 UTC) #12
commit-bot: I haz the power
5 years, 11 months ago (2015-01-07 12:54:40 UTC) #13
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/35290f1ba94f90e89492b51567826270c02a81da
Cr-Commit-Position: refs/heads/master@{#310272}

Powered by Google App Engine
This is Rietveld 408576698