diff options
Diffstat (limited to 'deps/v8/src/heap/combined-heap.cc')
-rw-r--r-- | deps/v8/src/heap/combined-heap.cc | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/deps/v8/src/heap/combined-heap.cc b/deps/v8/src/heap/combined-heap.cc index ed60b438cb..0416bb62a4 100644 --- a/deps/v8/src/heap/combined-heap.cc +++ b/deps/v8/src/heap/combined-heap.cc @@ -3,16 +3,22 @@ // found in the LICENSE file. #include "src/heap/combined-heap.h" +#include "src/heap/heap-inl.h" namespace v8 { namespace internal { -HeapObject CombinedHeapIterator::Next() { +CombinedHeapObjectIterator::CombinedHeapObjectIterator( + Heap* heap, HeapObjectIterator::HeapObjectsFiltering filtering) + : heap_iterator_(heap, filtering), + ro_heap_iterator_(heap->isolate()->read_only_heap()) {} + +HeapObject CombinedHeapObjectIterator::Next() { HeapObject object = ro_heap_iterator_.Next(); if (!object.is_null()) { return object; } - return heap_iterator_.next(); + return heap_iterator_.Next(); } } // namespace internal |