v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
combined-heap.cc
Go to the documentation of this file.
1// Copyright 2019 the V8 project authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
6#include "src/heap/heap-inl.h"
7
8namespace v8 {
9namespace internal {
10
13 : heap_iterator_(heap, filtering),
14 ro_heap_iterator_(heap->isolate()->read_only_heap()) {}
15
18 if (!object.is_null()) {
19 return object;
20 }
21 return heap_iterator_.Next();
22}
23
24} // namespace internal
25} // namespace v8
CombinedHeapObjectIterator(Heap *heap, HeapObjectIterator::HeapObjectsFiltering filtering=HeapObjectIterator::HeapObjectsFiltering::kNoFiltering)
ReadOnlyHeapObjectIterator ro_heap_iterator_
Tagged< HeapObject > Next()
Definition heap.cc:6658