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

Unified Diff: third_party/WebKit/Source/platform/heap/Heap.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/Heap.h
diff --git a/third_party/WebKit/Source/platform/heap/Heap.h b/third_party/WebKit/Source/platform/heap/Heap.h
index 84753b2b9c76aff95e132ba5fdeac79979319f7d..d60fef7ed4a557f697dbd83f9e767272398c8986 100644
--- a/third_party/WebKit/Source/platform/heap/Heap.h
+++ b/third_party/WebKit/Source/platform/heap/Heap.h
@@ -38,6 +38,7 @@
#include "platform/heap/ThreadState.h"
#include "platform/heap/Visitor.h"
#include "wtf/AddressSanitizer.h"
+#include "wtf/Allocator.h"
#include "wtf/Assertions.h"
#include "wtf/Atomics.h"
#include "wtf/Forward.h"
@@ -53,6 +54,7 @@ template<typename T, bool = NeedsAdjustAndMark<T>::value> class ObjectAliveTrait
template<typename T>
class ObjectAliveTrait<T, false> {
+ STATIC_ONLY(ObjectAliveTrait);
public:
static bool isHeapObjectAlive(T* object)
{
@@ -63,6 +65,7 @@ public:
template<typename T>
class ObjectAliveTrait<T, true> {
+ STATIC_ONLY(ObjectAliveTrait);
public:
static bool isHeapObjectAlive(T* object)
{
@@ -72,6 +75,7 @@ public:
};
class PLATFORM_EXPORT Heap {
+ STATIC_ONLY(Heap);
public:
static void init();
static void shutdown();
@@ -302,6 +306,7 @@ private:
template<typename T>
struct IsEagerlyFinalizedType {
+ STATIC_ONLY(IsEagerlyFinalizedType);
private:
typedef char YesType;
struct NoType {
@@ -406,6 +411,7 @@ public: \
#define IS_EAGERLY_FINALIZED() (pageFromObject(this)->heap()->heapIndex() == BlinkGC::EagerSweepHeapIndex)
#if ENABLE(ASSERT) && ENABLE(OILPAN)
class VerifyEagerFinalization {
+ DISALLOW_NEW();
public:
~VerifyEagerFinalization()
{

Powered by Google App Engine
This is Rietveld 408576698