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

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
Index: Source/platform/heap/ThreadState.h
diff --git a/Source/platform/heap/ThreadState.h b/Source/platform/heap/ThreadState.h
index d44c39c32daa7d57547ba208aebe2b50c0593265..8d89fadedf5bcb92bb04db85a5a9a1c383e983f5 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; \
@@ -657,7 +657,7 @@ private:
void cleanupPages();
void unregisterPreFinalizerInternal(void*);
- void invokePreFinalizers(Visitor&);
+ void invokePreFinalizers();
#if ENABLE(GC_PROFILING)
void snapshotFreeList();
@@ -708,7 +708,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*);

Powered by Google App Engine
This is Rietveld 408576698