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

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

Issue 2688083002: Move VisitorMarkingMode into Visitor. (Closed)
Patch Set: Created 3 years, 10 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/ThreadState.cpp
diff --git a/third_party/WebKit/Source/platform/heap/ThreadState.cpp b/third_party/WebKit/Source/platform/heap/ThreadState.cpp
index 5ab3d6660fd11d75446f60888fbf8dab9410563f..1abc179cb463ba423bbbcc3a3e8725b1b4cc13ca 100644
--- a/third_party/WebKit/Source/platform/heap/ThreadState.cpp
+++ b/third_party/WebKit/Source/platform/heap/ThreadState.cpp
@@ -378,7 +378,7 @@ void ThreadState::threadLocalWeakProcessing() {
GCForbiddenScope gcForbiddenScope(this);
std::unique_ptr<Visitor> visitor =
- Visitor::create(this, VisitorMarkingMode::WeakProcessing);
+ Visitor::create(this, Visitor::WeakProcessing);
// Perform thread-specific weak processing.
while (popAndInvokeThreadLocalWeakCallback(visitor.get())) {
@@ -1579,16 +1579,15 @@ void ThreadState::collectGarbage(BlinkGC::StackState stackState,
std::unique_ptr<Visitor> visitor;
if (gcType == BlinkGC::TakeSnapshot) {
- visitor = Visitor::create(this, VisitorMarkingMode::SnapshotMarking);
+ visitor = Visitor::create(this, Visitor::SnapshotMarking);
} else {
DCHECK(gcType == BlinkGC::GCWithSweep ||
gcType == BlinkGC::GCWithoutSweep);
if (heap().compaction()->shouldCompact(this, gcType, reason)) {
heap().compaction()->initialize(this);
- visitor = Visitor::create(
- this, VisitorMarkingMode::GlobalMarkingWithCompaction);
+ visitor = Visitor::create(this, Visitor::GlobalMarkingWithCompaction);
} else {
- visitor = Visitor::create(this, VisitorMarkingMode::GlobalMarking);
+ visitor = Visitor::create(this, Visitor::GlobalMarking);
}
}
« no previous file with comments | « third_party/WebKit/Source/platform/heap/HeapTest.cpp ('k') | third_party/WebKit/Source/platform/heap/Visitor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698