Home
last modified time | relevance | path

Searched refs:local_heap (Results 1 – 25 of 140) sorted by relevance

123456

/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/v8/src/heap/
H A Dsafepoint.cc53 base::MutexGuard guard(&local_heap->state_mutex_); in EnterFromThread()
55 local_heap->state_change_.NotifyAll(); in EnterFromThread()
92 void Safepoint::AddLocalHeap(LocalHeap* local_heap) { in AddLocalHeap() argument
95 local_heap->prev_ = nullptr; in AddLocalHeap()
96 local_heap->next_ = local_heaps_head_; in AddLocalHeap()
97 local_heaps_head_ = local_heap; in AddLocalHeap()
102 if (local_heap->next_) local_heap->next_->prev_ = local_heap->prev_; in RemoveLocalHeap()
103 if (local_heap->prev_) in RemoveLocalHeap()
104 local_heap->prev_->next_ = local_heap->next_; in RemoveLocalHeap()
106 local_heaps_head_ = local_heap->next_; in RemoveLocalHeap()
[all …]
H A Dsafepoint.h23 void EnterFromThread(LocalHeap* local_heap);
25 V8_EXPORT_PRIVATE bool ContainsLocalHeap(LocalHeap* local_heap);
52 void AddLocalHeap(LocalHeap* local_heap);
53 void RemoveLocalHeap(LocalHeap* local_heap);
/dports/www/chromium-legacy/chromium-88.0.4324.182/v8/src/heap/
H A Dsafepoint.h28 void EnterFromThread(LocalHeap* local_heap);
30 V8_EXPORT_PRIVATE bool ContainsLocalHeap(LocalHeap* local_heap);
66 void AddLocalHeap(LocalHeap* local_heap, Callback callback) { in AddLocalHeap() argument
75 if (local_heaps_head_) local_heaps_head_->prev_ = local_heap; in AddLocalHeap()
76 local_heap->prev_ = nullptr; in AddLocalHeap()
77 local_heap->next_ = local_heaps_head_; in AddLocalHeap()
78 local_heaps_head_ = local_heap; in AddLocalHeap()
89 if (local_heap->next_) local_heap->next_->prev_ = local_heap->prev_; in RemoveLocalHeap()
90 if (local_heap->prev_) in RemoveLocalHeap()
91 local_heap->prev_->next_ = local_heap->next_; in RemoveLocalHeap()
[all …]
H A Dsafepoint.cc77 void GlobalSafepoint::EnterFromThread(LocalHeap* local_heap) { in EnterFromThread() argument
79 base::MutexGuard guard(&local_heap->state_mutex_); in EnterFromThread()
80 DCHECK_EQ(local_heap->state_, LocalHeap::ThreadState::Running); in EnterFromThread()
81 local_heap->state_ = LocalHeap::ThreadState::Safepoint; in EnterFromThread()
82 local_heap->state_change_.NotifyAll(); in EnterFromThread()
88 base::MutexGuard guard(&local_heap->state_mutex_); in EnterFromThread()
89 local_heap->state_ = LocalHeap::ThreadState::Running; in EnterFromThread()
119 bool GlobalSafepoint::ContainsLocalHeap(LocalHeap* local_heap) { in ContainsLocalHeap() argument
124 if (current == local_heap) return true; in ContainsLocalHeap()
H A Dconcurrent-allocator.cc21 LocalHeap local_heap(heap, ThreadKind::kBackground); in RunInternal() local
22 UnparkedScope unparked_scope(&local_heap); in RunInternal()
35 Address address = local_heap.AllocateRawOrFail( in RunInternal()
40 local_heap.Safepoint(); in RunInternal()
42 address = local_heap.AllocateRawOrFail( in RunInternal()
48 local_heap.Safepoint(); in RunInternal()
50 address = local_heap.AllocateRawOrFail( in RunInternal()
55 local_heap.Safepoint(); in RunInternal()
H A Dmarking-barrier.cc29 MarkingBarrier::MarkingBarrier(LocalHeap* local_heap) in MarkingBarrier() argument
30 : heap_(local_heap->heap()), in MarkingBarrier()
99 [is_compacting](LocalHeap* local_heap) { in ActivateAll() argument
100 local_heap->marking_barrier()->Activate(is_compacting); in ActivateAll()
109 heap->safepoint()->IterateLocalHeaps([](LocalHeap* local_heap) { in DeactivateAll() argument
110 local_heap->marking_barrier()->Deactivate(); in DeactivateAll()
119 heap->safepoint()->IterateLocalHeaps([](LocalHeap* local_heap) { in PublishAll() argument
120 local_heap->marking_barrier()->Publish(); in PublishAll()
H A Dlocal-heap.h196 explicit ParkedScope(LocalHeap* local_heap) : local_heap_(local_heap) { in ParkedScope() argument
210 explicit UnparkedScope(LocalHeap* local_heap) : local_heap_(local_heap) { in UnparkedScope() argument
224 explicit ParkedMutexGuard(LocalHeap* local_heap, base::Mutex* guard) in ParkedMutexGuard() argument
226 ParkedScope scope(local_heap); in ParkedMutexGuard()
/dports/lang/v8/v8-9.6.180.12/src/heap/
H A Dsafepoint.h36 V8_EXPORT_PRIVATE bool ContainsLocalHeap(LocalHeap* local_heap);
83 void AddLocalHeap(LocalHeap* local_heap, Callback callback) { in AddLocalHeap() argument
92 if (local_heaps_head_) local_heaps_head_->prev_ = local_heap; in AddLocalHeap()
93 local_heap->prev_ = nullptr; in AddLocalHeap()
94 local_heap->next_ = local_heaps_head_; in AddLocalHeap()
95 local_heaps_head_ = local_heap; in AddLocalHeap()
99 void RemoveLocalHeap(LocalHeap* local_heap, Callback callback) { in RemoveLocalHeap() argument
106 if (local_heap->next_) local_heap->next_->prev_ = local_heap->prev_; in RemoveLocalHeap()
107 if (local_heap->prev_) in RemoveLocalHeap()
108 local_heap->prev_->next_ = local_heap->next_; in RemoveLocalHeap()
[all …]
H A Dsafepoint.cc42 for (LocalHeap* local_heap = local_heaps_head_; local_heap; in EnterSafepointScope() local
43 local_heap = local_heap->next_) { in EnterSafepointScope()
44 if (local_heap->is_main_thread() && in EnterSafepointScope()
49 LocalHeap::ThreadState expected = local_heap->state_relaxed(); in EnterSafepointScope()
57 if (local_heap->state_.compare_exchange_strong(expected, new_state)) { in EnterSafepointScope()
79 for (LocalHeap* local_heap = local_heaps_head_; local_heap; in LeaveSafepointScope() local
80 local_heap = local_heap->next_) { in LeaveSafepointScope()
81 if (local_heap->is_main_thread() && in LeaveSafepointScope()
94 local_heap->state_.exchange(LocalHeap::kParked); in LeaveSafepointScope()
168 bool GlobalSafepoint::ContainsLocalHeap(LocalHeap* local_heap) { in ContainsLocalHeap() argument
[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
51 explicit ParkedMutexGuard(LocalHeap* local_heap, base::Mutex* mutex) in ParkedMutexGuard() argument
55 ParkedScope scope(local_heap); in ParkedMutexGuard()
76 ParkedSharedMutexGuardIf(LocalHeap* local_heap, base::SharedMutex* mutex, in ParkedSharedMutexGuardIf() argument
86 ParkedScope scope(local_heap); in ParkedSharedMutexGuardIf()
91 ParkedScope scope(local_heap); in ParkedSharedMutexGuardIf()
H A Dconcurrent-allocator.cc23 LocalHeap local_heap(heap, ThreadKind::kBackground); in RunInternal() local
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 Dmarking-barrier.cc32 MarkingBarrier::MarkingBarrier(LocalHeap* local_heap) in MarkingBarrier() argument
33 : heap_(local_heap->heap()), in MarkingBarrier()
123 heap->safepoint()->IterateLocalHeaps([is_compacting](LocalHeap* local_heap) { in ActivateAll() argument
124 local_heap->marking_barrier()->Activate(is_compacting); in ActivateAll()
131 heap->safepoint()->IterateLocalHeaps([](LocalHeap* local_heap) { in DeactivateAll() argument
132 local_heap->marking_barrier()->Deactivate(); in DeactivateAll()
140 [](LocalHeap* local_heap) { local_heap->marking_barrier()->Publish(); }); in PublishAll() argument
/dports/lang/v8/v8-9.6.180.12/src/handles/
H A Dlocal-handles-inl.h17 V8_INLINE Address* LocalHandleScope::GetHandle(LocalHeap* local_heap, in GetHandle() argument
19 if (local_heap->is_main_thread()) in GetHandle()
20 return LocalHandleScope::GetMainThreadHandle(local_heap, value); in GetHandle()
22 LocalHandles* handles = local_heap->handles(); in GetHandle()
36 LocalHandleScope::LocalHandleScope(LocalHeap* local_heap) { in LocalHandleScope() argument
37 if (local_heap->is_main_thread()) { in LocalHandleScope()
38 OpenMainThreadScope(local_heap); in LocalHandleScope()
40 LocalHandles* handles = local_heap->handles(); in LocalHandleScope()
41 local_heap_ = local_heap; in LocalHandleScope()
73 void LocalHandleScope::CloseScope(LocalHeap* local_heap, Address* prev_next, in 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() argument
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()
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()
/dports/lang/v8/v8-9.6.180.12/test/cctest/
H A Dtest-local-handles.cc40 LocalHeap local_heap(heap_, ThreadKind::kBackground); in Run() local
41 UnparkedScope unparked_scope(&local_heap); in Run()
42 LocalHandleScope scope(&local_heap); in Run()
59 ParkedScope scope(&local_heap); in Run()
123 LocalHeap local_heap(isolate->heap(), ThreadKind::kBackground, in TEST() local
125 UnparkedScope unparked_scope(&local_heap); in TEST()
126 LocalHandleScope scope(&local_heap); in TEST()
127 Handle<HeapNumber> local_number = handle(*ph, &local_heap); in TEST()
148 UnparkedScope unparked_scope(&local_heap); in TEST()
149 LocalHandleScope scope(&local_heap); in TEST()
[all …]
H A Dtest-persistent-handles.cc47 UnparkedScope unparked_scope(&local_heap); in Run()
48 LocalHandleScope scope(&local_heap); in Run()
51 handles_.push_back(local_heap.NewPersistentHandle(number_)); in Run()
57 ParkedScope scope(&local_heap); in Run()
68 ph_ = local_heap.DetachPersistentHandles(); in Run()
134 UnparkedScope scope(&local_heap); in TEST()
153 UnparkedScope scope(&local_heap); in TEST()
163 LocalHeap local_heap(isolate->heap(), ThreadKind::kBackground); in TEST() local
166 local_heap.NewPersistentHandle(Smi::FromInt(1)); in TEST()
173 LocalHeap local_heap(isolate->heap(), ThreadKind::kBackground, in TEST() local
[all …]
H A Dtest-concurrent-script-context-table.cc38 LocalHeap local_heap(heap_, ThreadKind::kBackground, std::move(ph_)); in Run() local
39 UnparkedScope unparked_scope(&local_heap); in Run()
40 LocalHandleScope scope(&local_heap); in Run()
71 LocalHeap local_heap(heap_, ThreadKind::kBackground, std::move(ph_)); in Run() local
72 UnparkedScope unparked_scope(&local_heap); in Run()
73 LocalHandleScope scope(&local_heap); in Run()
83 native_context_->synchronized_script_context_table(), &local_heap); in Run()
85 &local_heap); in Run()
H A Dtest-concurrent-js-array.cc37 LocalHeap local_heap(heap_, ThreadKind::kBackground, std::move(ph_)); in Run() local
38 UnparkedScope unparked_scope(&local_heap); in Run()
39 LocalHandleScope scope(&local_heap); in Run()
43 handles_[i] = local_heap.NewPersistentHandle(handles_[i]); in Run()
54 local_heap.NewPersistentHandle(x->elements(isolate, kRelaxedLoad)); in Run()
/dports/www/chromium-legacy/chromium-88.0.4324.182/v8/src/handles/
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() argument
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()
H A Dlocal-handles-inl.h16 V8_INLINE Address* LocalHandleScope::GetHandle(LocalHeap* local_heap, in GetHandle() argument
18 LocalHandles* handles = local_heap->handles(); in GetHandle()
32 LocalHandleScope::LocalHandleScope(LocalHeap* local_heap) { in LocalHandleScope() argument
33 LocalHandles* handles = local_heap->handles(); in LocalHandleScope()
34 local_heap_ = local_heap; in LocalHandleScope()
62 void LocalHandleScope::CloseScope(LocalHeap* local_heap, Address* prev_next, in CloseScope() argument
64 LocalHandles* handles = local_heap->handles(); in CloseScope()
/dports/lang/v8/v8-9.6.180.12/test/cctest/heap/
H A Dtest-concurrent-allocation.cc49 void AllocateSomeObjects(LocalHeap* local_heap) { in AllocateSomeObjects() argument
55 address = local_heap->AllocateRawOrFail( in AllocateSomeObjects()
60 local_heap->Safepoint(); in AllocateSomeObjects()
76 UnparkedScope unparked_scope(&local_heap); in Run()
77 AllocateSomeObjects(&local_heap); in Run()
244 UnparkedScope unparked_scope(&local_heap); in Run()
252 local_heap.TryPerformCollection(); in Run()
257 local_heap.Safepoint(); in Run()
315 UnparkedScope unparked_scope(&local_heap); in Run()
319 ParkedScope scope(&local_heap); in Run()
[all …]
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/v8/src/handles/
H A Dlocal-handles-inl.h16 V8_INLINE Address* LocalHandleScope::GetHandle(LocalHeap* local_heap, in GetHandle() argument
18 LocalHandles* handles = local_heap->handles(); in GetHandle()
29 LocalHandleScope::LocalHandleScope(LocalHeap* local_heap) { in LocalHandleScope() argument
30 LocalHandles* handles = local_heap->handles(); in LocalHandleScope()
31 local_heap_ = local_heap; in LocalHandleScope()
H A Dhandles-inl.h25 HandleBase::HandleBase(Address object, LocalHeap* local_heap) in HandleBase() argument
26 : location_(LocalHandleScope::GetHandle(local_heap, object)) {} in HandleBase()
51 Handle<T>::Handle(T object, LocalHeap* local_heap) in Handle() argument
52 : HandleBase(object.ptr(), local_heap) {} in Handle()
65 V8_INLINE Handle<T> handle(T object, LocalHeap* local_heap) { in handle() argument
66 return Handle<T>(object, local_heap); in handle()
80 V8_INLINE Handle<T> handle(Handle<T> handle, LocalHeap* local_heap) { in handle() argument
81 return Handle<T>(*handle, local_heap); in handle()

123456