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

Unified Diff: Source/bindings/core/v8/WrapperTypeInfo.h

Issue 1278983003: Adding allocator annotations to blink classes and structs. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 4 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: Source/bindings/core/v8/WrapperTypeInfo.h
diff --git a/Source/bindings/core/v8/WrapperTypeInfo.h b/Source/bindings/core/v8/WrapperTypeInfo.h
index ee3b098ce79bf9d33be3b1c733619a78cfead8e2..72227a680ee64fe14121d2a92191b46a0cb2f9c7 100644
--- a/Source/bindings/core/v8/WrapperTypeInfo.h
+++ b/Source/bindings/core/v8/WrapperTypeInfo.h
@@ -33,6 +33,7 @@
#include "gin/public/wrapper_info.h"
#include "platform/heap/Handle.h"
+#include "wtf/Allocator.h"
#include "wtf/Assertions.h"
#include <v8.h>
@@ -203,6 +204,8 @@ struct WrapperTypeInfo {
const unsigned eventTargetInheritance : 1; // EventTargetInheritance
const unsigned lifetime : 1; // Lifetime
const unsigned gcType : 2; // GCType
+
+ DISALLOW_ALLOCATION();
haraken 2015/08/12 07:56:12 Move this to the top of the class/struct declarati
tasak 2015/08/12 09:13:26 Done.
};
static_assert(offsetof(struct WrapperTypeInfo, ginEmbedder) == offsetof(struct gin::WrapperInfo, embedder), "offset of WrapperTypeInfo.ginEmbedder must be the same as gin::WrapperInfo.embedder");

Powered by Google App Engine
This is Rietveld 408576698