| Index: src/global-handles.cc
|
| diff --git a/src/global-handles.cc b/src/global-handles.cc
|
| index f5850da04d5b940e46cba8e171bff52e3afeefd3..366a7df5cfc1efaefbe269c788c41681a28caab2 100644
|
| --- a/src/global-handles.cc
|
| +++ b/src/global-handles.cc
|
| @@ -641,6 +641,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()) {
|
| + v->VisitEmbedderReference(node->location(),
|
| + node->wrapper_class_id());
|
| + }
|
| + }
|
| +}
|
| +
|
| +
|
| void GlobalHandles::RecordStats(HeapStats* stats) {
|
| *stats->global_handle_count = 0;
|
| *stats->weak_global_handle_count = 0;
|
|
|