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

Side by Side Diff: tools/clang/blink_gc_plugin/tests/heap/stubs.h

Issue 2061143002: gc plugin: remove ScriptWrappable destructor special case. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 | « tools/clang/blink_gc_plugin/tests/class_requires_finalization_mixin.h ('k') | no next file » | 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 HEAP_STUBS_H_ 5 #ifndef HEAP_STUBS_H_
6 #define HEAP_STUBS_H_ 6 #define HEAP_STUBS_H_
7 7
8 #include "stddef.h" 8 #include "stddef.h"
9 9
10 #define WTF_MAKE_FAST_ALLOCATED \ 10 #define WTF_MAKE_FAST_ALLOCATED \
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 virtual void adjustAndMark(Visitor*) const = 0; 236 virtual void adjustAndMark(Visitor*) const = 0;
237 virtual bool isHeapObjectAlive(Visitor*) const = 0; 237 virtual bool isHeapObjectAlive(Visitor*) const = 0;
238 virtual void trace(Visitor*) { } 238 virtual void trace(Visitor*) { }
239 }; 239 };
240 240
241 template<typename T> 241 template<typename T>
242 struct TraceIfNeeded { 242 struct TraceIfNeeded {
243 static void trace(Visitor*, T*); 243 static void trace(Visitor*, T*);
244 }; 244 };
245 245
246 // blink::ScriptWrappable receives special treatment
247 // so as to allow it to be used together with GarbageCollected<T>,
248 // even when its user-declared destructor is provided.
249 // As it is with Oilpan disabled.
250 class ScriptWrappable {
251 public:
252 ~ScriptWrappable() { /* user-declared, thus, non-trivial */ }
253 };
254
255 } 246 }
256 247
257 namespace WTF { 248 namespace WTF {
258 249
259 template<typename T> 250 template<typename T>
260 struct VectorTraits<blink::Member<T> > { 251 struct VectorTraits<blink::Member<T> > {
261 static const bool needsDestruction = false; 252 static const bool needsDestruction = false;
262 }; 253 };
263 254
264 } 255 }
265 256
266 #endif 257 #endif
OLDNEW
« no previous file with comments | « tools/clang/blink_gc_plugin/tests/class_requires_finalization_mixin.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698