| Index: src/objects-visiting.h
|
| diff --git a/src/objects-visiting.h b/src/objects-visiting.h
|
| index de8ca6d055d4d2673b968e669169a108dd5ebc64..910334b77c41d8f2d3b795f1de71df08dc751c0a 100644
|
| --- a/src/objects-visiting.h
|
| +++ b/src/objects-visiting.h
|
| @@ -483,6 +483,20 @@ VisitorDispatchTable<typename StaticMarkingVisitor<StaticVisitor>::Callback>
|
| StaticMarkingVisitor<StaticVisitor>::table_;
|
|
|
|
|
| +class WeakObjectRetainer;
|
| +
|
| +
|
| +// A weak list is single linked list where each element has a weak pointer to
|
| +// the next element. Given the head of the list, this function removes dead
|
| +// elements from the list and if requested records slots for next-element
|
| +// pointers. The template parameter T is a WeakListVisitor that defines how to
|
| +// access the next-element pointers.
|
| +template <class T>
|
| +Object* VisitWeakList(Heap* heap,
|
| + Object* list,
|
| + WeakObjectRetainer* retainer,
|
| + bool record_slots);
|
| +
|
| } } // namespace v8::internal
|
|
|
| #endif // V8_OBJECTS_VISITING_H_
|
|
|