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

Unified Diff: Source/core/fetch/MemoryCache.h

Issue 1310643003: Make classes and structures in core/events and core/fetch fast-allocated. (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/core/fetch/MemoryCache.h
diff --git a/Source/core/fetch/MemoryCache.h b/Source/core/fetch/MemoryCache.h
index d7c4465aec6ad6ba0a286427463ac698aceb2107..92664bd164a14164a5a4f453c3361ac3aa586616 100644
--- a/Source/core/fetch/MemoryCache.h
+++ b/Source/core/fetch/MemoryCache.h
@@ -29,6 +29,7 @@
#include "core/fetch/Resource.h"
#include "core/fetch/ResourcePtr.h"
#include "public/platform/WebThread.h"
+#include "wtf/Allocator.h"
#include "wtf/HashMap.h"
#include "wtf/Noncopyable.h"
#include "wtf/Vector.h"
@@ -137,6 +138,7 @@ public:
DECLARE_TRACE();
struct TypeStatistic {
+ STACK_ALLOCATED();
size_t count;
size_t size;
size_t liveSize;
@@ -162,6 +164,7 @@ public:
};
struct Statistics {
+ STACK_ALLOCATED();
TypeStatistic images;
TypeStatistic cssStyleSheets;
TypeStatistic scripts;

Powered by Google App Engine
This is Rietveld 408576698