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_mixin.h"
9 void MixinFinalizable::trace(Visitor
* visitor
)
11 visitor
->trace(m_onHeap
);
14 void MixinNotFinalizable::trace(Visitor
* visitor
)
16 visitor
->trace(m_onHeap
);
19 void NeedsFinalizer::trace(Visitor
* visitor
)
21 visitor
->trace(m_obj
);
22 MixinFinalizable::trace(visitor
);
25 void HasFinalizer::trace(Visitor
* visitor
)
27 visitor
->trace(m_obj
);
28 MixinFinalizable::trace(visitor
);
31 void NeedsNoFinalization::trace(Visitor
* visitor
)
33 visitor
->trace(m_obj
);
34 MixinNotFinalizable::trace(visitor
);