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

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

Issue 2694173002: Remove thread-local weak processing (Closed)
Patch Set: temp 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/Heap.cpp
diff --git a/third_party/WebKit/Source/platform/heap/Heap.cpp b/third_party/WebKit/Source/platform/heap/Heap.cpp
index a63b2309ae96701ad91ac7b1abeb87b93e7ac2ab..bf086aa367139e968bb66a85da19f122ecec1b8d 100644
--- a/third_party/WebKit/Source/platform/heap/Heap.cpp
+++ b/third_party/WebKit/Source/platform/heap/Heap.cpp
@@ -301,16 +301,7 @@ bool ThreadHeap::popAndInvokePostMarkingCallback(Visitor* visitor) {
return false;
}
-void ThreadHeap::pushGlobalWeakCallback(void** cell, WeakCallback callback) {
- ASSERT(ThreadState::current()->isInGC());
-
- CallbackStack::Item* slot = m_globalWeakCallbackStack->allocateEntry();
- *slot = CallbackStack::Item(cell, callback);
-}
-
-void ThreadHeap::pushThreadLocalWeakCallback(void* closure,
- void* object,
- WeakCallback callback) {
+void ThreadHeap::pushWeakCallback(void* closure, WeakCallback callback) {
ASSERT(ThreadState::current()->isInGC());
CallbackStack::Item* slot = m_globalWeakCallbackStack->allocateEntry();
« 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