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

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

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/ThreadState.h
diff --git a/third_party/WebKit/Source/platform/heap/ThreadState.h b/third_party/WebKit/Source/platform/heap/ThreadState.h
index 2b7e8588170274dd9b87275c36ee3451dd86cc79..82c9934c2e3f2b3ed0e776c1319bdde581804633 100644
--- a/third_party/WebKit/Source/platform/heap/ThreadState.h
+++ b/third_party/WebKit/Source/platform/heap/ThreadState.h
@@ -54,7 +54,6 @@ class Isolate;
namespace blink {
class BasePage;
-class CallbackStack;
class GarbageCollectedMixinConstructorMarker;
class PersistentNode;
class PersistentRegion;
@@ -186,9 +185,7 @@ class PLATFORM_EXPORT ThreadState {
static ThreadState* fromObject(const void*);
bool isMainThread() const { return this == mainThreadState(); }
-#if DCHECK_IS_ON()
bool checkThread() const { return m_thread == currentThread(); }
-#endif
ThreadHeap& heap() const { return *m_heap; }
@@ -389,10 +386,6 @@ class PLATFORM_EXPORT ThreadState {
Vector<size_t> deadSize;
};
- void pushThreadLocalWeakCallback(void*, WeakCallback);
- bool popAndInvokeThreadLocalWeakCallback(Visitor*);
- void threadLocalWeakProcessing();
-
size_t objectPayloadSizeForTesting();
void shouldFlushHeapDoesNotContainCache() {
@@ -664,8 +657,6 @@ class PLATFORM_EXPORT ThreadState {
bool m_shouldFlushHeapDoesNotContainCache;
GCState m_gcState;
- std::unique_ptr<CallbackStack> m_threadLocalWeakCallbackStack;
-
using PreFinalizerCallback = bool (*)(void*);
using PreFinalizer = std::pair<void*, PreFinalizerCallback>;
« no previous file with comments | « third_party/WebKit/Source/platform/heap/Persistent.h ('k') | third_party/WebKit/Source/platform/heap/ThreadState.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698