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

Unified Diff: Source/bindings/core/v8/ScriptValueSerializer.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/ScriptValueSerializer.h
diff --git a/Source/bindings/core/v8/ScriptValueSerializer.h b/Source/bindings/core/v8/ScriptValueSerializer.h
index f34986b724d0637f1efa689f6ab69375a85d931b..e16b14ab85980835ca9e01b7c94a111660e408d5 100644
--- a/Source/bindings/core/v8/ScriptValueSerializer.h
+++ b/Source/bindings/core/v8/ScriptValueSerializer.h
@@ -36,6 +36,7 @@ typedef Vector<WTF::ArrayBufferContents, 1> ArrayBufferContentsArray;
// map.set(obj, 42);
template<typename GCObject, typename T>
class V8ObjectMap {
+ STACK_ALLOCATED();
public:
bool contains(const v8::Local<GCObject>& handle)
{
@@ -86,6 +87,7 @@ private:
}
// For HashArg.
static const bool safeToCompareToEmptyOrDeleted = false;
+ STATIC_ONLY(V8HandlePtrHash);
};
typedef WTF::HashMap<GCObject*, T, V8HandlePtrHash<GCObject>> HandleToT;
@@ -209,6 +211,7 @@ public:
protected:
class StateBase {
+ WTF_MAKE_FAST_ALLOCATED(StateBase);
WTF_MAKE_NONCOPYABLE(StateBase);
public:
virtual ~StateBase() { }

Powered by Google App Engine
This is Rietveld 408576698