| 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 | |
| 70 void unlink() { | 69 void unlink() { |
| 71 if (!m_next) | 70 if (!m_next) |
| 72 return; | 71 return; |
| 73 ASSERT(m_prev); | 72 ASSERT(m_prev); |
| 74 ASSERT(m_next->m_prev == this); | 73 ASSERT(m_next->m_prev == this); |
| 75 ASSERT(m_prev->m_next == this); | 74 ASSERT(m_prev->m_next == this); |
| 76 m_next->m_prev = m_prev; | 75 m_next->m_prev = m_prev; |
| 77 m_prev->m_next = m_next; | 76 m_prev->m_next = m_next; |
| 78 } | 77 } |
| 79 | 78 |
| (...skipping 788 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 868 swap(static_cast<Base&>(a), static_cast<Base&>(b)); | 867 swap(static_cast<Base&>(a), static_cast<Base&>(b)); |
| 869 swap(a.m_value, b.m_value); | 868 swap(a.m_value, b.m_value); |
| 870 Allocator::leaveGCForbiddenScope(); | 869 Allocator::leaveGCForbiddenScope(); |
| 871 } | 870 } |
| 872 | 871 |
| 873 } // namespace WTF | 872 } // namespace WTF |
| 874 | 873 |
| 875 using WTF::LinkedHashSet; | 874 using WTF::LinkedHashSet; |
| 876 | 875 |
| 877 #endif /* WTF_LinkedHashSet_h */ | 876 #endif /* WTF_LinkedHashSet_h */ |
| OLD | NEW |