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

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

Issue 2531973002: Simple BlinkGC heap compaction. (Closed)
Patch Set: tweak assert Created 4 years 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/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();
}

Powered by Google App Engine
This is Rietveld 408576698