Index: src/v8threads.cc |
diff --git a/src/v8threads.cc b/src/v8threads.cc |
index 80a7cd94fb8ce3b3e6e004b12c9f49e5bd001fcc..02292f6d008fd057018690ee48927062c4dfb7ef 100644 |
--- a/src/v8threads.cc |
+++ b/src/v8threads.cc |
@@ -331,6 +331,17 @@ void ThreadManager::Iterate(ObjectVisitor* v) { |
} |
+void ThreadManager::IterateThreads(ThreadVisitor* v) { |
+ for (ThreadState* state = ThreadState::FirstInUse(); |
+ state != NULL; |
+ state = state->Next()) { |
+ char* data = state->data(); |
+ data += HandleScopeImplementer::ArchiveSpacePerThread(); |
+ Top::IterateThread(v, data); |
+ } |
+} |
+ |
+ |
void ThreadManager::MarkCompactPrologue(bool is_compacting) { |
for (ThreadState* state = ThreadState::FirstInUse(); |
state != NULL; |