| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef Member_h | 5 #ifndef Member_h |
| 6 #define Member_h | 6 #define Member_h |
| 7 | 7 |
| 8 #include "wtf/Allocator.h" | 8 #include "wtf/Allocator.h" |
| 9 #include "wtf/HashFunctions.h" | 9 #include "wtf/HashFunctions.h" |
| 10 #include "wtf/HashTraits.h" |
| 10 | 11 |
| 11 namespace blink { | 12 namespace blink { |
| 12 | 13 |
| 13 template<typename T> class Persistent; | 14 template<typename T> class Persistent; |
| 14 | 15 |
| 15 // Members are used in classes to contain strong pointers to other oilpan heap | 16 // Members are used in classes to contain strong pointers to other oilpan heap |
| 16 // allocated objects. | 17 // allocated objects. |
| 17 // All Member fields of a class must be traced in the class' trace method. | 18 // All Member fields of a class must be traced in the class' trace method. |
| 18 // During the mark phase of the GC all live objects are marked as live and | 19 // During the mark phase of the GC all live objects are marked as live and |
| 19 // all Member fields of a live object will be traced marked as live as well. | 20 // all Member fields of a live object will be traced marked as live as well. |
| (...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 314 | 315 |
| 315 template<typename T> | 316 template<typename T> |
| 316 struct IsTraceable<blink::WeakMember<T>> { | 317 struct IsTraceable<blink::WeakMember<T>> { |
| 317 STATIC_ONLY(IsTraceable); | 318 STATIC_ONLY(IsTraceable); |
| 318 static const bool value = true; | 319 static const bool value = true; |
| 319 }; | 320 }; |
| 320 | 321 |
| 321 } // namespace WTF | 322 } // namespace WTF |
| 322 | 323 |
| 323 #endif // Member_h | 324 #endif // Member_h |
| 324 | |
| OLD | NEW |