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

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

Issue 765673004: Oilpan: support eager tracing of objects when marking. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Tidying up 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 | « Source/platform/heap/HeapLinkedStack.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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef HeapTerminatedArray_h 5 #ifndef HeapTerminatedArray_h
6 #define HeapTerminatedArray_h 6 #define HeapTerminatedArray_h
7 7
8 #include "platform/heap/Heap.h" 8 #include "platform/heap/Heap.h"
9 #include "wtf/TerminatedArray.h" 9 #include "wtf/TerminatedArray.h"
10 #include "wtf/TerminatedArrayBuilder.h" 10 #include "wtf/TerminatedArrayBuilder.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 } 42 }
43 }; 43 };
44 44
45 // Prohibit construction. Allocator makes HeapTerminatedArray instances for 45 // Prohibit construction. Allocator makes HeapTerminatedArray instances for
46 // HeapTerminatedArrayBuilder by pointer casting. 46 // HeapTerminatedArrayBuilder by pointer casting.
47 HeapTerminatedArray(); 47 HeapTerminatedArray();
48 48
49 template<typename U, template <typename> class> friend class WTF::Terminated ArrayBuilder; 49 template<typename U, template <typename> class> friend class WTF::Terminated ArrayBuilder;
50 }; 50 };
51 51
52 template<typename T>
53 class TraceEagerlyTrait<HeapTerminatedArray<T> > {
54 public:
55 static const bool value = IS_EAGERLY_TRACED_HEAP_COLLECTION(T);
56 };
57
52 } // namespace blink 58 } // namespace blink
53 59
54 #endif // HeapTerminatedArray_h 60 #endif // HeapTerminatedArray_h
OLDNEW
« no previous file with comments | « Source/platform/heap/HeapLinkedStack.h ('k') | Source/platform/heap/HeapTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698