Index: third_party/WebKit/Source/platform/heap/HeapAllocator.h |
diff --git a/third_party/WebKit/Source/platform/heap/HeapAllocator.h b/third_party/WebKit/Source/platform/heap/HeapAllocator.h |
index 765113be0132ce3988d7ebc4de497b3f6628254c..7d23b2cb0436195b7862bd7d53019fb0e06ad7e8 100644 |
--- a/third_party/WebKit/Source/platform/heap/HeapAllocator.h |
+++ b/third_party/WebKit/Source/platform/heap/HeapAllocator.h |
@@ -188,6 +188,20 @@ class PLATFORM_EXPORT HeapAllocator { |
} |
#endif |
+ template <typename T, typename VisitorDispatcher> |
+ static void registerBackingStoreReference(VisitorDispatcher visitor, |
+ T** slot) { |
+ visitor->registerBackingStoreReference(slot); |
+ } |
+ |
+ template <typename T, typename VisitorDispatcher> |
+ static void registerBackingStoreCallback(VisitorDispatcher visitor, |
+ T* backingStore, |
+ MovingObjectCallback callback, |
+ void* callbackData) { |
+ visitor->registerBackingStoreCallback(backingStore, callback, callbackData); |
+ } |
+ |
static void enterGCForbiddenScope() { |
ThreadState::current()->enterGCForbiddenScope(); |
} |