Index: src/global-handles.cc |
diff --git a/src/global-handles.cc b/src/global-handles.cc |
index 3f4e3bea59d5fb8d96e9435d3dbb0f6932ffd532..3332491d1eefe6385a5eb4ccb88a8f9f30dff4d6 100644 |
--- a/src/global-handles.cc |
+++ b/src/global-handles.cc |
@@ -721,6 +721,17 @@ void GlobalHandles::IterateAllRootsWithClassIds(ObjectVisitor* v) { |
} |
+void GlobalHandles::IterateAllRootsInNewSpaceWithClassIds(ObjectVisitor* v) { |
+ for (int i = 0; i < new_space_nodes_.length(); ++i) { |
+ Node* node = new_space_nodes_[i]; |
+ if (node->has_wrapper_class_id() && node->IsRetainer()) { |
Michael Starzinger
2013/01/24 15:06:56
Flip the two operands of the conjunction, otherwis
|
+ v->VisitEmbedderReference(node->location(), |
+ node->wrapper_class_id()); |
+ } |
+ } |
+} |
+ |
+ |
void GlobalHandles::RecordStats(HeapStats* stats) { |
*stats->global_handle_count = 0; |
*stats->weak_global_handle_count = 0; |