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

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: Fixed patch conflict 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
« no previous file with comments | « Source/bindings/core/v8/ScriptValue.h ('k') | Source/bindings/core/v8/SerializedScriptValueFactory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..3b2bb63b4e6f562c4e63045a2ff654178ae406b5 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)
{
@@ -70,6 +71,7 @@ private:
// need to rehash after every garbage collection because a key object may have been moved.
template<typename G>
struct V8HandlePtrHash {
+ STATIC_ONLY(V8HandlePtrHash);
static v8::Local<G> unsafeHandleFromRawValue(const G* value)
{
const v8::Local<G>* handle = reinterpret_cast<const v8::Local<G>*>(&value);
@@ -209,6 +211,7 @@ public:
protected:
class StateBase {
+ WTF_MAKE_FAST_ALLOCATED(StateBase);
WTF_MAKE_NONCOPYABLE(StateBase);
public:
virtual ~StateBase() { }
« no previous file with comments | « Source/bindings/core/v8/ScriptValue.h ('k') | Source/bindings/core/v8/SerializedScriptValueFactory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698