| Index: src/v8threads.h
|
| diff --git a/src/v8threads.h b/src/v8threads.h
|
| index 06840532812ee9133e1d8160a14492e64d9d04db..d70aa3c89525437b7e7faf6f37ad837383fa699c 100644
|
| --- a/src/v8threads.h
|
| +++ b/src/v8threads.h
|
| @@ -79,6 +79,20 @@ class ThreadState {
|
| };
|
|
|
|
|
| +// Defined in top.h
|
| +class ThreadLocalTop;
|
| +
|
| +
|
| +class ThreadVisitor {
|
| + public:
|
| + // ThreadLocalTop may be only available during this call.
|
| + virtual void VisitThread(ThreadLocalTop* top) = 0;
|
| +
|
| + protected:
|
| + virtual ~ThreadVisitor() {}
|
| +};
|
| +
|
| +
|
| class ThreadManager : public AllStatic {
|
| public:
|
| static void Lock();
|
| @@ -90,6 +104,7 @@ class ThreadManager : public AllStatic {
|
| static bool IsArchived();
|
|
|
| static void Iterate(ObjectVisitor* v);
|
| + static void IterateThreads(ThreadVisitor* v);
|
| static void MarkCompactPrologue(bool is_compacting);
|
| static void MarkCompactEpilogue(bool is_compacting);
|
| static bool IsLockedByCurrentThread() { return mutex_owner_.IsSelf(); }
|
|
|