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

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

Issue 1166623002: Oilpan: Remove a visitor parameter from isHeapObjectAlive (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 7 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
« no previous file with comments | « Source/platform/heap/MarkingVisitorImpl.h ('k') | Source/platform/heap/ThreadState.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/heap/ThreadState.h
diff --git a/Source/platform/heap/ThreadState.h b/Source/platform/heap/ThreadState.h
index 213170db701f44d52e20cb88735a751a38d74add..f39802b3fff2eb52239ab56d234d27a2e2f3a95b 100644
--- a/Source/platform/heap/ThreadState.h
+++ b/Source/platform/heap/ThreadState.h
@@ -116,10 +116,10 @@ using EphemeronCallback = VisitorCallback;
// }
#define USING_PRE_FINALIZER(Class, method) \
public: \
- static bool invokePreFinalizer(void* object, Visitor& visitor) \
+ static bool invokePreFinalizer(void* object) \
{ \
Class* self = reinterpret_cast<Class*>(object); \
- if (visitor.isHeapObjectAlive(self)) \
+ if (Heap::isHeapObjectAlive(self)) \
return false; \
self->method(); \
return true; \
@@ -676,7 +676,7 @@ private:
void cleanupPages();
void unregisterPreFinalizerInternal(void*);
- void invokePreFinalizers(Visitor&);
+ void invokePreFinalizers();
#if ENABLE(GC_PROFILING)
void snapshotFreeList();
@@ -727,7 +727,7 @@ private:
GCState m_gcState;
CallbackStack* m_threadLocalWeakCallbackStack;
- HashMap<void*, bool (*)(void*, Visitor&)> m_preFinalizers;
+ HashMap<void*, bool (*)(void*)> m_preFinalizers;
v8::Isolate* m_isolate;
void (*m_traceDOMWrappers)(v8::Isolate*, Visitor*);
« no previous file with comments | « Source/platform/heap/MarkingVisitorImpl.h ('k') | Source/platform/heap/ThreadState.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698