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

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

Issue 1753623002: Merge VisitorScope to Visitor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 664912e0808a04039fe4dfcf05f5456d0f8f4160..0d2254fd5c83231cfb4057e948b53fe4a05f88c1 100644
--- a/third_party/WebKit/Source/platform/heap/ThreadState.cpp
+++ b/third_party/WebKit/Source/platform/heap/ThreadState.cpp
@@ -489,10 +489,10 @@ void ThreadState::threadLocalWeakProcessing()
// Due to the complexity, we just forbid allocations.
NoAllocationScope noAllocationScope(this);
- VisitorScope visitorScope(this, BlinkGC::ThreadLocalWeakProcessing);
+ OwnPtr<Visitor> visitor = Visitor::create(this, BlinkGC::ThreadLocalWeakProcessing);
// Perform thread-specific weak processing.
- while (popAndInvokeThreadLocalWeakCallback(visitorScope.visitor())) { }
+ while (popAndInvokeThreadLocalWeakCallback(visitor.get())) { }
m_threadLocalWeakCallbackStack->decommit();

Powered by Google App Engine
This is Rietveld 408576698