summaryrefslogtreecommitdiff
path: root/deps/v8/src/heap/cppgc/heap-base.h
diff options
context:
space:
mode:
authorMichaël Zasso <targos@protonmail.com>2022-04-12 11:10:15 +0200
committerMichaël Zasso <targos@protonmail.com>2022-04-12 22:08:39 +0200
commitfd4f80ce54d7f7b7503e0999f6a9d293d493846d (patch)
tree00fba34b8aabeb481c7128fccee635719ee44a3b /deps/v8/src/heap/cppgc/heap-base.h
parent73d53fe9f56d7ce5de4b9c9ad5257dc601bbce14 (diff)
downloadnode-new-fd4f80ce54d7f7b7503e0999f6a9d293d493846d.tar.gz
deps: update V8 to 10.1.124.6
PR-URL: https://github.com/nodejs/node/pull/42657 Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Jiawen Geng <technicalcute@gmail.com> Reviewed-By: Michael Dawson <midawson@redhat.com>
Diffstat (limited to 'deps/v8/src/heap/cppgc/heap-base.h')
-rw-r--r--deps/v8/src/heap/cppgc/heap-base.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/deps/v8/src/heap/cppgc/heap-base.h b/deps/v8/src/heap/cppgc/heap-base.h
index 041f4cf3bd..0c6fe757f8 100644
--- a/deps/v8/src/heap/cppgc/heap-base.h
+++ b/deps/v8/src/heap/cppgc/heap-base.h
@@ -15,6 +15,7 @@
#include "src/base/macros.h"
#include "src/heap/cppgc/compactor.h"
#include "src/heap/cppgc/garbage-collector.h"
+#include "src/heap/cppgc/heap-object-header.h"
#include "src/heap/cppgc/marker.h"
#include "src/heap/cppgc/metric-recorder.h"
#include "src/heap/cppgc/object-allocator.h"
@@ -29,6 +30,10 @@
#include "src/heap/cppgc/caged-heap.h"
#endif
+#if defined(CPPGC_YOUNG_GENERATION)
+#include "src/heap/cppgc/remembered-set.h"
+#endif
+
namespace v8 {
namespace base {
class LsanPageAllocator;
@@ -162,7 +167,7 @@ class V8_EXPORT_PRIVATE HeapBase : public cppgc::HeapHandle {
}
#if defined(CPPGC_YOUNG_GENERATION)
- std::set<void*>& remembered_slots() { return remembered_slots_; }
+ OldToNewRememberedSet& remembered_set() { return remembered_set_; }
#endif // defined(CPPGC_YOUNG_GENERATION)
size_t ObjectPayloadSize() const;
@@ -207,6 +212,7 @@ class V8_EXPORT_PRIVATE HeapBase : public cppgc::HeapHandle {
int GetCreationThreadId() const { return creation_thread_id_; }
MarkingType marking_support() const { return marking_support_; }
+ SweepingType sweeping_support() const { return sweeping_support_; }
protected:
// Used by the incremental scheduler to finalize a GC if supported.
@@ -259,8 +265,8 @@ class V8_EXPORT_PRIVATE HeapBase : public cppgc::HeapHandle {
ProcessHeapStatisticsUpdater::AllocationObserverImpl
allocation_observer_for_PROCESS_HEAP_STATISTICS_;
#if defined(CPPGC_YOUNG_GENERATION)
- std::set<void*> remembered_slots_;
-#endif
+ OldToNewRememberedSet remembered_set_;
+#endif // defined(CPPGC_YOUNG_GENERATION)
size_t no_gc_scope_ = 0;
size_t disallow_gc_scope_ = 0;