Home
last modified time | relevance | path

Searched refs:local_heap (Results 1 - 25 of 31) sorted by relevance

12

/third_party/node/deps/v8/src/handles/
H A Dlocal-handles-inl.h17 V8_INLINE Address* LocalHandleScope::GetHandle(LocalHeap* local_heap, in GetHandle() argument
19 DCHECK(local_heap->IsRunning()); in GetHandle()
20 if (local_heap->is_main_thread()) in GetHandle()
21 return LocalHandleScope::GetMainThreadHandle(local_heap, value); in GetHandle()
23 LocalHandles* handles = local_heap->handles(); in GetHandle()
37 LocalHandleScope::LocalHandleScope(LocalHeap* local_heap) { in LocalHandleScope() argument
38 DCHECK(local_heap->IsRunning()); in LocalHandleScope()
40 if (local_heap->is_main_thread()) { in LocalHandleScope()
41 OpenMainThreadScope(local_heap); in LocalHandleScope()
43 LocalHandles* handles = local_heap in LocalHandleScope()
82 CloseScope(LocalHeap* local_heap, Address* prev_next, Address* prev_limit) CloseScope() argument
[all...]
H A Dmaybe-handles-inl.h21 MaybeHandle<T>::MaybeHandle(T object, LocalHeap* local_heap) in MaybeHandle() argument
22 : MaybeHandle(handle(object, local_heap)) {} in MaybeHandle()
37 LocalHeap* local_heap) { in MaybeObjectHandle()
41 handle_ = handle(heap_object, local_heap); in MaybeObjectHandle()
44 handle_ = handle(object->cast<Object>(), local_heap); in MaybeObjectHandle()
56 MaybeObjectHandle::MaybeObjectHandle(Object object, LocalHeap* local_heap) in MaybeObjectHandle() argument
58 handle_(object, local_heap) {} in MaybeObjectHandle()
110 inline MaybeObjectHandle handle(MaybeObject object, LocalHeap* local_heap) { in handle() argument
111 return MaybeObjectHandle(object, local_heap); in handle()
36 MaybeObjectHandle(MaybeObject object, LocalHeap* local_heap) MaybeObjectHandle() argument
H A Dlocal-handles.h47 explicit inline LocalHandleScope(LocalHeap* local_heap);
55 V8_INLINE static Address* GetHandle(LocalHeap* local_heap, Address value);
63 static inline void CloseScope(LocalHeap* local_heap, Address* prev_next,
65 V8_EXPORT_PRIVATE static void CloseMainThreadScope(LocalHeap* local_heap,
69 V8_EXPORT_PRIVATE void OpenMainThreadScope(LocalHeap* local_heap);
71 V8_EXPORT_PRIVATE static Address* GetMainThreadHandle(LocalHeap* local_heap,
H A Dlocal-handles.cc16 Address* LocalHandleScope::GetMainThreadHandle(LocalHeap* local_heap, in GetMainThreadHandle() argument
18 Isolate* isolate = local_heap->heap()->isolate(); in GetMainThreadHandle()
22 void LocalHandleScope::OpenMainThreadScope(LocalHeap* local_heap) { in OpenMainThreadScope() argument
23 Isolate* isolate = local_heap->heap()->isolate(); in OpenMainThreadScope()
25 local_heap_ = local_heap; in OpenMainThreadScope()
31 void LocalHandleScope::CloseMainThreadScope(LocalHeap* local_heap, in CloseMainThreadScope() argument
34 Isolate* isolate = local_heap->heap()->isolate(); in CloseMainThreadScope()
H A Dhandles.cc56 LocalHeap* local_heap = isolate->CurrentLocalHeap(); in IsDereferenceAllowed()
59 if (!local_heap->IsHandleDereferenceAllowed()) { in IsDereferenceAllowed()
68 if (!local_heap->is_main_thread()) { in IsDereferenceAllowed()
70 return local_heap->ContainsPersistentHandle(location_) || in IsDereferenceAllowed()
71 local_heap->ContainsLocalHandle(location_); in IsDereferenceAllowed()
H A Dhandles-inl.h26 HandleBase::HandleBase(Address object, LocalHeap* local_heap) in HandleBase() argument
27 : location_(LocalHandleScope::GetHandle(local_heap, object)) {} in HandleBase()
59 Handle<T>::Handle(T object, LocalHeap* local_heap) in Handle() argument
60 : HandleBase(object.ptr(), local_heap) {} in Handle()
73 V8_INLINE Handle<T> handle(T object, LocalHeap* local_heap) { in handle() argument
74 return Handle<T>(object, local_heap); in handle()
H A Dmaybe-handles.h48 V8_INLINE MaybeHandle(T object, LocalHeap* local_heap);
95 inline MaybeObjectHandle(MaybeObject object, LocalHeap* local_heap);
96 inline MaybeObjectHandle(Object object, LocalHeap* local_heap);
H A Dpersistent-handles.cc36 void PersistentHandles::Attach(LocalHeap* local_heap) { in Attach() argument
38 owner_ = local_heap; in Attach()
H A Dhandles.h47 V8_INLINE explicit HandleBase(Address object, LocalHeap* local_heap);
124 V8_INLINE Handle(T object, LocalHeap* local_heap);
H A Dpersistent-handles.h57 void Attach(LocalHeap* local_heap);
/third_party/node/deps/v8/src/heap/
H A Dsafepoint.h99 void LockMutex(LocalHeap* local_heap);
105 void AddLocalHeap(LocalHeap* local_heap, Callback callback) { in AddLocalHeap() argument
114 if (local_heaps_head_) local_heaps_head_->prev_ = local_heap; in AddLocalHeap()
115 local_heap->prev_ = nullptr; in AddLocalHeap()
116 local_heap->next_ = local_heaps_head_; in AddLocalHeap()
117 local_heaps_head_ = local_heap; in AddLocalHeap()
121 void RemoveLocalHeap(LocalHeap* local_heap, Callback callback) { in RemoveLocalHeap() argument
128 if (local_heap->next_) local_heap->next_->prev_ = local_heap in RemoveLocalHeap()
[all...]
H A Dparked-scope.h21 explicit ParkedScope(LocalHeap* local_heap) : local_heap_(local_heap) { in ParkedScope() argument
37 explicit UnparkedScope(LocalHeap* local_heap) : local_heap_(local_heap) { in UnparkedScope() argument
53 explicit ParkedMutexGuard(LocalHeap* local_heap, base::Mutex* mutex) in ParkedMutexGuard() argument
57 ParkedScope scope(local_heap); in ParkedMutexGuard()
78 ParkedSharedMutexGuardIf(LocalHeap* local_heap, base::SharedMutex* mutex, in ParkedSharedMutexGuardIf() argument
88 ParkedScope scope(local_heap); in ParkedSharedMutexGuardIf()
93 ParkedScope scope(local_heap); in ParkedSharedMutexGuardIf()
H A Dconcurrent-allocator.cc23 LocalHeap local_heap(heap, ThreadKind::kBackground); in RunInternal()
24 UnparkedScope unparked_scope(&local_heap); in RunInternal()
37 AllocationResult result = local_heap.AllocateRaw( in RunInternal()
45 local_heap.TryPerformCollection(); in RunInternal()
48 result = local_heap.AllocateRaw(kMediumObjectSize, AllocationType::kOld, in RunInternal()
56 local_heap.TryPerformCollection(); in RunInternal()
59 result = local_heap.AllocateRaw(kLargeObjectSize, AllocationType::kOld, in RunInternal()
67 local_heap.TryPerformCollection(); in RunInternal()
69 local_heap.Safepoint(); in RunInternal()
H A Dsafepoint.cc136 for (LocalHeap* local_heap = local_heaps_head_; local_heap; in SetSafepointRequestedFlags()
137 local_heap = local_heap->next_) { in SetSafepointRequestedFlags()
138 if (local_heap->is_main_thread() && in SetSafepointRequestedFlags()
144 local_heap->state_.SetSafepointRequested(); in SetSafepointRequestedFlags()
148 local_heap->is_main_thread()); in SetSafepointRequestedFlags()
155 void IsolateSafepoint::LockMutex(LocalHeap* local_heap) { in LockMutex() argument
157 ParkedScope parked_scope(local_heap); in LockMutex()
184 for (LocalHeap* local_heap in ClearSafepointRequestedFlags()
[all...]
H A Dmarking-barrier.cc34 MarkingBarrier::MarkingBarrier(LocalHeap* local_heap) in MarkingBarrier() argument
35 : heap_(local_heap->heap()), in MarkingBarrier()
139 heap->safepoint()->IterateLocalHeaps([is_compacting](LocalHeap* local_heap) { in ActivateAll()
140 local_heap->marking_barrier()->Activate(is_compacting); in ActivateAll()
147 heap->safepoint()->IterateLocalHeaps([](LocalHeap* local_heap) { in DeactivateAll()
148 local_heap->marking_barrier()->Deactivate(); in DeactivateAll()
156 [](LocalHeap* local_heap) { local_heap->marking_barrier()->Publish(); }); in PublishAll()
H A Dconcurrent-allocator.h40 explicit ConcurrentAllocator(LocalHeap* local_heap, PagedSpace* space) in ConcurrentAllocator() argument
41 : local_heap_(local_heap), in ConcurrentAllocator()
H A Dlarge-spaces.cc178 LocalHeap* local_heap, int object_size) { in AllocateRawBackground()
179 return AllocateRawBackground(local_heap, object_size, NOT_EXECUTABLE); in AllocateRawBackground()
183 LocalHeap* local_heap, int object_size, Executability executable) { in AllocateRawBackground()
187 if (!heap()->CanExpandOldGenerationBackground(local_heap, object_size) || in AllocateRawBackground()
188 !heap()->ShouldExpandOldGenerationOnSlowAllocation(local_heap)) { in AllocateRawBackground()
597 LocalHeap* local_heap, int object_size) { in AllocateRawBackground()
599 return OldLargeObjectSpace::AllocateRawBackground(local_heap, object_size, in AllocateRawBackground()
177 AllocateRawBackground( LocalHeap* local_heap, int object_size) AllocateRawBackground() argument
182 AllocateRawBackground( LocalHeap* local_heap, int object_size, Executability executable) AllocateRawBackground() argument
596 AllocateRawBackground( LocalHeap* local_heap, int object_size) AllocateRawBackground() argument
H A Dlarge-spaces.h177 AllocateRawBackground(LocalHeap* local_heap, int object_size);
189 LocalHeap* local_heap, int object_size, Executability executable);
220 AllocateRawBackground(LocalHeap* local_heap, int object_size);
H A Dcollection-barrier.cc80 bool CollectionBarrier::AwaitCollectionBackground(LocalHeap* local_heap) { in AwaitCollectionBackground() argument
100 ParkedScope scope(local_heap); in AwaitCollectionBackground()
H A Dpaged-spaces.cc606 LocalHeap* local_heap, size_t min_size_in_bytes, size_t max_size_in_bytes, in RawRefillLabBackground()
613 DCHECK_IMPLIES(!local_heap, origin == AllocationOrigin::kGC); in RawRefillLabBackground()
632 if (IsSweepingAllowedOnThread(local_heap)) { in RawRefillLabBackground()
650 if (heap()->ShouldExpandOldGenerationOnSlowAllocation(local_heap) && in RawRefillLabBackground()
651 heap()->CanExpandOldGenerationBackground(local_heap, AreaSize())) { in RawRefillLabBackground()
661 if (IsSweepingAllowedOnThread(local_heap)) { in RawRefillLabBackground()
722 bool PagedSpace::IsSweepingAllowedOnThread(LocalHeap* local_heap) const { in IsSweepingAllowedOnThread()
724 return (local_heap && local_heap->is_main_thread()) || in IsSweepingAllowedOnThread()
605 RawRefillLabBackground( LocalHeap* local_heap, size_t min_size_in_bytes, size_t max_size_in_bytes, AllocationAlignment alignment, AllocationOrigin origin) RawRefillLabBackground() argument
H A Dcollection-barrier.h49 bool AwaitCollectionBackground(LocalHeap* local_heap);
H A Dincremental-marking.cc308 heap()->safepoint()->IterateLocalHeaps([](LocalHeap* local_heap) { in StartBlackAllocation()
309 local_heap->MarkLinearAllocationAreaBlack(); in StartBlackAllocation()
323 [](LocalHeap* local_heap) { local_heap->UnmarkLinearAllocationArea(); }); in PauseBlackAllocation()
/third_party/node/deps/v8/src/codegen/
H A Dtick-counter.cc25 void TickCounter::AttachLocalHeap(LocalHeap* local_heap) { in AttachLocalHeap() argument
27 local_heap_ = local_heap; in AttachLocalHeap()
H A Dtick-counter.h23 void AttachLocalHeap(LocalHeap* local_heap);
/third_party/node/deps/v8/src/objects/
H A Dfeedback-vector.h663 LocalHeap* local_heap) { in FromBackgroundThread()
664 return NexusConfig(isolate, local_heap); in FromBackgroundThread()
697 NexusConfig(Isolate* isolate, LocalHeap* local_heap) in NexusConfig() argument
698 : isolate_(isolate), local_heap_(local_heap) {} in NexusConfig()
662 FromBackgroundThread(Isolate* isolate, LocalHeap* local_heap) FromBackgroundThread() argument

Completed in 14 milliseconds

12