| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_OBJECTS_VISITING_H_ | 5 #ifndef V8_OBJECTS_VISITING_H_ |
| 6 #define V8_OBJECTS_VISITING_H_ | 6 #define V8_OBJECTS_VISITING_H_ |
| 7 | 7 |
| 8 #include "allocation.h" | 8 #include "allocation.h" |
| 9 | 9 |
| 10 // This file provides base classes and auxiliary methods for defining | 10 // This file provides base classes and auxiliary methods for defining |
| (...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 462 | 462 |
| 463 class WeakObjectRetainer; | 463 class WeakObjectRetainer; |
| 464 | 464 |
| 465 | 465 |
| 466 // A weak list is single linked list where each element has a weak pointer to | 466 // A weak list is single linked list where each element has a weak pointer to |
| 467 // the next element. Given the head of the list, this function removes dead | 467 // the next element. Given the head of the list, this function removes dead |
| 468 // elements from the list and if requested records slots for next-element | 468 // elements from the list and if requested records slots for next-element |
| 469 // pointers. The template parameter T is a WeakListVisitor that defines how to | 469 // pointers. The template parameter T is a WeakListVisitor that defines how to |
| 470 // access the next-element pointers. | 470 // access the next-element pointers. |
| 471 template <class T> | 471 template <class T> |
| 472 Object* VisitWeakList(Heap* heap, | 472 Object* VisitWeakList(Heap* heap, Object* list, WeakObjectRetainer* retainer); |
| 473 Object* list, | |
| 474 WeakObjectRetainer* retainer, | |
| 475 bool record_slots); | |
| 476 | 473 |
| 477 } } // namespace v8::internal | 474 } } // namespace v8::internal |
| 478 | 475 |
| 479 #endif // V8_OBJECTS_VISITING_H_ | 476 #endif // V8_OBJECTS_VISITING_H_ |
| OLD | NEW |