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

Side by Side Diff: Source/platform/heap/Handle.h

Issue 403333002: [oilpan]: Remove support for tracing off-heap hashmaps. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: add GC_PLUGIN_IGNORE Created 6 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « Source/platform/Supplementable.h ('k') | Source/platform/heap/HeapTest.cpp » ('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) 2014 Google Inc. All rights reserved. 2 * Copyright (C) 2014 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 832 matching lines...) Expand 10 before | Expand all | Expand 10 after
843 #define WillBePersistentHeapHashCountedSet blink::PersistentHeapHashCountedSet 843 #define WillBePersistentHeapHashCountedSet blink::PersistentHeapHashCountedSet
844 #define WillBeGarbageCollectedMixin blink::GarbageCollectedMixin 844 #define WillBeGarbageCollectedMixin blink::GarbageCollectedMixin
845 #define WillBeHeapSupplement blink::HeapSupplement 845 #define WillBeHeapSupplement blink::HeapSupplement
846 #define WillBeHeapSupplementable blink::HeapSupplementable 846 #define WillBeHeapSupplementable blink::HeapSupplementable
847 #define WillBePersistentHeapSupplementable blink::PersistentHeapSupplementable 847 #define WillBePersistentHeapSupplementable blink::PersistentHeapSupplementable
848 #define WillBeHeapTerminatedArray blink::HeapTerminatedArray 848 #define WillBeHeapTerminatedArray blink::HeapTerminatedArray
849 #define WillBeHeapTerminatedArrayBuilder blink::HeapTerminatedArrayBuilder 849 #define WillBeHeapTerminatedArrayBuilder blink::HeapTerminatedArrayBuilder
850 #define WillBeHeapLinkedStack blink::HeapLinkedStack 850 #define WillBeHeapLinkedStack blink::HeapLinkedStack
851 #define PersistentHeapHashSetWillBeHeapHashSet blink::HeapHashSet 851 #define PersistentHeapHashSetWillBeHeapHashSet blink::HeapHashSet
852 #define PersistentHeapDequeWillBeHeapDeque blink::HeapDeque 852 #define PersistentHeapDequeWillBeHeapDeque blink::HeapDeque
853 #define PersistentHeapVectorWillBeHeapVector blink::HeapVector
853 854
854 template<typename T> PassRefPtrWillBeRawPtr<T> adoptRefWillBeNoop(T* ptr) 855 template<typename T> PassRefPtrWillBeRawPtr<T> adoptRefWillBeNoop(T* ptr)
855 { 856 {
856 static const bool notRefCountedGarbageCollected = !WTF::IsSubclassOfTemplate <typename WTF::RemoveConst<T>::Type, RefCountedGarbageCollected>::value; 857 static const bool notRefCountedGarbageCollected = !WTF::IsSubclassOfTemplate <typename WTF::RemoveConst<T>::Type, RefCountedGarbageCollected>::value;
857 static const bool notRefCounted = !WTF::IsSubclassOfTemplate<typename WTF::R emoveConst<T>::Type, RefCounted>::value; 858 static const bool notRefCounted = !WTF::IsSubclassOfTemplate<typename WTF::R emoveConst<T>::Type, RefCounted>::value;
858 COMPILE_ASSERT(notRefCountedGarbageCollected, useAdoptRefCountedWillBeRefCou ntedGarbageCollected); 859 COMPILE_ASSERT(notRefCountedGarbageCollected, useAdoptRefCountedWillBeRefCou ntedGarbageCollected);
859 COMPILE_ASSERT(notRefCounted, youMustAdopt); 860 COMPILE_ASSERT(notRefCounted, youMustAdopt);
860 return PassRefPtrWillBeRawPtr<T>(ptr); 861 return PassRefPtrWillBeRawPtr<T>(ptr);
861 } 862 }
862 863
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
963 #define WillBePersistentHeapHashCountedSet WTF::HashCountedSet 964 #define WillBePersistentHeapHashCountedSet WTF::HashCountedSet
964 #define WillBeGarbageCollectedMixin blink::DummyBase<void> 965 #define WillBeGarbageCollectedMixin blink::DummyBase<void>
965 #define WillBeHeapSupplement blink::Supplement 966 #define WillBeHeapSupplement blink::Supplement
966 #define WillBeHeapSupplementable blink::Supplementable 967 #define WillBeHeapSupplementable blink::Supplementable
967 #define WillBePersistentHeapSupplementable blink::Supplementable 968 #define WillBePersistentHeapSupplementable blink::Supplementable
968 #define WillBeHeapTerminatedArray WTF::TerminatedArray 969 #define WillBeHeapTerminatedArray WTF::TerminatedArray
969 #define WillBeHeapTerminatedArrayBuilder WTF::TerminatedArrayBuilder 970 #define WillBeHeapTerminatedArrayBuilder WTF::TerminatedArrayBuilder
970 #define WillBeHeapLinkedStack WTF::LinkedStack 971 #define WillBeHeapLinkedStack WTF::LinkedStack
971 #define PersistentHeapHashSetWillBeHeapHashSet blink::PersistentHeapHashSet 972 #define PersistentHeapHashSetWillBeHeapHashSet blink::PersistentHeapHashSet
972 #define PersistentHeapDequeWillBeHeapDeque blink::PersistentHeapDeque 973 #define PersistentHeapDequeWillBeHeapDeque blink::PersistentHeapDeque
974 #define PersistentHeapVectorWillBeHeapVector blink::PersistentHeapVector
973 975
974 template<typename T> PassRefPtrWillBeRawPtr<T> adoptRefWillBeNoop(T* ptr) { retu rn adoptRef(ptr); } 976 template<typename T> PassRefPtrWillBeRawPtr<T> adoptRefWillBeNoop(T* ptr) { retu rn adoptRef(ptr); }
975 template<typename T> PassRefPtrWillBeRawPtr<T> adoptRefWillBeRefCountedGarbageCo llected(T* ptr) { return adoptRef(ptr); } 977 template<typename T> PassRefPtrWillBeRawPtr<T> adoptRefWillBeRefCountedGarbageCo llected(T* ptr) { return adoptRef(ptr); }
976 template<typename T> PassRefPtrWillBeRawPtr<T> adoptRefWillBeThreadSafeRefCounte dGarbageCollected(T* ptr) { return adoptRef(ptr); } 978 template<typename T> PassRefPtrWillBeRawPtr<T> adoptRefWillBeThreadSafeRefCounte dGarbageCollected(T* ptr) { return adoptRef(ptr); }
977 template<typename T> PassOwnPtrWillBeRawPtr<T> adoptPtrWillBeNoop(T* ptr) { retu rn adoptPtr(ptr); } 979 template<typename T> PassOwnPtrWillBeRawPtr<T> adoptPtrWillBeNoop(T* ptr) { retu rn adoptPtr(ptr); }
978 template<typename T> PassOwnPtrWillBeRawPtr<T> adoptPtrWillBeRefCountedGarbageCo llected(T* ptr) { return adoptPtr(ptr); } 980 template<typename T> PassOwnPtrWillBeRawPtr<T> adoptPtrWillBeRefCountedGarbageCo llected(T* ptr) { return adoptPtr(ptr); }
979 981
980 template<typename T> T* adoptRefCountedGarbageCollectedWillBeNoop(T* ptr) 982 template<typename T> T* adoptRefCountedGarbageCollectedWillBeNoop(T* ptr)
981 { 983 {
982 static const bool isRefCountedGarbageCollected = WTF::IsSubclassOfTemplate<t ypename WTF::RemoveConst<T>::Type, RefCountedGarbageCollected>::value; 984 static const bool isRefCountedGarbageCollected = WTF::IsSubclassOfTemplate<t ypename WTF::RemoveConst<T>::Type, RefCountedGarbageCollected>::value;
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
1190 struct ParamStorageTraits<T*> : public PointerParamStorageTraits<T*, blink::IsGa rbageCollectedType<T>::value> { 1192 struct ParamStorageTraits<T*> : public PointerParamStorageTraits<T*, blink::IsGa rbageCollectedType<T>::value> {
1191 }; 1193 };
1192 1194
1193 template<typename T> 1195 template<typename T>
1194 struct ParamStorageTraits<RawPtr<T> > : public PointerParamStorageTraits<T*, bli nk::IsGarbageCollectedType<T>::value> { 1196 struct ParamStorageTraits<RawPtr<T> > : public PointerParamStorageTraits<T*, bli nk::IsGarbageCollectedType<T>::value> {
1195 }; 1197 };
1196 1198
1197 } // namespace WTF 1199 } // namespace WTF
1198 1200
1199 #endif 1201 #endif
OLDNEW
« no previous file with comments | « Source/platform/Supplementable.h ('k') | Source/platform/heap/HeapTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698