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

Side by Side Diff: tools/clang/blink_gc_plugin/tests/trace_templated_super.cpp

Issue 1385193002: Bisect clang Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 246985 Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "trace_templated_super.h"
6
7 namespace blink {
8
9 template<typename T>
10 void Super<T>::clearWeakMembers(Visitor* visitor)
11 {
12 (void)m_weak;
13 }
14
15 template<typename T>
16 void Super<T>::trace(Visitor* visitor)
17 {
18 visitor->registerWeakMembers<Super<T>, &Super<T>::clearWeakMembers>(this);
19 visitor->trace(m_obj);
20 Mixin::trace(visitor);
21 }
22
23 template<typename T>
24 void Sub<T>::trace(Visitor* visitor)
25 {
26 // Missing trace of m_obj.
27 Super<T>::trace(visitor);
28 }
29
30 void HeapObject::trace(Visitor* visitor)
31 {
32 visitor->trace(m_obj);
33 Sub<HeapObject>::trace(visitor);
34 }
35
36 }
OLDNEW
« no previous file with comments | « tools/clang/blink_gc_plugin/tests/trace_templated_super.h ('k') | tools/clang/blink_gc_plugin/tests/trace_templated_super.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698