Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(10)

Side by Side Diff: third_party/WebKit/Source/wtf/LinkedHashSet.h

Issue 1863753002: Remove ENABLE(OILPAN) uses in wtf/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More comment syncing Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/wtf/HashTable.h ('k') | third_party/WebKit/Source/wtf/ListHashSet.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 */
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/wtf/HashTable.h ('k') | third_party/WebKit/Source/wtf/ListHashSet.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698