OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2005, 2006, 2007, 2008, 2011, 2012 Apple Inc. All rights | 2 * Copyright (C) 2005, 2006, 2007, 2008, 2011, 2012 Apple Inc. All rights |
3 * reserved. | 3 * reserved. |
4 * Copyright (C) 2011, Benjamin Poulain <ikipou@gmail.com> | 4 * Copyright (C) 2011, Benjamin Poulain <ikipou@gmail.com> |
5 * | 5 * |
6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
10 * | 10 * |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 struct LinkedHashSetExtractor; | 59 struct LinkedHashSetExtractor; |
60 template <typename Value, typename ValueTraits, typename Allocator> | 60 template <typename Value, typename ValueTraits, typename Allocator> |
61 struct LinkedHashSetTraits; | 61 struct LinkedHashSetTraits; |
62 | 62 |
63 class LinkedHashSetNodeBase { | 63 class LinkedHashSetNodeBase { |
64 DISALLOW_NEW(); | 64 DISALLOW_NEW(); |
65 | 65 |
66 public: | 66 public: |
67 LinkedHashSetNodeBase() : m_prev(this), m_next(this) {} | 67 LinkedHashSetNodeBase() : m_prev(this), m_next(this) {} |
68 | 68 |
69 NO_LAZY_SWEEP_SANITIZE_ADDRESS | 69 NO_SANITIZE_ADDRESS |
70 void unlink() { | 70 void unlink() { |
71 if (!m_next) | 71 if (!m_next) |
72 return; | 72 return; |
73 ASSERT(m_prev); | 73 ASSERT(m_prev); |
74 ASSERT(m_next->m_prev == this); | 74 ASSERT(m_next->m_prev == this); |
75 ASSERT(m_prev->m_next == this); | 75 ASSERT(m_prev->m_next == this); |
76 m_next->m_prev = m_prev; | 76 m_next->m_prev = m_prev; |
77 m_prev->m_next = m_next; | 77 m_prev->m_next = m_next; |
78 } | 78 } |
79 | 79 |
(...skipping 788 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
868 swap(static_cast<Base&>(a), static_cast<Base&>(b)); | 868 swap(static_cast<Base&>(a), static_cast<Base&>(b)); |
869 swap(a.m_value, b.m_value); | 869 swap(a.m_value, b.m_value); |
870 Allocator::leaveGCForbiddenScope(); | 870 Allocator::leaveGCForbiddenScope(); |
871 } | 871 } |
872 | 872 |
873 } // namespace WTF | 873 } // namespace WTF |
874 | 874 |
875 using WTF::LinkedHashSet; | 875 using WTF::LinkedHashSet; |
876 | 876 |
877 #endif /* WTF_LinkedHashSet_h */ | 877 #endif /* WTF_LinkedHashSet_h */ |
OLD | NEW |