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

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

Issue 2531973002: Simple BlinkGC heap compaction. (Closed)
Patch Set: Clear unused pages before decommitting 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/MarkingVisitorImpl.h
diff --git a/third_party/WebKit/Source/platform/heap/MarkingVisitorImpl.h b/third_party/WebKit/Source/platform/heap/MarkingVisitorImpl.h
index 5d63592e92ef1e2454323576fc57533e3e97831d..22c5cbd0900f82fb1bd0f71293c41dabc645cde5 100644
--- a/third_party/WebKit/Source/platform/heap/MarkingVisitorImpl.h
+++ b/third_party/WebKit/Source/platform/heap/MarkingVisitorImpl.h
@@ -88,6 +88,21 @@ class MarkingVisitorImpl {
}
#endif
+ inline void registerMovingObjectReference(MovableReference* slot) {
+ if (toDerived()->getMarkingMode() != Visitor::GlobalMarkingWithCompaction)
+ return;
+ toDerived()->heap().registerMovingObjectReference(slot);
+ }
+
+ inline void registerMovingObjectCallback(MovableReference reference,
+ MovingObjectCallback callback,
+ void* callbackData) {
+ if (toDerived()->getMarkingMode() != Visitor::GlobalMarkingWithCompaction)
+ return;
+ toDerived()->heap().registerMovingObjectCallback(reference, callback,
+ callbackData);
+ }
+
inline bool ensureMarked(const void* objectPointer) {
if (!objectPointer)
return false;

Powered by Google App Engine
This is Rietveld 408576698