Roll src/third_party/WebKit f36d5e0:68b67cd (svn 193299:193303)
[chromium-blink-merge.git] / tools / clang / blink_gc_plugin / tests / class_requires_finalization_field.cpp
blobeb23ab0330ab855379d2773ad786cddbc750efd3
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.
5 #include "class_requires_finalization_field.h"
7 namespace blink {
9 void NeedsFinalizer::trace(Visitor* visitor)
11 visitor->trace(m_as);
12 A::trace(visitor);
15 void AlsoNeedsFinalizer::trace(Visitor* visitor)
17 visitor->trace(m_bs);
18 A::trace(visitor);
21 void DoesNotNeedFinalizer::trace(Visitor* visitor)
23 visitor->trace(m_bs);
24 A::trace(visitor);
27 void AlsoDoesNotNeedFinalizer::trace(Visitor* visitor)
29 visitor->trace(m_as);
30 visitor->trace(m_cs);
31 A::trace(visitor);