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

Unified Diff: third_party/WebKit/Source/wtf/Allocator.h

Issue 2694283003: Annotate ScriptWrappable-embedding singletons.
Patch Set: add XPathValue singleton Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/wtf/Allocator.h
diff --git a/third_party/WebKit/Source/wtf/Allocator.h b/third_party/WebKit/Source/wtf/Allocator.h
index 5aacf776cee91fdc08040ce0a390330840d003ab..e829ef2037edca767b69f2a00d5ad47e4af5b540 100644
--- a/third_party/WebKit/Source/wtf/Allocator.h
+++ b/third_party/WebKit/Source/wtf/Allocator.h
@@ -82,6 +82,13 @@ namespace WTF {
#define STACK_ALLOCATED() DISALLOW_NEW()
#endif
+#if COMPILER(CLANG)
+#define STATIC_ALLOCATED_SINGLETON() \
+ __attribute__((annotate("blink_gc_singleton_type")))
+#else
+#define STATIC_ALLOCATED_SINGLETON()
+#endif
+
// Provides customizable overrides of fastMalloc/fastFree and operator
// new/delete
//
« no previous file with comments | « third_party/WebKit/Source/modules/mediasource/MediaSourceRegistry.cpp ('k') | third_party/WebKit/Source/wtf/StdLibExtras.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698