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

Unified Diff: src/v8threads.h

Issue 2801073006: Decouple root visitors from object visitors. (Closed)
Patch Set: rebase Created 3 years, 8 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 | « src/v8.gyp ('k') | src/v8threads.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/v8threads.h
diff --git a/src/v8threads.h b/src/v8threads.h
index db0ed070fae1f3ee6265e26ffa53479c79690751..8fc6f0c62f6ad69c498d8d2e9a059e5a80d7c25a 100644
--- a/src/v8threads.h
+++ b/src/v8threads.h
@@ -10,6 +10,8 @@
namespace v8 {
namespace internal {
+class RootVisitor;
+class ThreadLocalTop;
class ThreadState {
public:
@@ -51,11 +53,6 @@ class ThreadState {
friend class ThreadManager;
};
-
-// Defined in isolate.h.
-class ThreadLocalTop;
-
-
class ThreadVisitor {
public:
// ThreadLocalTop may be only available during this call.
@@ -65,7 +62,6 @@ class ThreadVisitor {
virtual ~ThreadVisitor() {}
};
-
class ThreadManager {
public:
void Lock();
@@ -76,7 +72,7 @@ class ThreadManager {
void FreeThreadResources();
bool IsArchived();
- void Iterate(ObjectVisitor* v);
+ void Iterate(RootVisitor* v);
void IterateArchivedThreads(ThreadVisitor* v);
bool IsLockedByCurrentThread() {
return mutex_owner_.Equals(ThreadId::Current());
« no previous file with comments | « src/v8.gyp ('k') | src/v8threads.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698