/arkcompiler/ets_runtime/ecmascript/compiler/base/ |
H A D | depend_chain_helper.cpp | 24 head_ = head_->next; in Merge() 28 auto lhs = this->head_; in Merge() 29 auto rhs = that->head_; in Merge() 41 head_ = lhs; in Merge() 52 auto lhs = this->head_; in Equals() 53 auto rhs = that->head_; in Equals() 67 Node* node = chunk_->New<Node>(gate, head_); in UpdateNode() 70 that->head_ = node; in UpdateNode()
|
H A D | depend_chain_helper.h | 64 head_ = other->head_; in CopyFrom() 70 return head_->gate; in GetHeadGate() 75 return DependChainIterator(head_); in begin() 84 Node *head_{nullptr};
|
/arkcompiler/runtime_core/libpandabase/utils/ |
H A D | list.h | 148 head_ = other.head_; 149 other.head_ = nullptr; 156 head_ = other.head_; 157 other.head_ = nullptr; 163 return Iterator(&head_); in before_begin() 168 return ConstIterator(&head_); in before_begin() 173 return Iterator(head_.next_); in begin() 178 return ConstIterator(head_ in begin() 344 ListNode head_; global() member 616 DListNode head_; global() member in DList [all...] |
H A D | ring_buffer.h | 185 buffer_[head_] = value; in push_front() 208 buffer_[head_] = value_type(std::forward<Args>(args)...); in emplace_front() 209 return buffer_[head_]; in emplace_front() 230 buffer_[head_].~value_type(); in pop_front() 232 increment_buffer_index(head_); in pop_front() 241 return iterator(&buffer_, head_); 257 return const_iterator(&buffer_, head_); 341 return buffer_[head_]; 349 return buffer_[head_]; 370 return buffer_[(head_ 430 increment_buffer_index(head_); global() variable 438 decrement_buffer_index(head_); global() variable 457 size_type head_ = 0U; global() member in panda::RingBuffer [all...] |
/arkcompiler/runtime_core/static_core/libpandabase/utils/ |
H A D | list.h | 144 head_ = other.head_; 145 other.head_ = nullptr; 152 head_ = other.head_; 153 other.head_ = nullptr; 159 return Iterator(&head_); in before_begin() 164 return ConstIterator(&head_); in before_begin() 169 return Iterator(head_.next_); in begin() 174 return ConstIterator(head_ in begin() 332 ListNode head_; global() member 603 DListNode head_; global() member in DList [all...] |
H A D | ring_buffer.h | 189 buffer_[head_] = value; in push_front() 212 buffer_[head_] = value_type(std::forward<Args>(args)...); in emplace_front() 213 return buffer_[head_]; in emplace_front() 230 buffer_[head_].~value_type(); in pop_front() 232 IncrementBufferIndex(head_); in pop_front() 239 return iterator(&buffer_, head_); 251 return const_iterator(&buffer_, head_); 315 return buffer_[head_]; 321 return buffer_[head_]; 338 return buffer_[(head_ 388 IncrementBufferIndex(head_); global() variable 396 DecrementBufferIndex(head_); global() variable 415 size_type head_ = 0U; global() member in ark::RingBuffer [all...] |
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/types/ |
H A D | ets_waiters_list.h | 91 if (head_ == nullptr && !RestockQueue()) { in TryPopFront() 94 *node = std::exchange(head_, head_->next_); in TryPopFront() 100 ASSERT(head_ == nullptr); in RestockQueue() 105 newHead->next_ = std::exchange(head_, newHead); in RestockQueue() 107 return head_ != nullptr; in RestockQueue() 111 alignas(alignof(EtsLong)) Node *head_; member in ark::ets::EtsWaitersList
|
/arkcompiler/runtime_core/static_core/runtime/tooling/sampler/ |
H A D | lock_free_queue.cpp | 53 Node *head = head_.load(std::memory_order_acquire); in Pop() 59 Node *head2 = head_.load(std::memory_order_acquire); in Pop() 74 if (head_.compare_exchange_weak(head, newHead)) { in Pop() 86 Node *head = head_.load(std::memory_order_acquire); in FindValue()
|
H A D | lock_free_queue.h | 31 head_.store(dummyNode, std::memory_order_relaxed); in LockFreeQueue() 43 delete head_; in ~LockFreeQueue() 77 std::atomic<Node *> head_; member in ark::tooling::sampler::LockFreeQueue
|
/arkcompiler/runtime_core/static_core/libpandabase/taskmanager/utils/ |
H A D | sp_sc_lock_free_queue.h | 54 head_.store(node, std::memory_order_release); in SPSCLockFreeQueue() 85 auto *head = head_.load(std::memory_order_acquire); in Pop() 100 head_.store(nextHead, std::memory_order_release); in Pop() 130 ASSERT(head_ == tail_); in ~SPSCLockFreeQueue() 132 auto head = head_.load(std::memory_order_acquire); in ~SPSCLockFreeQueue() 157 alignas(ark::COHERENCY_LINE_SIZE) std::atomic<QueueNode *> head_ = {nullptr}; member in ark::taskmanager::internal::SPSCLockFreeQueue
|
H A D | sp_mc_lock_free_queue.h | 205 if (LIKELY(head_.compare_exchange_strong(currentHead, nextHead, std::memory_order_acq_rel))) { in CompareAndSetNextHead() 218 alignas(ark::COHERENCY_LINE_SIZE) std::atomic<NodePtr> head_ {nullptr}; 234 head_.store(node, std::memory_order_release); in SPMCLockFreeQueue() 247 auto head = head_.load(std::memory_order_acquire); in ~SPMCLockFreeQueue() 337 auto *currentHead = LoadAtomicPtr(head_); 348 // Check if need to change head_. 360 // Else we can assume that pop_index was moved but head_ may still be old one, we should check it 362 // Help to change head_ to a new one and return it's first element
|
/arkcompiler/runtime_core/static_core/runtime/ |
H A D | monitor.h | 40 return head_ == nullptr; in Empty() 45 return *head_; in Front() 56 std::swap(head_, other.head_); in Swap() 63 head_ = nullptr; in Clear() 70 T *head_ {nullptr};
|
H A D | monitor.cpp | 40 auto prev = head_; in RemoveIf() 41 for (auto current = head_; current != nullptr; current = current->GetNextWait()) { in RemoveIf() 57 head_ = other.head_; in Splice() 59 T *last = head_; in Splice() 62 last->SetWaitNext(other.head_); in Splice() 70 if (current == head_) { in EraseAfter() 71 head_ = current->GetNextWait(); in EraseAfter() 80 head_ = head_ in PopFront() [all...] |
/arkcompiler/ets_runtime/ecmascript/compiler/ |
H A D | early_elimination.cpp | 480 auto lhs = this->head_; in Merge() 481 auto rhs = that->head_; in Merge() 501 this->head_ = lhs; in Merge() 504 Node* node = chunk_->New<Node>(gateStack.top(), head_); in Merge() 507 this->head_ = node; in Merge() 522 auto lhs = this->head_; in Equals() 523 auto rhs = that->head_; in Equals() 541 for (Node* node = head_; node != nullptr; node = node->next) { in LookupCheckedNode() 552 for (Node* node = head_; node != nullptr; node = node->next) { in GetGates() 563 for (Node* node = head_; nod in LookupNode() [all...] |
H A D | early_elimination.h | 43 head_ = other->head_; in CopyFrom() 55 Node *head_{nullptr};
|
/arkcompiler/runtime_core/static_core/runtime/mem/ |
H A D | humongous_obj_allocator-inl.h | 353 if (head_ == pool) { in Pop() 354 head_ = pool->GetNext(); in Pop() 355 LOG_HUMONGOUS_OBJ_ALLOCATOR(DEBUG) << "It was a pointer to list head. Change head to " << std::hex << head_; in Pop() local 364 if (head_ != nullptr) { in Insert() 365 head_->SetPrev(pool); in Insert() 369 pool->SetNext(head_); in Insert() 371 head_ = pool; in Insert() 379 MemoryPoolHeader *curPool = head_; in FindSuitablePool() 394 MemoryPoolHeader *curPool = head_; in IsInThisList() 409 MemoryPoolHeader *currentPool = head_; in IterateAndPopOverPools() [all...] |
H A D | runslots_allocator.h | 176 head_ = nullptr; in RunSlotsList() 187 return head_; in GetHead() 205 RunSlotsType *current = head_; in IsInThisList() 221 RunSlotsType *head_; member in ark::mem::RunSlotsAllocator::RunSlotsList
|
H A D | humongous_obj_allocator.h | 251 return head_; in GetListHead() 257 MemoryPoolHeader *head_ {nullptr};
|
H A D | runslots_allocator-inl.h | 420 LOG_RUNSLOTS_ALLOCATOR(DEBUG) << " List was empty, setup head_ and tail_"; in PushToTail() 421 // this means that head_ == nullptr too in PushToTail() 422 head_ = runslots; in PushToTail() 437 if (UNLIKELY(head_ == nullptr)) { in PopFromHead() 441 RunSlotsType *headRunslots = head_; in PopFromHead() 443 head_ = headRunslots->GetNextRunSlots(); in PopFromHead() 444 if (head_ == nullptr) { in PopFromHead() 449 head_->SetPrevRunSlots(nullptr); in PopFromHead() 470 head_ = nullptr; in PopFromTail() 482 LOG_RUNSLOTS_ALLOCATOR(DEBUG) << "head_ in PopFromList() local [all...] |
/arkcompiler/ets_runtime/ecmascript/dfx/hprof/ |
H A D | heap_sampling.cpp | 29 samplingInfo_->head_.callFrameInfo_.functionName_ = "(root)"; in HeapSampling() 30 samplingInfo_->head_.id_ = CreateNodeId(); in HeapSampling() 43 CalNodeSelfSize(&samplingInfo_->head_); in GetAllocationProfile() 172 SamplingNode *node = &(samplingInfo_->head_); in PushAndGetNode()
|
H A D | heap_sampling.h | 54 struct SamplingNode head_; member
|
/arkcompiler/toolchain/tooling/test/ |
H A D | pt_types_test.cpp | 858 samplingInfo.head_.selfSize_ = 0; in HWTEST_F_L0() 859 samplingInfo.head_.id_ = 0; in HWTEST_F_L0() 860 samplingInfo.head_.callFrameInfo_.codeType_ = "codetype"; in HWTEST_F_L0() 861 samplingInfo.head_.callFrameInfo_.columnNumber_ = 21; in HWTEST_F_L0() 862 samplingInfo.head_.callFrameInfo_.functionName_ = "TestSampling"; in HWTEST_F_L0() 863 samplingInfo.head_.callFrameInfo_.lineNumber_ = 221; in HWTEST_F_L0() 864 samplingInfo.head_.callFrameInfo_.scriptId_ = 1; in HWTEST_F_L0() 865 samplingInfo.head_.callFrameInfo_.url_ = "url"; in HWTEST_F_L0() 872 ASSERT_TRUE(selfSize == samplingInfo.head_.selfSize_); in HWTEST_F_L0() 874 ASSERT_TRUE(id == samplingInfo.head_ in HWTEST_F_L0() [all...] |
/arkcompiler/runtime_core/static_core/plugins/ets/tests/runtime/types/ |
H A D | ets_sync_primitives_test.cpp | 60 return std::vector<MirrorFieldInfo> {MIRROR_FIELD_INFO(EtsWaitersList, head_, "head"), in GetWaitersListMembers()
|
/arkcompiler/ets_runtime/ecmascript/dfx/hprof/tests/ |
H A D | heap_sampling_test.cpp | 88 EXPECT_TRUE(result->head_.callFrameInfo_.functionName_ == "(root)"); in HWTEST_F_L0()
|
/arkcompiler/runtime_core/compiler/optimizer/ir/ |
H A D | inst.h | 515 explicit UserList(PointerType head) : head_(head) {} 520 return Iterator(*head_); 530 return ConstIterator(*head_); 539 return *head_ == nullptr; 543 return **head_; 547 return **head_; 551 PointerType head_ {nullptr};
|