Lines Matching refs:CppHeap
112 std::unique_ptr<CppHeap> CppHeap::Create(v8::Platform* platform,
114 return std::make_unique<internal::CppHeap>(platform, params.custom_spaces,
118 cppgc::AllocationHandle& CppHeap::GetAllocationHandle() {
119 return internal::CppHeap::From(this)->object_allocator();
122 cppgc::HeapHandle& CppHeap::GetHeapHandle() {
123 return *internal::CppHeap::From(this);
126 void CppHeap::Terminate() { internal::CppHeap::From(this)->Terminate(); }
128 cppgc::HeapStatistics CppHeap::CollectStatistics(
130 return internal::CppHeap::From(this)->AsBase().CollectStatistics(
134 void CppHeap::CollectCustomSpaceStatisticsAtLastGC(
137 return internal::CppHeap::From(this)->CollectCustomSpaceStatisticsAtLastGC(
141 void CppHeap::EnableDetachedGarbageCollectionsForTesting() {
142 return internal::CppHeap::From(this)
146 void CppHeap::CollectGarbageForTesting(cppgc::EmbedderStackState stack_state) {
147 return internal::CppHeap::From(this)->CollectGarbageForTesting(
148 internal::CppHeap::CollectionType::kMajor, stack_state);
151 void CppHeap::CollectGarbageInYoungGenerationForTesting(
153 return internal::CppHeap::From(this)->CollectGarbageForTesting(
154 internal::CppHeap::CollectionType::kMinor, stack_state);
232 FatalProcessOutOfMemory(static_cast<v8::internal::CppHeap*>(heap)->isolate(),
281 marking_visitor_(config.collection_type == CppHeap::CollectionType::kMajor
300 void CppHeap::MetricRecorderAdapter::AddMainThreadEvent(
314 void CppHeap::MetricRecorderAdapter::AddMainThreadEvent(
338 void CppHeap::MetricRecorderAdapter::AddMainThreadEvent(
356 void CppHeap::MetricRecorderAdapter::FlushBatchedIncrementalEvents() {
372 bool CppHeap::MetricRecorderAdapter::FullGCMetricsReportPending() const {
376 bool CppHeap::MetricRecorderAdapter::YoungGCMetricsReportPending() const {
381 CppHeap::MetricRecorderAdapter::ExtractLastFullGcEvent() {
388 CppHeap::MetricRecorderAdapter::ExtractLastYoungGcEvent() {
395 CppHeap::MetricRecorderAdapter::ExtractLastIncrementalMarkEvent() {
401 void CppHeap::MetricRecorderAdapter::ClearCachedEvents() {
409 Isolate* CppHeap::MetricRecorderAdapter::GetIsolate() const {
414 v8::metrics::Recorder::ContextId CppHeap::MetricRecorderAdapter::GetContextId()
424 CppHeap::CppHeap(
445 CppHeap::~CppHeap() {
451 void CppHeap::Terminate() {
458 void CppHeap::AttachIsolate(Isolate* isolate) {
474 void CppHeap::DetachIsolate() {
502 bool IsMemoryReducingGC(CppHeap::GarbageCollectionFlags flags) {
503 return flags & CppHeap::GarbageCollectionFlagValues::kReduceMemory;
506 bool IsForceGC(CppHeap::GarbageCollectionFlags flags) {
507 return flags & CppHeap::GarbageCollectionFlagValues::kForced;
510 bool ShouldReduceMemory(CppHeap::GarbageCollectionFlags flags) {
516 CppHeap::MarkingType CppHeap::SelectMarkingType() const {
526 CppHeap::SweepingType CppHeap::SelectSweepingType() const {
532 void CppHeap::InitializeTracing(CollectionType collection_type,
574 void CppHeap::StartTracing() {
589 bool CppHeap::AdvanceTracing(double max_duration) {
609 bool CppHeap::IsTracingDone() { return marking_done_; }
611 void CppHeap::EnterFinalPause(cppgc::EmbedderStackState stack_state) {
625 bool CppHeap::FinishConcurrentMarkingIfNeeded() {
629 void CppHeap::TraceEpilogue() {
680 void CppHeap::RunMinorGC(StackState stack_state) {
708 void CppHeap::AllocatedObjectSizeIncreased(size_t bytes) {
713 void CppHeap::AllocatedObjectSizeDecreased(size_t bytes) {
718 void CppHeap::ReportBufferedAllocationSizeIfPossible() {
742 void CppHeap::CollectGarbageForTesting(CollectionType collection_type,
771 void CppHeap::EnableDetachedGarbageCollectionsForTesting() {
780 void CppHeap::StartIncrementalGarbageCollectionForTesting() {
791 void CppHeap::FinalizeIncrementalGarbageCollectionForTesting(
865 void CppHeap::CollectCustomSpaceStatisticsAtLastGC(
879 CppHeap::MetricRecorderAdapter* CppHeap::GetMetricRecorder() const {
884 void CppHeap::FinishSweepingIfRunning() { sweeper_.FinishIfRunning(); }
886 void CppHeap::FinishSweepingIfOutOfWork() { sweeper_.FinishIfOutOfWork(); }
888 std::unique_ptr<CppMarkingState> CppHeap::CreateCppMarkingState() {
898 CppHeap::CreateCppMarkingStateForMutatorThread() {
905 CppHeap::PauseConcurrentMarkingScope::PauseConcurrentMarkingScope(
906 CppHeap* cpp_heap) {