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

Unified Diff: third_party/WebKit/Source/platform/heap/Visitor.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/Visitor.h
diff --git a/third_party/WebKit/Source/platform/heap/Visitor.h b/third_party/WebKit/Source/platform/heap/Visitor.h
index c65907728e1f115ccd2c8b95dc6f359b79f05c7e..0465bad304fad79bdfad387b36f9bfa8963cea93 100644
--- a/third_party/WebKit/Source/platform/heap/Visitor.h
+++ b/third_party/WebKit/Source/platform/heap/Visitor.h
@@ -35,6 +35,7 @@
#include "platform/heap/GarbageCollected.h"
#include "platform/heap/StackFrameDepth.h"
#include "platform/heap/ThreadState.h"
+#include "wtf/Allocator.h"
#include "wtf/Assertions.h"
#include "wtf/Atomics.h"
#include "wtf/Deque.h"
@@ -60,6 +61,7 @@ class Visitor;
// in header files where we have only forward declarations of classes.
template<typename T, void (T::*method)(Visitor*)>
struct TraceMethodDelegate {
+ STATIC_ONLY(TraceMethodDelegate);
static void trampoline(Visitor* visitor, void* self)
{
(reinterpret_cast<T*>(self)->*method)(visitor);
@@ -388,6 +390,7 @@ private:
#if ENABLE(DETAILED_MEMORY_INFRA)
template<typename T>
struct TypenameStringTrait {
+ STATIC_ONLY(TypenameStringTrait);
static const String get()
{
return WTF::extractTypeNameFromFunctionName(WTF::extractNameFunction<T>());

Powered by Google App Engine
This is Rietveld 408576698