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

Unified Diff: third_party/WebKit/Source/platform/heap/Heap.cpp

Issue 2570483002: Revert of Simple BlinkGC heap compaction. (Closed)
Patch Set: 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/Heap.cpp
diff --git a/third_party/WebKit/Source/platform/heap/Heap.cpp b/third_party/WebKit/Source/platform/heap/Heap.cpp
index c44068b3756f3ada687e55f6f33ac912a7406f87..b1c035cc51b9069d6c31f29de13d8d4a0e59ecd9 100644
--- a/third_party/WebKit/Source/platform/heap/Heap.cpp
+++ b/third_party/WebKit/Source/platform/heap/Heap.cpp
@@ -35,7 +35,6 @@
#include "platform/ScriptForbiddenScope.h"
#include "platform/heap/BlinkGCMemoryDumpProvider.h"
#include "platform/heap/CallbackStack.h"
-#include "platform/heap/HeapCompact.h"
#include "platform/heap/MarkingVisitor.h"
#include "platform/heap/PageMemory.h"
#include "platform/heap/PagePool.h"
@@ -411,25 +410,6 @@
m_postMarkingCallbackStack->commit();
m_globalWeakCallbackStack->commit();
m_ephemeronStack->commit();
-}
-
-HeapCompact* ThreadHeap::compaction() {
- if (!m_compaction)
- m_compaction = HeapCompact::create();
- return m_compaction.get();
-}
-
-void ThreadHeap::registerMovingObjectReference(MovableReference* slot) {
- DCHECK(slot);
- DCHECK(*slot);
- compaction()->registerMovingObjectReference(slot);
-}
-
-void ThreadHeap::registerMovingObjectCallback(MovableReference reference,
- MovingObjectCallback callback,
- void* callbackData) {
- DCHECK(reference);
- compaction()->registerMovingObjectCallback(reference, callback, callbackData);
}
void ThreadHeap::decommitCallbackStacks() {
« no previous file with comments | « third_party/WebKit/Source/platform/heap/Heap.h ('k') | third_party/WebKit/Source/platform/heap/HeapAllocator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698