diff options
Diffstat (limited to 'deps/v8/src/heap/combined-heap.cc')
-rw-r--r-- | deps/v8/src/heap/combined-heap.cc | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/deps/v8/src/heap/combined-heap.cc b/deps/v8/src/heap/combined-heap.cc new file mode 100644 index 0000000000..ed60b438cb --- /dev/null +++ b/deps/v8/src/heap/combined-heap.cc @@ -0,0 +1,19 @@ +// Copyright 2019 the V8 project authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#include "src/heap/combined-heap.h" + +namespace v8 { +namespace internal { + +HeapObject CombinedHeapIterator::Next() { + HeapObject object = ro_heap_iterator_.Next(); + if (!object.is_null()) { + return object; + } + return heap_iterator_.next(); +} + +} // namespace internal +} // namespace v8 |