| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2005, 2006, 2007, 2008, 2011, 2012 Apple Inc. All rights reserv
ed. | 2 * Copyright (C) 2005, 2006, 2007, 2008, 2011, 2012 Apple Inc. All rights reserv
ed. |
| 3 * Copyright (C) 2011, Benjamin Poulain <ikipou@gmail.com> | 3 * Copyright (C) 2011, Benjamin Poulain <ikipou@gmail.com> |
| 4 * | 4 * |
| 5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
| 6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
| 7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
| 8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
| 9 * | 9 * |
| 10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
| (...skipping 757 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 768 // wrong to have a GC when only one was swapped and the other still | 768 // wrong to have a GC when only one was swapped and the other still |
| 769 // contained garbage (eg. from a previous use of the same slot). | 769 // contained garbage (eg. from a previous use of the same slot). |
| 770 // Therefore we forbid a GC until both the key and the value are | 770 // Therefore we forbid a GC until both the key and the value are |
| 771 // swapped. | 771 // swapped. |
| 772 Allocator::enterGCForbiddenScope(); | 772 Allocator::enterGCForbiddenScope(); |
| 773 swap(static_cast<Base&>(a), static_cast<Base&>(b)); | 773 swap(static_cast<Base&>(a), static_cast<Base&>(b)); |
| 774 swap(a.m_value, b.m_value); | 774 swap(a.m_value, b.m_value); |
| 775 Allocator::leaveGCForbiddenScope(); | 775 Allocator::leaveGCForbiddenScope(); |
| 776 } | 776 } |
| 777 | 777 |
| 778 #if !ENABLE(OILPAN) | |
| 779 template<typename T, typename U, typename V> | |
| 780 struct NeedsTracing<LinkedHashSet<T, U, V>> { | |
| 781 STATIC_ONLY(NeedsTracing); | |
| 782 static const bool value = false; | |
| 783 }; | |
| 784 #endif | |
| 785 | |
| 786 } // namespace WTF | 778 } // namespace WTF |
| 787 | 779 |
| 788 using WTF::LinkedHashSet; | 780 using WTF::LinkedHashSet; |
| 789 | 781 |
| 790 #endif /* WTF_LinkedHashSet_h */ | 782 #endif /* WTF_LinkedHashSet_h */ |
| OLD | NEW |