Index: src/global-handles.cc |
diff --git a/src/global-handles.cc b/src/global-handles.cc |
index a96e8e377c00ba47347cac5b6794ce591e9991ef..a905ca1fac941027f4a95173acc17885b24b49af 100644 |
--- a/src/global-handles.cc |
+++ b/src/global-handles.cc |
@@ -945,6 +945,15 @@ void GlobalHandles::IterateAllRoots(RootVisitor* v) { |
} |
} |
+DISABLE_CFI_PERF |
+void GlobalHandles::IterateAllNewSpaceRoots(RootVisitor* v) { |
+ for (int i = 0; i < new_space_nodes_.length(); ++i) { |
+ Node* node = new_space_nodes_[i]; |
+ if (node->IsRetainer()) { |
+ v->VisitRootPointer(Root::kGlobalHandles, node->location()); |
+ } |
+ } |
+} |
DISABLE_CFI_PERF |
void GlobalHandles::ApplyPersistentHandleVisitor( |