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

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

Issue 765673004: Oilpan: support eager tracing of objects when marking. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Re-introduce TraceEagerly Created 6 years 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 | « no previous file | Source/platform/heap/Heap.cpp » ('j') | Source/platform/heap/Heap.cpp » ('J')
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 943 matching lines...) Expand 10 before | Expand all | Expand 10 after
954 private: 954 private:
955 955
956 #define DEFINE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(type) \ 956 #define DEFINE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(type) \
957 type::~type() { } 957 type::~type() { }
958 958
959 #define DEFINE_STATIC_REF_WILL_BE_PERSISTENT(type, name, arguments) \ 959 #define DEFINE_STATIC_REF_WILL_BE_PERSISTENT(type, name, arguments) \
960 DEFINE_STATIC_REF(type, name, arguments) 960 DEFINE_STATIC_REF(type, name, arguments)
961 961
962 #endif // ENABLE(OILPAN) 962 #endif // ENABLE(OILPAN)
963 963
964 template<typename T, typename U, typename V, typename W, typename X>
965 class TraceEagerlyTrait<HeapHashMap<T, U, V, W, X> > {
966 public:
967 static const bool value = IS_EAGERLY_TRACED_HEAP_COLLECTION(T) || IS_EAGERLY _TRACED_HEAP_COLLECTION(U);
968 };
969
970 template<typename T, typename U, typename V>
971 class TraceEagerlyTrait<HeapHashSet<T, U, V> > {
972 public:
973 static const bool value = IS_EAGERLY_TRACED_HEAP_COLLECTION(T);
974 };
975
976 template<typename T, typename U, typename V>
977 class TraceEagerlyTrait<HeapLinkedHashSet<T, U, V> > {
978 public:
979 static const bool value = IS_EAGERLY_TRACED_HEAP_COLLECTION(T);
980 };
981
982 template<typename T, size_t inlineCapacity, typename U>
983 class TraceEagerlyTrait<HeapListHashSet<T, inlineCapacity, U> > {
984 public:
985 static const bool value = IS_EAGERLY_TRACED_HEAP_COLLECTION(T);
986 };
987
988 template<typename T, size_t inlineCapacity>
989 class TraceEagerlyTrait<HeapVector<T, inlineCapacity> > {
990 public:
991 static const bool value = IS_EAGERLY_TRACED_HEAP_COLLECTION(T);
992 };
993
994 template<typename T, typename U>
995 class TraceEagerlyTrait<HeapVectorBacking<T, U> > {
996 public:
997 static const bool value = IS_EAGERLY_TRACED_HEAP_COLLECTION(T);
998 };
999
1000 template<typename T, size_t inlineCapacity>
1001 class TraceEagerlyTrait<HeapDeque<T, inlineCapacity> > {
1002 public:
1003 static const bool value = IS_EAGERLY_TRACED_HEAP_COLLECTION(T);
1004 };
1005
1006 template<typename T, typename U, typename V>
1007 class TraceEagerlyTrait<HeapHashCountedSet<T, U, V> > {
1008 public:
1009 static const bool value = IS_EAGERLY_TRACED_HEAP_COLLECTION(T);
1010 };
1011
964 } // namespace blink 1012 } // namespace blink
965 1013
966 namespace WTF { 1014 namespace WTF {
967 1015
968 template <typename T> struct VectorTraits<blink::Member<T> > : VectorTraitsBase< blink::Member<T> > { 1016 template <typename T> struct VectorTraits<blink::Member<T> > : VectorTraitsBase< blink::Member<T> > {
969 static const bool needsDestruction = false; 1017 static const bool needsDestruction = false;
970 static const bool canInitializeWithMemset = true; 1018 static const bool canInitializeWithMemset = true;
971 static const bool canMoveWithMemcpy = true; 1019 static const bool canMoveWithMemcpy = true;
972 }; 1020 };
973 1021
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
1151 template<typename T> 1199 template<typename T>
1152 struct ParamStorageTraits<RawPtr<T> > : public PointerParamStorageTraits<T*, bli nk::IsGarbageCollectedType<T>::value> { 1200 struct ParamStorageTraits<RawPtr<T> > : public PointerParamStorageTraits<T*, bli nk::IsGarbageCollectedType<T>::value> {
1153 }; 1201 };
1154 1202
1155 template<typename T> 1203 template<typename T>
1156 PassRefPtr<T> adoptRef(blink::RefCountedGarbageCollected<T>*) = delete; 1204 PassRefPtr<T> adoptRef(blink::RefCountedGarbageCollected<T>*) = delete;
1157 1205
1158 } // namespace WTF 1206 } // namespace WTF
1159 1207
1160 #endif 1208 #endif
OLDNEW
« no previous file with comments | « no previous file | Source/platform/heap/Heap.cpp » ('j') | Source/platform/heap/Heap.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698