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

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

Issue 1477023003: Refactor the Heap into ThreadHeap to prepare for per thread heaps Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 months 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 bc3d4977e91c71c2924f091f2457ce50f0b1ae45..c9534071fe98926201482552b97e9d3fa32ad154 100644
--- a/third_party/WebKit/Source/platform/heap/MarkingVisitorImpl.h
+++ b/third_party/WebKit/Source/platform/heap/MarkingVisitorImpl.h
@@ -46,7 +46,7 @@ protected:
header->mark();
if (callback)
- Heap::pushTraceCallback(const_cast<void*>(objectPointer), callback);
+ toDerived()->heap().pushTraceCallback(const_cast<void*>(objectPointer), callback);
}
inline void mark(const void* objectPointer, TraceCallback callback)
@@ -60,7 +60,7 @@ protected:
inline void registerDelayedMarkNoTracing(const void* objectPointer)
{
ASSERT(toDerived()->getMarkingMode() != Visitor::WeakProcessing);
- Heap::pushPostMarkingCallback(const_cast<void*>(objectPointer), &markNoTracingCallback);
+ toDerived()->heap().pushPostMarkingCallback(const_cast<void*>(objectPointer), &markNoTracingCallback);
}
inline void registerWeakMembers(const void* closure, const void* objectPointer, WeakCallback callback)
@@ -69,19 +69,19 @@ protected:
// We don't want to run weak processings when taking a snapshot.
if (toDerived()->getMarkingMode() == Visitor::SnapshotMarking)
return;
- Heap::pushThreadLocalWeakCallback(const_cast<void*>(closure), const_cast<void*>(objectPointer), callback);
+ toDerived()->heap().pushThreadLocalWeakCallback(const_cast<void*>(closure), const_cast<void*>(objectPointer), callback);
}
inline void registerWeakTable(const void* closure, EphemeronCallback iterationCallback, EphemeronCallback iterationDoneCallback)
{
ASSERT(toDerived()->getMarkingMode() != Visitor::WeakProcessing);
- Heap::registerWeakTable(const_cast<void*>(closure), iterationCallback, iterationDoneCallback);
+ toDerived()->heap().registerWeakTable(const_cast<void*>(closure), iterationCallback, iterationDoneCallback);
}
#if ENABLE(ASSERT)
inline bool weakTableRegistered(const void* closure)
{
- return Heap::weakTableRegistered(closure);
+ return toDerived()->heap().weakTableRegistered(closure);
}
#endif
@@ -119,7 +119,7 @@ protected:
// We don't want to run weak processings when taking a snapshot.
if (toDerived()->getMarkingMode() == Visitor::SnapshotMarking)
return;
- Heap::pushGlobalWeakCallback(cell, callback);
+ toDerived()->heap().pushGlobalWeakCallback(cell, callback);
}
private:

Powered by Google App Engine
This is Rietveld 408576698