| Index: src/global-handles.cc
|
| diff --git a/src/global-handles.cc b/src/global-handles.cc
|
| index c96dd3cd8f32985c9bd42a7f81dce969a06a9729..87066faeaf64950a8349da385e36cd206b23bea6 100644
|
| --- a/src/global-handles.cc
|
| +++ b/src/global-handles.cc
|
| @@ -467,17 +467,6 @@ void GlobalHandles::IterateWeakRoots(ObjectVisitor* v) {
|
| }
|
|
|
|
|
| -void GlobalHandles::IterateNewSpaceWeakIndependentRoots(ObjectVisitor* v) {
|
| - for (int i = 0; i < new_space_nodes_.length(); ++i) {
|
| - Node* node = new_space_nodes_[i];
|
| - ASSERT(node->is_in_new_space_list());
|
| - if (node->is_independent() && node->IsWeakRetainer()) {
|
| - v->VisitPointer(node->location());
|
| - }
|
| - }
|
| -}
|
| -
|
| -
|
| void GlobalHandles::IterateWeakRoots(WeakReferenceGuest f,
|
| WeakReferenceCallback callback) {
|
| for (NodeIterator it(this); !it.done(); it.Advance()) {
|
| @@ -497,6 +486,17 @@ void GlobalHandles::IdentifyWeakHandles(WeakSlotCallback f) {
|
| }
|
|
|
|
|
| +void GlobalHandles::IterateNewSpaceStrongAndDependentRoots(ObjectVisitor* v) {
|
| + for (int i = 0; i < new_space_nodes_.length(); ++i) {
|
| + Node* node = new_space_nodes_[i];
|
| + if (node->IsStrongRetainer() ||
|
| + (node->IsWeakRetainer() && !node->is_independent())) {
|
| + v->VisitPointer(node->location());
|
| + }
|
| + }
|
| +}
|
| +
|
| +
|
| void GlobalHandles::IdentifyNewSpaceWeakIndependentHandles(
|
| WeakSlotCallbackWithHeap f) {
|
| for (int i = 0; i < new_space_nodes_.length(); ++i) {
|
| @@ -510,6 +510,17 @@ void GlobalHandles::IdentifyNewSpaceWeakIndependentHandles(
|
| }
|
|
|
|
|
| +void GlobalHandles::IterateNewSpaceWeakIndependentRoots(ObjectVisitor* v) {
|
| + for (int i = 0; i < new_space_nodes_.length(); ++i) {
|
| + Node* node = new_space_nodes_[i];
|
| + ASSERT(node->is_in_new_space_list());
|
| + if (node->is_independent() && node->IsWeakRetainer()) {
|
| + v->VisitPointer(node->location());
|
| + }
|
| + }
|
| +}
|
| +
|
| +
|
| bool GlobalHandles::PostGarbageCollectionProcessing(
|
| GarbageCollector collector) {
|
| // Process weak global handle callbacks. This must be done after the
|
| @@ -586,17 +597,6 @@ void GlobalHandles::IterateAllRoots(ObjectVisitor* v) {
|
| }
|
|
|
|
|
| -void GlobalHandles::IterateNewSpaceStrongAndDependentRoots(ObjectVisitor* v) {
|
| - for (int i = 0; i < new_space_nodes_.length(); ++i) {
|
| - Node* node = new_space_nodes_[i];
|
| - if (node->IsStrongRetainer() ||
|
| - (node->IsWeakRetainer() && !node->is_independent())) {
|
| - v->VisitPointer(node->location());
|
| - }
|
| - }
|
| -}
|
| -
|
| -
|
| void GlobalHandles::IterateAllRootsWithClassIds(ObjectVisitor* v) {
|
| for (NodeIterator it(this); !it.done(); it.Advance()) {
|
| if (it.node()->has_wrapper_class_id() && it.node()->IsRetainer()) {
|
|
|