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

Unified Diff: Source/bindings/core/v8/V8ValueCache.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/V8ThrowException.h ('k') | Source/bindings/core/v8/WindowProxy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/core/v8/V8ValueCache.h
diff --git a/Source/bindings/core/v8/V8ValueCache.h b/Source/bindings/core/v8/V8ValueCache.h
index a2542f0be67659964dd2d1a18be60690b16199d5..2c4ec572004142bf645a4a9770ab2da7723e5ed8 100644
--- a/Source/bindings/core/v8/V8ValueCache.h
+++ b/Source/bindings/core/v8/V8ValueCache.h
@@ -28,6 +28,7 @@
#include "bindings/core/v8/V8GlobalValueMap.h"
#include "core/CoreExport.h"
+#include "wtf/Allocator.h"
#include "wtf/HashMap.h"
#include "wtf/Noncopyable.h"
#include "wtf/RefPtr.h"
@@ -38,6 +39,7 @@
namespace blink {
class StringCacheMapTraits : public V8GlobalValueMapTraits<StringImpl*, v8::String, v8::kWeakWithParameter> {
+ STATIC_ONLY(StringCacheMapTraits);
public:
// Weak traits:
typedef StringImpl WeakCallbackDataType;
@@ -64,6 +66,7 @@ public:
class CORE_EXPORT StringCache {
+ WTF_MAKE_FAST_ALLOCATED(StringCache);
WTF_MAKE_NONCOPYABLE(StringCache);
public:
explicit StringCache(v8::Isolate* isolate) : m_stringCache(isolate) { }
« no previous file with comments | « Source/bindings/core/v8/V8ThrowException.h ('k') | Source/bindings/core/v8/WindowProxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698