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

Unified Diff: third_party/WebKit/Source/platform/heap/CallbackStack.h

Issue 1609943003: Make platform/heap to use USING_FAST_MALLOC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed compile error Created 4 years, 11 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: third_party/WebKit/Source/platform/heap/CallbackStack.h
diff --git a/third_party/WebKit/Source/platform/heap/CallbackStack.h b/third_party/WebKit/Source/platform/heap/CallbackStack.h
index 0df035438c4904e45366b25d0991d20cf6da9a25..0d60ebc3da73d0ae7f40f3fdca1ab4f4db56057d 100644
--- a/third_party/WebKit/Source/platform/heap/CallbackStack.h
+++ b/third_party/WebKit/Source/platform/heap/CallbackStack.h
@@ -6,6 +6,7 @@
#define CallbackStack_h
#include "platform/heap/ThreadState.h"
+#include "wtf/Allocator.h"
#include "wtf/Assertions.h"
namespace blink {
@@ -15,9 +16,11 @@ namespace blink {
// If more space is needed a new CallbackStack instance is created and chained
// together with the former instance. I.e. a logical CallbackStack can be made of
// multiple chained CallbackStack object instances.
-class CallbackStack {
+class CallbackStack final {
+ USING_FAST_MALLOC(CallbackStack);
public:
class Item {
+ DISALLOW_NEW();
public:
Item() { }
Item(void* object, VisitorCallback callback)
@@ -54,6 +57,7 @@ private:
static const size_t blockSize = 8192;
class Block {
+ USING_FAST_MALLOC(Block);
public:
explicit Block(Block* next)
: m_limit(&(m_buffer[blockSize]))

Powered by Google App Engine
This is Rietveld 408576698