/arkcompiler/ets_runtime/ecmascript/compiler/assembler/tests/ |
H A D | assembler_x64_test.cpp | 134 size_t current = 0; in HWTEST_F_L0() local 136 uint32_t value = masm.GetU8(current++); in HWTEST_F_L0() 139 value = masm.GetU8(current++); in HWTEST_F_L0() 141 value = masm.GetU8(current++); in HWTEST_F_L0() 144 value = masm.GetU8(current++); in HWTEST_F_L0() 148 value = masm.GetU8(current++); in HWTEST_F_L0() 150 value = masm.GetU8(current++); in HWTEST_F_L0() 152 value = masm.GetU8(current++); in HWTEST_F_L0() 155 value = masm.GetU8(current++); in HWTEST_F_L0() 157 value = masm.GetU8(current in HWTEST_F_L0() 182 size_t current = 0; HWTEST_F_L0() local 263 size_t current = 0; HWTEST_F_L0() local 324 size_t current = 0; HWTEST_F_L0() local 403 size_t current = 0; HWTEST_F_L0() local [all...] |
/arkcompiler/ets_runtime/ecmascript/mem/ |
H A D | free_object_list.cpp | 61 FreeObjectSet<T> *current = sets_[type]; in Allocate() local 62 while (current != nullptr) { in Allocate() 63 if (current->Available() < size) { in Allocate() 64 current = current->next_; in Allocate() 70 object = current->ObtainSmallFreeObject(size); in Allocate() 72 next = current->next_; in Allocate() 73 object = current->ObtainLargeFreeObject(size); in Allocate() 75 if (current->Empty()) { in Allocate() 76 RemoveSet(current); in Allocate() 107 FreeObjectSet<T> *current = sets_[type]; LookupSuitableFreeObject() local 314 FreeObjectSet<T> *current = sets_[type]; EnumerateSets() local [all...] |
H A D | sparse_space.cpp | 119 EnumerateRegions([this](Region *current) { in PrepareSweeping() 120 if (!current->InCollectSet()) { in PrepareSweeping() 122 current->IsGCFlagSet(RegionGCFlags::HAS_BEEN_SWEPT))) { // LOCV_EXCL_BR_LINE in PrepareSweeping() 123 LOG_ECMA(FATAL) << "Region should not be swept before PrepareSweeping: " << current; in PrepareSweeping() 125 IncreaseLiveObjectSize(current->AliveObject()); in PrepareSweeping() 126 current->ResetWasted(); in PrepareSweeping() 127 current->SwapOldToNewRSetForCS(); in PrepareSweeping() 128 current->SwapLocalToShareRSetForCS(); in PrepareSweeping() 129 AddSweepingRegion(current); in PrepareSweeping() 139 Region *current in AsyncSweep() local 259 FreeRegion(Region *current, bool isMain) FreeRegion() argument 280 FreeLiveRange(Region *current, uintptr_t freeStart, uintptr_t freeEnd, bool isMain) FreeLiveRange() argument [all...] |
H A D | space-inl.h | 42 Region *current = regionList_.GetFirst(); in EnumerateRegions() local 43 if (current == nullptr) { in EnumerateRegions() 49 while (current != end) { in EnumerateRegions() 50 auto next = current->GetNext(); in EnumerateRegions() 51 cb(current); in EnumerateRegions() 52 current = next; in EnumerateRegions() 55 if (current != nullptr) { in EnumerateRegions() 56 cb(current); in EnumerateRegions()
|
H A D | concurrent_sweeper.cpp | 148 void ConcurrentSweeper::ClearRSetInRange(Region *current, uintptr_t freeStart, uintptr_t freeEnd) in ClearRSetInRange() argument 152 current->AtomicClearSweepingOldToNewRSetInRange(freeStart, freeEnd); in ClearRSetInRange() 153 current->AtomicClearSweepingLocalToShareRSetInRange(freeStart, freeEnd); in ClearRSetInRange() 155 current->ClearOldToNewRSetInRange(freeStart, freeEnd); in ClearRSetInRange() 156 current->ClearLocalToShareRSetInRange(freeStart, freeEnd); in ClearRSetInRange() 158 current->ClearCrossRegionRSetInRange(freeStart, freeEnd); in ClearRSetInRange()
|
H A D | incremental_marker.cpp | 79 heap_->GetAppSpawnSpace()->EnumerateRegions([](Region *current) { in Initialize() 80 current->ClearMarkGCBitset(); in Initialize() 81 current->ClearCrossRegionRSet(); in Initialize() 83 heap_->EnumerateNonNewSpaceRegions([](Region *current) { in Initialize() 84 current->ResetAliveObject(); in Initialize()
|
H A D | linear_space.cpp | 129 auto current = GetCurrentRegion(); in IterateOverObjects() local 133 if (region == current) { in IterateOverObjects() 299 EnumerateRegions([this, &spaceName](Region *current) { in ReclaimRegions() 300 LOG_GC(DEBUG) << "Clear region from: " << current << " to " << spaceName; in ReclaimRegions() 301 current->DeleteLocalToShareRSet(); in ReclaimRegions() 302 DecreaseCommitted(current->GetCapacity()); in ReclaimRegions() 303 DecreaseObjectSize(current->GetSize()); in ReclaimRegions() 304 current->Invalidate(); in ReclaimRegions() 305 current->ClearMembers(); in ReclaimRegions() 306 void *mem = ToVoidPtr(current in ReclaimRegions() [all...] |
H A D | partial_gc.cpp | 79 heap_->GetAppSpawnSpace()->EnumerateRegions([](Region *current) { in Initialize() 80 current->ClearMarkGCBitset(); in Initialize() 81 current->ClearCrossRegionRSet(); in Initialize() 83 heap_->EnumerateNonNewSpaceRegions([](Region *current) { in Initialize() 84 current->ResetAliveObject(); in Initialize() 153 heap_->GetOldSpace()->EnumerateRegions([](Region *current) { in Sweep() 154 current->SetRegionAliveSize(); in Sweep()
|
/arkcompiler/runtime_core/static_core/verification/config/parse/ |
H A D | config_parse.cpp | 34 Section current; member 59 c.current.items.push_back(std::move(s)); in HandleLine() 68 c.sections.push_back(c.current); in HandleSection() 69 c.current.sections.clear(); in HandleSection() 72 c.current = c.sections.back(); in HandleSection() 76 c.sections.back().sections.push_back(c.current); in HandleSection() 77 c.current = c.sections.back(); in HandleSection() 99 c.current.name = PandaString {from, to}; in ParseConfig() 130 context.current.name = "config"; in ParseConfig() 133 cfg = context.current; in ParseConfig() [all...] |
/arkcompiler/ets_runtime/ecmascript/ |
H A D | js_for_in_iterator.cpp | 51 JSTaggedValue current = receiver; in NeedCheckProperty() local 52 while (current.IsHeapObject()) { in NeedCheckProperty() 53 if (!current.IsJSObject() || current.GetTaggedObject()->GetClass()->HasDeleteProperty()) { in NeedCheckProperty() 56 current = JSObject::GetPrototype(current); in NeedCheckProperty() 63 JSMutableHandle<JSTaggedValue> current(thread, receiver.GetTaggedValue()); in HasProperty() 64 while (current->IsHeapObject()) { in HasProperty() 66 bool has = JSTaggedValue::GetOwnProperty(thread, current, key, desc); in HasProperty() 71 current in HasProperty() [all...] |
H A D | ecma_global_storage.h | 371 T *current = nullptr; in IterateUsageGlobal() local 373 current = next; in IterateUsageGlobal() 374 next = reinterpret_cast<T *>(current->GetNext()); in IterateUsageGlobal() 375 ASSERT(current != next); in IterateUsageGlobal() 376 callback(current); in IterateUsageGlobal() 421 NodeList<T> *current = nullptr; in ~EcmaGlobalStorage() local 423 current = next; in ~EcmaGlobalStorage() 424 next = current->GetNext(); in ~EcmaGlobalStorage() 425 current->IterateUsageGlobal([] (T *node) { in ~EcmaGlobalStorage() 429 allocator_->Delete(current); in ~EcmaGlobalStorage() 482 NodeList<T> *current = nullptr; IterateUsageGlobal() local 495 NodeList<WeakNode> *current = nullptr; IterateWeakUsageGlobal() local [all...] |
H A D | property_accessor.cpp | 77 JSTaggedValue current = JSTaggedValue::GetPrototype(thread_, receiver_); in CollectPrototypeInfo() local 79 while (current.IsHeapObject()) { in CollectPrototypeInfo() 80 if (current.IsSlowKeysObject()) { in CollectPrototypeInfo() 84 JSObject *currentObj = JSObject::Cast(current.GetTaggedObject()); in CollectPrototypeInfo() 110 current = JSObject::GetPrototype(current); in CollectPrototypeInfo() 205 JSMutableHandle<JSTaggedValue> current(thread_, receiver_); in GetKeysFast() 206 while (current->IsHeapObject()) { in GetKeysFast() 207 JSObject::AppendOwnEnumPropertyKeys(thread_, JSHandle<JSObject>(current), keyArray, &keysNum, shadowQueue); in GetKeysFast() 209 JSObject::ClearHasDeleteProperty(current); in GetKeysFast() [all...] |
H A D | runtime.cpp | 140 // send all current suspended requests to the new thread in RegisterThread() 155 void Runtime::SuspendAll(JSThread *current) in SuspendAll() argument 157 ASSERT(current != nullptr); in SuspendAll() 158 ASSERT(!current->IsInRunningState()); in SuspendAll() 160 ASSERT(!current->HasLaunchedSuspendAll()); in SuspendAll() 161 current->LaunchSuspendAll(); in SuspendAll() 163 SuspendAllThreadsImpl(current); in SuspendAll() 166 void Runtime::ResumeAll(JSThread *current) in ResumeAll() argument 168 ASSERT(current != nullptr); in ResumeAll() 169 ASSERT(!current in ResumeAll() 177 SuspendAllThreadsImpl(JSThread *current) SuspendAllThreadsImpl() argument 235 ResumeAllThreadsImpl(JSThread *current) ResumeAllThreadsImpl() argument [all...] |
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/options/ |
H A D | yaml_document.py | 65 current: Any = self._document 67 if current and isinstance(current, dict) and part in current.keys(): 68 current = current.get(part) 71 if current is None or isinstance(current, (bool, int, list, str)): 72 return current 74 Log.exception_and_raise(_LOGGER, f"Unsupported value type '{type(current)}' fo [all...] |
/arkcompiler/ets_runtime/ecmascript/compiler/ |
H A D | lexical_env_specialization_pass.cpp | 213 GateRef current = vec.back(); in HasNotdomStLexVarOrCall() local 214 visited.emplace_back(current); in HasNotdomStLexVarOrCall() 216 if (current != next) { in HasNotdomStLexVarOrCall() 217 if (acc_.GetOpCode(current) == OpCode::JS_BYTECODE) { in HasNotdomStLexVarOrCall() 218 LookUpNotDomStLexVarOrCall(current, next); in HasNotdomStLexVarOrCall() 220 for (size_t i = 0; i < acc_.GetDependCount(current); i++) { in HasNotdomStLexVarOrCall() 221 GateRef dependIn = acc_.GetDep(current, i); in HasNotdomStLexVarOrCall() 230 void LexicalEnvSpecializationPass::LookUpNotDomStLexVarOrCall(GateRef current, GateRef next) in LookUpNotDomStLexVarOrCall() argument 232 EcmaOpcode ecmaOpcode = acc_.GetByteCodeOpcode(current); in LookUpNotDomStLexVarOrCall() 234 if (current ! in LookUpNotDomStLexVarOrCall() [all...] |
H A D | combined_pass_visitor.cpp | 141 Edge& current = workList_.back(); in VisitGraph() local 142 VisitTopGate(current); in VisitGraph() 191 void CombinedPassVisitor::VisitTopGate(Edge& current) in VisitTopGate() argument 193 GateRef gate = current.GetGate(); in VisitTopGate() 200 auto start = current.GetIndex(); in VisitTopGate() 213 current.SetIndex(i + 1); in VisitTopGate() 226 current.SetIndex(i + 1); in VisitTopGate() 256 Edge current = workList_[i]; in PrintStack() local 257 GateRef gate = current.GetGate(); in PrintStack()
|
/arkcompiler/ets_runtime/ecmascript/base/ |
H A D | json_parser.cpp | 528 Text current = current_; in ParseNumber() local 550 std::string strNum(current, end_ + 1); in ParseNumber() 598 for (Text current = current_; current < last; ++current) { in ParseStringLength() 599 T c = *current; in ParseStringLength() 601 end_ = current; in ParseStringLength() 604 if (UNLIKELY(!CheckBackslash(current, last, isAscii))) { in ParseStringLength() 917 Text current = current_; 919 if (*current [all...] |
/arkcompiler/ets_runtime/ecmascript/pgo_profiler/ |
H A D | pgo_profiler_layout.h | 418 auto current = const_cast<PGOLayoutDescInfo *>(GetFirstProperty()); in Merge() local 419 desc.IterateProps([this, ¤t] (const PropertyDesc &propDesc) { in Merge() 422 new (current) PGOLayoutDescInfo(key, type); in Merge() 423 current = const_cast<PGOLayoutDescInfo *>(GetNextProperty(current)); in Merge() 472 const PGOLayoutDescInfo *GetNextProperty(const PGOLayoutDescInfo *current) const in GetNextProperty() 474 return reinterpret_cast<const PGOLayoutDescInfo *>(reinterpret_cast<uintptr_t>(current) + current->Size()); in GetNextProperty() 506 auto current = const_cast<PGOLayoutDescInfo *>(GetProperty()); in Merge() local 510 new (current) PGOLayoutDescInf in Merge() 624 auto current = GetNext(last); Convert() local [all...] |
/arkcompiler/ets_runtime/ecmascript/napi/include/ |
H A D | jsnapi.h | 459 Global<T>::Global(const EcmaVM *vm, const Local<S> ¤t) : vm_(vm) in Global() argument 461 if (!current.IsEmpty()) { in Global() 462 address_ = JSNApi::GetGlobalHandleAddr(vm_, reinterpret_cast<uintptr_t>(*current)); in Global() 468 Global<T>::Global(const EcmaVM *vm, const Global<S> ¤t) : vm_(vm) in Global() argument 470 if (!current.IsEmpty()) { in Global() 471 address_ = JSNApi::GetGlobalHandleAddr(vm_, reinterpret_cast<uintptr_t>(*current)); in Global() 476 CopyableGlobal<T>::CopyableGlobal(const EcmaVM *vm, const Local<T> ¤t) : vm_(vm) in CopyableGlobal() argument 478 if (!current.IsEmpty()) { in CopyableGlobal() 479 address_ = JSNApi::GetGlobalHandleAddr(vm_, reinterpret_cast<uintptr_t>(*current)); in CopyableGlobal() 485 CopyableGlobal<T>::CopyableGlobal(const EcmaVM *vm, const Local<S> ¤t) argument 606 Local(const EcmaVM *vm, const CopyableGlobal<T> ¤t) Local() argument 612 Local(const EcmaVM *vm, const Global<T> ¤t) Local() argument [all...] |
/arkcompiler/runtime_core/static_core/runtime/methodtrace/ |
H A D | trace.cpp | 37 timespec current {}; in SystemMicroSecond() 38 clock_gettime(CLOCK_MONOTONIC, ¤t); in SystemMicroSecond() 40 return static_cast<uint64_t>(current.tv_sec) * UINT64_C(1000000) + // 1000000 - time in SystemMicroSecond() 41 static_cast<uint64_t>(current.tv_nsec) / UINT64_C(1000); // 1000 - time in SystemMicroSecond() 46 timespec current {}; in RealTimeSecond() 47 clock_gettime(CLOCK_REALTIME, ¤t); in RealTimeSecond() 49 return static_cast<uint64_t>(current.tv_sec); in RealTimeSecond() 61 timespec current {}; in GetCpuMicroSecond() 62 clock_gettime(clockId, ¤t); in GetCpuMicroSecond() 64 return static_cast<uint64_t>(current in GetCpuMicroSecond() [all...] |
/arkcompiler/runtime_core/static_core/runtime/ |
H A D | mt_thread_manager.cpp | 75 auto current = MTManagedThread::GetCurrent(); in DeregisterSuspendedThreads() local 82 // Do not deregister current thread (which should be in status NATIVE) as HasNoActiveThreads in DeregisterSuspendedThreads() 84 if (thread == current) { in DeregisterSuspendedThreads() 107 // All threads except current are blocked (have BLOCKED or NATIVE status) in DeregisterSuspendedThreads() 109 return StopThreadsOnTerminationLoops(current); in DeregisterSuspendedThreads() 111 // Sanity check, we should get at least current thread in that list. in DeregisterSuspendedThreads() 126 bool MTThreadManager::StopThreadsOnTerminationLoops(MTManagedThread *current) in StopThreadsOnTerminationLoops() argument 128 if (!LockOrderGraph::CheckForTerminationLoops(threads_, daemonThreads_, current)) { in StopThreadsOnTerminationLoops() 137 if (thread != current) { in StopThreadsOnTerminationLoops() 337 MTManagedThread *current in SuspendAndWaitThreadByInternalThreadId() local [all...] |
/arkcompiler/ets_runtime/ecmascript/mem/shared_heap/ |
H A D | shared_space.cpp | 206 EnumerateRegions([this](Region *current) { in PrepareSweeping() 207 IncreaseLiveObjectSize(current->AliveObject()); in PrepareSweeping() 208 current->ResetWasted(); in PrepareSweeping() 209 AddSweepingRegion(current); in PrepareSweeping() 218 Region *current = GetSweepingRegionSafe(); in AsyncSweep() local 219 while (current != nullptr) { in AsyncSweep() 220 FreeRegion(current, isMain); in AsyncSweep() 223 AddSweptRegionSafe(current); in AsyncSweep() 225 current = GetSweepingRegionSafe(); in AsyncSweep() 233 EnumerateRegions([this](Region *current) { in Sweep() 301 FreeRegion(Region *current, bool isMain) FreeRegion() argument [all...] |
H A D | shared_concurrent_marker.cpp | 118 sHeap_->GetAppSpawnSpace()->EnumerateRegions([](Region *current) { in InitializeMarking() 119 current->ClearMarkGCBitset(); in InitializeMarking() 121 sHeap_->EnumerateOldSpaceRegions([](Region *current) { in InitializeMarking() 122 ASSERT(current->InSharedSweepableSpace()); in InitializeMarking() 123 current->ResetAliveObject(); in InitializeMarking()
|
/arkcompiler/runtime_core/bytecode_optimizer/constant_propagation/ |
H A D | constant_propagation.cpp | 178 auto current = GetOrCreateDefaultLattice(inst); in VisitDefault() local 179 if (current->IsBottomElement()) { in VisitDefault() 182 CheckAndAddToSsaEdge(inst, current, BottomElement::GetInstance()); in VisitDefault() 211 auto current = propagation->GetOrCreateDefaultLattice(inst); in VisitCompare() local 212 if (current->IsBottomElement()) { in VisitCompare() 224 propagation->CheckAndAddToSsaEdge(inst, current, element); in VisitCompare() 232 auto current = propagation->GetOrCreateDefaultLattice(inst); in VisitIntrinsic() local 233 if (current->IsBottomElement()) { in VisitIntrinsic() 239 propagation->CheckAndAddToSsaEdge(inst, current, element); in VisitIntrinsic() 274 propagation->CheckAndAddToSsaEdge(inst, current, elemen in VisitIntrinsic() 282 auto current = propagation->GetOrCreateDefaultLattice(inst); VisitCastValueToAnyType() local 311 auto current = propagation->GetOrCreateDefaultLattice(inst); VisitConstant() local 344 auto current = propagation->GetOrCreateDefaultLattice(inst); VisitLoadString() local 358 auto current = propagation->GetOrCreateDefaultLattice(inst); VisitPhi() local 666 CheckAndAddToSsaEdge(Inst *inst, LatticeElement *current, LatticeElement *new_lattice) CheckAndAddToSsaEdge() argument [all...] |
/arkcompiler/runtime_core/static_core/runtime/mem/ |
H A D | freelist_allocator-inl.h | 107 // We must update some values in current memory_block in Alloc() 198 // | 0 | 0 | over mem blocks | current block pointer | 199 // | | | and current block | | 214 // | 3 | 0 | wrong value to | current block pointer - points to wrong memory | 262 // and update current block size. Therefore, we have a valid pointer to next memory block. in IterateOverObjects() 357 // This means that current pool is the last in VisitAndRemoveFreePools() 366 // This means that current pool is the first in VisitAndRemoveFreePools() 409 // In the second case, this object may not crosses the border of the current range. in IterateOverObjectsInRange() 410 // (but there is an object stored after it, which crosses the current range). in IterateOverObjectsInRange() 661 for (FreeListHeader *current in FindSuitableBlockInList() 702 FreeListHeader *current = GetFirstBlock(index); ReleaseFreeMemoryBlocks() local 724 FreeListHeader *current = GetFirstBlock(index); FindTheMostSuitableBlockInOrderedList() local [all...] |