/ark/js_runtime/ecmascript/ |
D | ecma_global_storage.h | 39 NodeList *current = nullptr; in ~EcmaGlobalStorage() local 41 current = next; in ~EcmaGlobalStorage() 42 next = current->GetNext(); in ~EcmaGlobalStorage() 43 allocator_->Delete(current); in ~EcmaGlobalStorage() 48 current = next; in ~EcmaGlobalStorage() 49 next = current->GetNext(); in ~EcmaGlobalStorage() 50 allocator_->Delete(current); in ~EcmaGlobalStorage() 198 Node *current = nullptr; in IterateUsageGlobal() local 200 current = next; in IterateUsageGlobal() 201 next = current->GetNext(); in IterateUsageGlobal() [all …]
|
D | js_stable_array.cpp | 249 int current = 0; in Join() local 254 newString->WriteData(static_cast<char>(sep), current); in Join() 256 … newString->WriteData(*sepStringHandle, current, allocateLength - current, sepLength); in Join() 258 current += sepLength; in Join() 262 newString->WriteData(*nextStr, current, allocateLength - current, nextLength); in Join() 263 current += nextLength; in Join()
|
D | js_object.cpp | 836 PropertyDescriptor current(thread); in OrdinaryDefineOwnProperty() local 837 op.ToPropertyDescriptor(current); in OrdinaryDefineOwnProperty() 839 return ValidateAndApplyPropertyDescriptor(&op, extensible, desc, current); in OrdinaryDefineOwnProperty() 849 PropertyDescriptor current(thread); in OrdinaryDefineOwnProperty() local 850 op.ToPropertyDescriptor(current); in OrdinaryDefineOwnProperty() 851 return ValidateAndApplyPropertyDescriptor(&op, extensible, desc, current); in OrdinaryDefineOwnProperty() 856 const PropertyDescriptor ¤t) in ValidateAndApplyPropertyDescriptor() argument 859 if (current.IsEmpty()) { in ValidateAndApplyPropertyDescriptor() 893 if ((!desc.HasEnumerable() || desc.IsEnumerable() == current.IsEnumerable()) && in ValidateAndApplyPropertyDescriptor() 894 (!desc.HasConfigurable() || desc.IsConfigurable() == current.IsConfigurable()) && in ValidateAndApplyPropertyDescriptor() [all …]
|
/ark/js_runtime/ecmascript/base/ |
D | json_parser.h | 140 Text current = current_; in ParseNumber() local 159 std::string strNum(current, end_ + 1); in ParseNumber() 488 Text current = current_; in ReadNumberRange() local 489 if (*current == '0') { in ReadNumberRange() 491 current++; in ReadNumberRange() 492 } else if (*current == '-') { in ReadNumberRange() 493 current++; in ReadNumberRange() 494 if (*current == '0') { in ReadNumberRange() 496 current++; in ReadNumberRange() 500 while (current != range_) { in ReadNumberRange() [all …]
|
/ark/js_runtime/ecmascript/mem/ |
D | free_object_list.cpp | 56 FreeObjectSet *current = sets_[type]; in Allocate() local 57 while (current != nullptr) { in Allocate() 58 if (current->Available() < size) { in Allocate() 59 current = current->next_; in Allocate() 65 object = current->ObtainSmallFreeObject(size); in Allocate() 67 next = current->next_; in Allocate() 68 object = current->ObtainLargeFreeObject(size); in Allocate() 70 if (current->Empty()) { in Allocate() 71 RemoveSet(current); in Allocate() 72 current->Rebuild(); in Allocate() [all …]
|
D | sparse_space.cpp | 120 EnumerateRegions([this](Region *current) { in PrepareSweeping() argument 121 if (!current->InCollectSet()) { in PrepareSweeping() 122 IncrementLiveObjectSize(current->AliveObject()); in PrepareSweeping() 123 current->ResetWasted(); in PrepareSweeping() 124 AddSweepingRegion(current); in PrepareSweeping() 134 Region *current = GetSweepingRegionSafe(); in AsyncSweeping() local 135 while (current != nullptr) { in AsyncSweeping() 136 FreeRegion(current, isMain); in AsyncSweeping() 139 AddSweptRegionSafe(current); in AsyncSweeping() 141 current = GetSweepingRegionSafe(); in AsyncSweeping() [all …]
|
D | space-inl.h | 41 Region *current = regionList_.GetFirst(); in EnumerateRegions() local 42 if (current == nullptr) { in EnumerateRegions() 48 while (current != end) { in EnumerateRegions() 49 auto next = current->GetNext(); in EnumerateRegions() 50 cb(current); in EnumerateRegions() 51 current = next; in EnumerateRegions() 54 if (current != nullptr) { in EnumerateRegions() 55 cb(current); in EnumerateRegions()
|
D | parallel_evacuation.cpp | 59 heap_->GetFromSpace()->EnumerateRegions([this] (Region *current) { in EvacuateSpace() argument 60 AddFragment(std::make_unique<EvacuationFragment>(this, current)); in EvacuateSpace() 63 heap_->GetOldSpace()->EnumerateCollectRegionSet([this](Region *current) { in EvacuateSpace() argument 64 AddFragment(std::make_unique<EvacuationFragment>(this, current)); in EvacuateSpace() 181 heap_->GetNewSpace()->EnumerateRegions([&] (Region *current) { in UpdateReference() argument 182 if (current->InNewToNewSet()) { in UpdateReference() 183 AddFragment(std::make_unique<UpdateAndSweepNewRegionFragment>(this, current)); in UpdateReference() 186 AddFragment(std::make_unique<UpdateNewRegionFragment>(this, current)); in UpdateReference() 190 heap_->EnumerateOldSpaceRegions([this, &oldRegionCount] (Region *current) { in UpdateReference() argument 191 if (current->InCollectSet()) { in UpdateReference() [all …]
|
D | heap_region_allocator.h | 38 size_t current = annoMemoryUsage_.fetch_add(bytes, std::memory_order_relaxed) + bytes; in IncreaseAnnoMemoryUsage() local 40 …while (current > max && !maxAnnoMemoryUsage_.compare_exchange_weak(max, current, std::memory_order… in IncreaseAnnoMemoryUsage()
|
D | sparse_space.h | 65 void FreeRegion(Region *current, bool isMain = true); 66 void FreeLiveRange(Region *current, uintptr_t freeStart, uintptr_t freeEnd, bool isMain); 132 for (Region *current : collectRegionSet_) { in EnumerateCollectRegionSet() 133 if (current != nullptr) { in EnumerateCollectRegionSet() 134 cb(current); in EnumerateCollectRegionSet()
|
D | linear_space.cpp | 142 EnumerateRegions([&last](Region *current) { in SetWaterLine() argument 143 if (current != last) { in SetWaterLine() 144 current->SetFlag(RegionFlags::BELOW_AGE_MARK); in SetWaterLine() 196 auto current = GetCurrentRegion(); in IterateOverObjects() local 200 if (region == current) { in IterateOverObjects()
|
D | native_area_allocator.h | 82 size_t current = nativeMemoryUsage_.fetch_add(bytes, std::memory_order_relaxed) + bytes; in IncreaseNativeMemoryUsage() local 84 …while (current > max && !maxNativeMemoryUsage_.compare_exchange_weak(max, current, std::memory_ord… in IncreaseNativeMemoryUsage()
|
D | mix_gc.cpp | 60 heap_->EnumerateNonNewSpaceRegions([this](Region *current) { in InitializePhase() argument 61 current->ResetAliveObject(); in InitializePhase()
|
D | space.cpp | 45 EnumerateRegions([this](Region *current) { ClearAndFreeRegion(current); }); in ReclaimRegions() argument
|
D | concurrent_marker.cpp | 125 heap_->EnumerateNonNewSpaceRegions([this](Region *current) { in InitializeMarking() argument 126 current->ResetAliveObject(); in InitializeMarking()
|
D | full_gc.cpp | 56 auto callback = [](Region *current) { in InitializePhase() argument 58 auto rememberset = current->GetOldToNewRememberedSet(); in InitializePhase()
|
/ark/runtime_core/verification/debug/config/ |
D | config_parse.cpp | 31 Section current; member 55 c.current.name = PandaString {from, to}; in ParseConfig() 66 c.current.items.push_back(PandaString {from, to}); in ParseConfig() 79 c.sections.push_back(c.current); in ParseConfig() 80 c.current.sections.clear(); in ParseConfig() 83 c.current = c.sections.back(); in ParseConfig() 87 c.sections.back().sections.push_back(c.current); in ParseConfig() 88 c.current = c.sections.back(); in ParseConfig() 103 context.current.name = "config"; in ParseConfig() 106 cfg = context.current; in ParseConfig()
|
/ark/js_runtime/ecmascript/interpreter/ |
D | frame_handler.cpp | 181 JSTaggedType *current = sp_; in Iterate() local 182 if (current != nullptr) { in Iterate() 184 InterpretedFrame *frame = reinterpret_cast<InterpretedFrame *>(current) - 1; in Iterate() 187 uintptr_t start = ToUintPtr(current); in Iterate() 317 JSTaggedType *current = const_cast<JSTaggedType *>(thread_->GetCurrentSPFrame()); in Iterate() local 318 while (current) { in Iterate() 319 FrameType type = FrameHandler(current).GetFrameType(); in Iterate() 321 InterpretedFrame *frame = InterpretedFrame::GetFrameFromSp(current); in Iterate() 322 InterpretedFrameHandler(current).Iterate(v0, v1); in Iterate() 323 current = frame->GetPrevFrameFp(); in Iterate() [all …]
|
/ark/runtime_core/runtime/mem/ |
D | freelist_allocator-inl.h | 617 FreeListHeader *current = head; in FindMemoryBlock() local 618 while (current != nullptr) { in FindMemoryBlock() 619 if (current->GetSize() < size) { in FindMemoryBlock() 620 current = current->GetNextFree(); in FindMemoryBlock() 625 suitable_block = current; in FindMemoryBlock() 630 suitable_block = current; in FindMemoryBlock() 632 if (suitable_block->GetSize() > current->GetSize()) { in FindMemoryBlock() 633 suitable_block = current; in FindMemoryBlock() 640 current = current->GetNextFree(); in FindMemoryBlock() 686 FreeListHeader *current = GetFirstBlock(index); in ReleaseFreeMemoryBlocks() local [all …]
|
D | runslots_allocator.h | 206 RunSlotsType *current = head_; in IsInThisList() local 207 while (current != nullptr) { in IsInThisList() 208 if (current == runslots) { in IsInThisList() 211 current = current->GetNextRunSlots(); in IsInThisList()
|
/ark/runtime_core/runtime/ |
D | thread_manager.cpp | 122 auto current = MTManagedThread::GetCurrent(); in DeregisterSuspendedThreads() local 133 if (thread != current && CanDeregister(status)) { in DeregisterSuspendedThreads() 297 MTManagedThread *current = MTManagedThread::GetCurrent(); in SuspendAndWaitThreadByInternalThreadId() local 299 ASSERT(current->GetStatus() != ThreadStatus::RUNNING); in SuspendAndWaitThreadByInternalThreadId() 305 ScopedManagedCodeThread sa(current); in SuspendAndWaitThreadByInternalThreadId() 309 ASSERT(current != thread); in SuspendAndWaitThreadByInternalThreadId() 311 if (current->IsSuspended()) { in SuspendAndWaitThreadByInternalThreadId()
|
D | monitor.cpp | 40 for (auto current = head_; current != nullptr; current = current->GetNextWait()) { in RemoveIf() local 41 if (pred(*current)) { in RemoveIf() 43 EraseAfter(prev, current); in RemoveIf() 44 current = prev; in RemoveIf() 46 prev = current; in RemoveIf() 67 void ThreadList<T>::EraseAfter(T *prev, T *current) in EraseAfter() argument 69 if (current == head_) { in EraseAfter() 70 head_ = current->GetNextWait(); in EraseAfter() 72 prev->SetWaitNext(current->GetNextWait()); in EraseAfter()
|
/ark/js_runtime/ecmascript/napi/include/ |
D | jsnapi.h | 73 inline Local(const Local<S> ¤t) : address_(reinterpret_cast<uintptr_t>(*current)) in Local() argument 78 Local(const EcmaVM *vm, const Global<T> ¤t); 153 Global(const EcmaVM *vm, const Local<S> ¤t); 155 Global(const EcmaVM *vm, const Global<S> ¤t); 232 inline Local<T> Escape(Local<T> current) in Escape() argument 236 *(reinterpret_cast<T *>(escapeHandle_)) = **current; in Escape() 945 Global<T>::Global(const EcmaVM *vm, const Local<S> ¤t) : vm_(vm) in Global() argument 947 if (!current.IsEmpty()) { in Global() 948 address_ = JSNApi::GetGlobalHandleAddr(vm_, reinterpret_cast<uintptr_t>(*current)); in Global() 954 Global<T>::Global(const EcmaVM *vm, const Global<S> ¤t) : vm_(vm) in Global() argument [all …]
|
/ark/runtime_core/libpandabase/utils/ |
D | list.h | 284 for (Iterator current = begin(); current != end(); ++current) { in RemoveIf() local 285 if (pred(*current)) { in RemoveIf() 288 current = prev; in RemoveIf() 290 prev = current; in RemoveIf()
|
/ark/js_runtime/ecmascript/napi/ |
D | jsnapi.cpp | 672 JSHandle<JSTaggedValue> current(factory->NewFromString(utf8)); in NewFromUtf8() local 673 return JSNApiHelper::ToLocal<StringRef>(current); in NewFromUtf8() 675 …JSHandle<JSTaggedValue> current(factory->NewFromUtf8(reinterpret_cast<const uint8_t *>(utf8), leng… in NewFromUtf8() local 676 return JSNApiHelper::ToLocal<StringRef>(current); in NewFromUtf8() 947 …JSHandle<JSFunction> current(factory->NewJSFunction(env, reinterpret_cast<void *>(Callback::Regist… in New() local 950 current->SetFunctionExtraInfo(thread, extraInfo.GetTaggedValue()); in New() 951 return JSNApiHelper::ToLocal<FunctionRef>(JSHandle<JSTaggedValue>(current)); in New() 959 …JSHandle<JSFunction> current(factory->NewJSFunction(env, reinterpret_cast<void *>(Callback::Regist… in New() local 963 current->SetFunctionExtraInfo(thread, extraInfo.GetTaggedValue()); in New() 964 return JSNApiHelper::ToLocal<FunctionRef>(JSHandle<JSTaggedValue>(current)); in New() [all …]
|