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>()); |