/arkcompiler/ets_runtime/ecmascript/mem/ |
H A D | work_manager.cpp | 124 WorkNodeHolder &holder = works_.at(i); in Finish() local 125 if (holder.weakQueue_ != nullptr) { in Finish() 126 holder.weakQueue_->FinishMarking(continuousQueue_.at(i)); in Finish() 127 delete holder.weakQueue_; in Finish() 128 holder.weakQueue_ = nullptr; in Finish() 130 if (holder.allocator_ != nullptr) { in Finish() 131 holder.allocator_->Finalize(); in Finish() 132 delete holder.allocator_; in Finish() 133 holder.allocator_ = nullptr; in Finish() 135 holder in Finish() 147 WorkNodeHolder &holder = works_.at(i); Finish() local 163 WorkNodeHolder &holder = works_.at(i); Initialize() local 205 SharedGCWorkNodeHolder &holder = works_.at(i); Initialize() local 225 SharedGCWorkNodeHolder &holder = works_.at(i); Finish() local [all...] |
H A D | concurrent_sweeper.cpp | 74 LockHolder holder(mutexs_[type]); in AsyncSweepSpace() 87 LockHolder holder(mutexs_[i]); in WaitAllTaskFinished() 127 LockHolder holder(mutexs_[type]); in WaitingTaskFinish() 131 LockHolder holder(mutexs_[type]); in WaitingTaskFinish()
|
H A D | concurrent_marker.h | 53 LockHolder holder(taskCountMutex_); in TryIncreaseTaskCounts() 66 LockHolder holder(taskCountMutex_); in DecreaseTaskCounts()
|
/arkcompiler/ets_runtime/test/moduletest/jsonstringifier/ |
H A D | jsonstringifier.js | 154 actual.push({ holder: this, key, value }); 162 holder: { "": { o: false } }, 167 holder: { o: false, replaced: true }, 172 holder: { o: false, replaced: true }, 178 print(actual[0].holder[""] == test_obj); 195 actual.push({ holder: this, key, value }); 204 holder: { "": { o: false, toJSON: toJSON } }, 209 holder: { o: false, replaced: true, nested: { toJSON: nestedToJSON } }, 214 holder: { o: false, replaced: true, nested: { toJSON: nestedToJSON } }, 219 holder [all...] |
/arkcompiler/ets_runtime/ecmascript/taskpool/ |
H A D | task_queue.cpp | 21 LockHolder holder(mtx_); in PostTask() 29 LockHolder holder(mtx_); in PopTask() 46 LockHolder holder(mtx_); in TerminateTask() 60 LockHolder holder(mtx_); in Terminate() 67 LockHolder holder(mtx_); in ForEachTask()
|
H A D | runner.cpp | 43 LockHolder holder(mtx_); in TerminateTask() 62 LockHolder holder(mtxPool_); in TerminateThread() 73 LockHolder holder(mtx_); in ForEachTask() 112 LockHolder holder(mtx_); in RecordThreadId() 118 LockHolder holder(mtx_); in SetRunTask()
|
/arkcompiler/ets_runtime/ecmascript/ |
H A D | object_fast_operator-inl.h | 54 #define CHECK_IS_ON_PROTOTYPE_CHAIN(receiver, holder) \ 55 if (UNLIKELY((receiver) != (holder))) { \ 207 JSTaggedValue holder = receiver; in TryFastGetPropertyByIndex() local 208 auto *hclass = holder.GetTaggedObject()->GetClass(); in TryFastGetPropertyByIndex() 209 JSHandle<JSObject> currentHolder(thread, holder); in TryFastGetPropertyByIndex() 259 JSTaggedValue holder = receiver; in GetPropertyByName() local 261 auto *hclass = holder.GetTaggedObject()->GetClass(); in GetPropertyByName() 265 JSTaggedValue res = FastGetTypeArrayProperty(thread, receiver, holder, key, jsType); in GetPropertyByName() 277 return JSTaggedValue(EcmaStringAccessor(holder).GetLength()); in GetPropertyByName() 281 holder in GetPropertyByName() 414 JSTaggedValue holder = receiver; SetPropertyByName() local 576 JSTaggedValue holder = receiver; GetPropertyByIndex() local 637 JSTaggedValue holder = receiver; SetPropertyByIndex() local 964 CallGetter(JSThread *thread, JSTaggedValue receiver, JSTaggedValue holder, JSTaggedValue value) CallGetter() argument 994 ShouldCallSetter(JSTaggedValue receiver, JSTaggedValue holder, JSTaggedValue accessorValue, PropertyAttributes attr) ShouldCallSetter() argument 1031 FastGetTypeArrayProperty(JSThread *thread, JSTaggedValue receiver, JSTaggedValue holder, JSTaggedValue key, JSType jsType) FastGetTypeArrayProperty() argument 1059 FastSetTypeArrayProperty(JSThread *thread, JSTaggedValue receiver, JSTaggedValue holder, JSTaggedValue key, JSTaggedValue value, JSType jsType) FastSetTypeArrayProperty() argument [all...] |
H A D | object_fast_operator.h | 116 static inline JSTaggedValue CallGetter(JSThread *thread, JSTaggedValue receiver, JSTaggedValue holder, 125 static inline bool ShouldCallSetter(JSTaggedValue receiver, JSTaggedValue holder, JSTaggedValue accessorValue, 140 static inline JSTaggedValue FastGetTypeArrayProperty(JSThread *thread, JSTaggedValue receiver, JSTaggedValue holder, 143 static inline JSTaggedValue FastSetTypeArrayProperty(JSThread *thread, JSTaggedValue receiver, JSTaggedValue holder,
|
H A D | object_operator.h | 44 ObjectOperator(JSThread *thread, const JSHandle<JSObject> &holder, const JSHandle<JSTaggedValue> &key, 47 ObjectOperator(JSThread *thread, const JSHandle<JSTaggedValue> &holder, const JSHandle<JSTaggedValue> &key, 50 ObjectOperator(JSThread *thread, const JSHandle<JSTaggedValue> &holder, 54 ObjectOperator(JSThread *thread, const JSHandle<JSTaggedValue> &holder, uint32_t index, 76 * Create ObjectOperator instance by new operator is forbidden, for the member holder is a JSHandle type. it must 329 static JSTaggedValue ToHolder(const JSHandle<JSTaggedValue> &holder); 343 // found dictionary obj between receriver and holder
|
H A D | object_operator.cpp | 140 ObjectOperator::ObjectOperator(JSThread *thread, const JSHandle<JSObject> &holder, const JSHandle<JSTaggedValue> &key, in ObjectOperator() argument 142 : thread_(thread), holder_(thread, holder.GetTaggedValue()), receiver_(thread, holder.GetTaggedValue()) in ObjectOperator() 148 ObjectOperator::ObjectOperator(JSThread *thread, const JSHandle<JSTaggedValue> &holder, in ObjectOperator() argument 150 : thread_(thread), holder_(thread, holder.GetTaggedValue()), receiver_(thread, holder.GetTaggedValue()) in ObjectOperator() 156 ObjectOperator::ObjectOperator(JSThread *thread, const JSHandle<JSTaggedValue> &holder, uint32_t index, in ObjectOperator() argument 159 holder_(thread, holder.GetTaggedValue()), in ObjectOperator() 160 receiver_(thread, holder.GetTaggedValue()), in ObjectOperator() 166 ObjectOperator::ObjectOperator(JSThread *thread, const JSHandle<JSTaggedValue> &holder, in ObjectOperator() argument 674 JSTaggedValue holder = receiver.GetTaggedValue(); UpdateDataValue() local [all...] |
/arkcompiler/runtime_core/static_core/runtime/mem/gc/g1/ |
H A D | update_remset_worker.cpp | 52 os::memory::LockHolder holder(postBarrierBuffersLock_); in ~UpdateRemsetWorker() 81 os::memory::LockHolder holder(postBarrierBuffersLock_); in AddPostBarrierBuffer() 88 os::memory::LockHolder holder(*queueLock_); in FillFromDefered() 96 os::memory::LockHolder holder(*queueLock_); in FillFromQueue() 121 os::memory::LockHolder holder(postBarrierBuffersLock_); in FillFromPostBarrierBuffers() 256 os::memory::LockHolder holder(updateRemsetLock_); in DrainAllCards() 268 os::memory::LockHolder holder(updateRemsetLock_); in GCProcessCards() 288 os::memory::LockHolder holder(updateRemsetLock_); in GCInvalidateRegions() 301 os::memory::LockHolder holder(updateRemsetLock_); in InvalidateRegions() 320 os::memory::LockHolder holder(updateRemsetLock in SuspendWorkerForGCPause() [all...] |
H A D | update_remset_worker.h | 49 os::memory::LockHolder holder(updateRemsetLock_); in SetUpdateConcurrent() 103 os::memory::LockHolder holder(*queueLock_); in GetQueueSize()
|
/arkcompiler/runtime_core/static_core/runtime/tests/ |
H A D | gc_log_test.cpp | 221 VMHandle<coretypes::Array> holder; 223 holder = VMHandle<coretypes::Array>(thread, objectAllocator.AllocArray(4U, ClassRoot::ARRAY_STRING, false)); 224 holder->Set(0_I, objectAllocator.AllocString(bigStringLen)); 225 holder->Set(1_I, objectAllocator.AllocString(bigStringLen1)); 226 holder->Set(2_I, objectAllocator.AllocString(bigStringLen2)); 227 holder->Set(3_I, objectAllocator.AllocString(smallLen)); 242 holder->Set(0_I, static_cast<ObjectHeader *>(nullptr)); 243 holder->Set(1_I, static_cast<ObjectHeader *>(nullptr)); 244 holder->Set(2_I, static_cast<ObjectHeader *>(nullptr)); 245 holder [all...] |
H A D | explicit_gc_test.cpp | 93 VMHandle<coretypes::Array> holder; in TEST_F() local 97 holder = VMHandle<coretypes::Array>(thread, allocator.AllocArray(2U, ClassRoot::ARRAY_STRING, false)); in TEST_F() 98 holder->Set(0, allocator.AllocString(bigLen)); in TEST_F() 99 holder->Set(1, allocator.AllocString(bigLen)); in TEST_F() 111 ASSERT_TRUE(ObjectToRegion(holder->Get<ObjectHeader *>(1))->HasFlag(RegionFlag::IS_OLD)); in TEST_F() 112 ASSERT_TRUE(ObjectToRegion(holder->Get<ObjectHeader *>(0))->HasFlag(RegionFlag::IS_OLD)); in TEST_F() 114 holder->Set(0, static_cast<ObjectHeader *>(nullptr)); in TEST_F() 115 holder->Set(1, static_cast<ObjectHeader *>(nullptr)); in TEST_F()
|
H A D | g1gc_test.cpp | 1296 void FillHeap(size_t numRegions, VMHandle<coretypes::Array> &holder, size_t startIndex) in FillHeap() argument 1299 EXPECT_LE(numRegions, holder->GetLength()); in FillHeap() 1303 holder->Set(startIndex + i, obj); in FillHeap() 1350 VMHandle<coretypes::Array> holder(thread, ObjectAllocator::AllocArray(NumRegions(), ClassRoot::ARRAY_STRING, true)); in TEST_F() 1353 holder->Set(0, humongousObj); in TEST_F() 1356 FillHeap(numFreeRegions, holder, 1); // occupy 4 tenured regions and 3 young regions in TEST_F() 1360 FillHeap(NumYoungRegions(), holder, numFreeRegions + 1); in TEST_F() local 1366 holder->Set(0, static_cast<ObjectHeader *>(nullptr)); in TEST_F() 1382 VMHandle<coretypes::Array> holder(thread, ObjectAllocator::AllocArray(NumRegions(), ClassRoot::ARRAY_STRING, true)); in TEST_F() 1384 FillHeap(numFreeRegions, holder, in TEST_F() [all...] |
/arkcompiler/runtime_core/static_core/runtime/ |
H A D | string_table.cpp | 86 os::memory::ReadLockHolder holder(tableLock_); in VisitStrings() 96 os::memory::ReadLockHolder holder(tableLock_); in GetString() 110 os::memory::ReadLockHolder holder(tableLock_); in GetString() 123 os::memory::ReadLockHolder holder(tableLock_); in GetString() 136 os::memory::WriteLockHolder holder(tableLock_); in ForceInternString() 145 os::memory::WriteLockHolder holder(tableLock_); in InternString() 221 os::memory::WriteLockHolder holder(tableLock_); in UpdateMoved() 242 os::memory::WriteLockHolder holder(tableLock_); in Sweep() 267 os::memory::ReadLockHolder holder(tableLock_); in Size() 366 os::memory::WriteLockHolder holder(tableLock in VisitRoots() [all...] |
H A D | osr.h | 43 os::memory::ReadLockHolder holder(osrLock_); in Get() 57 os::memory::WriteLockHolder holder(osrLock_); in Set() 63 os::memory::WriteLockHolder holder(osrLock_); in Remove()
|
/arkcompiler/ets_runtime/ecmascript/mem/shared_heap/ |
H A D | shared_concurrent_sweeper.cpp | 70 LockHolder holder(mutexs_[spaceIndex]); in AsyncSweepSpace() 84 LockHolder holder(mutexs_[spaceIndex]); in WaitAllTaskFinished() 123 LockHolder holder(mutexs_[spaceIndex]); in WaitingTaskFinish() 127 LockHolder holder(mutexs_[spaceIndex]); in WaitingTaskFinish()
|
/arkcompiler/runtime_core/static_core/compiler/optimizer/analysis/ |
H A D | catch_inputs.cpp | 53 MarkerHolder holder {GetGraph()}; in RunImpl() 54 Marker visited = holder.GetMarker(); in RunImpl()
|
/arkcompiler/ets_frontend/es2panda/typescript/types/ |
H A D | typeRelation.cpp | 51 RelationResult TypeRelation::CacheLookup(const Type *source, const Type *target, const RelationHolder &holder, in CacheLookup() argument 61 auto res = holder.cached.find(relationKey); in CacheLookup() 62 if (res == holder.cached.end()) { in CacheLookup()
|
/arkcompiler/ets_runtime/ecmascript/ic/ |
H A D | ic_runtime_stub-inl.h | 220 JSTaggedValue holder, in StoreICWithHandler() 239 return StoreICWithHandler(thread, receiver, holder, value, in StoreICWithHandler() 243 auto accessor = LoadFromField(JSObject::Cast(holder.GetTaggedObject()), handlerInfo); in StoreICWithHandler() 282 auto holder = prototypeHandler->GetHolder(); in StorePrototype() local 284 return StoreICWithHandler(thread, receiver, holder, value, handlerInfo); in StorePrototype() 299 auto holder = storeTSHandler->GetHolder(); in StoreWithTS() local 307 auto accessor = LoadFromField(JSObject::Cast(holder.GetTaggedObject()), handlerInfoInt); in StoreWithTS() 444 auto holder = prototypeHandler->GetHolder(); in LoadPrototype() local 446 return LoadICWithHandler(thread, receiver, holder, handlerInfo); in LoadPrototype() 450 JSTaggedValue holder, JSTaggedValu in LoadICWithHandler() 219 StoreICWithHandler(JSThread *thread, JSTaggedValue receiver, JSTaggedValue holder, JSTaggedValue value, JSTaggedValue handler) StoreICWithHandler() argument 449 LoadICWithHandler(JSThread *thread, JSTaggedValue receiver, JSTaggedValue holder, JSTaggedValue handler) LoadICWithHandler() argument [all...] |
/arkcompiler/ets_runtime/ecmascript/jit/ |
H A D | jit.cpp | 135 LockHolder holder(setEnableLock_); in SetEnableOrDisable() 188 LockHolder holder(setEnableLock_); in Destroy() 440 LockHolder holder(threadTaskInfoLock_); in RequestInstallCode() 500 LockHolder holder(threadTaskInfoLock_); in GetRunningTaskCnt() 508 LockHolder holder(threadTaskInfoLock_); in InstallTasks() 566 LockHolder holder(threadTaskInfoLock_); in ClearTaskWithVm() 580 LockHolder holder(threadTaskInfoLock_); in IncJitTaskCnt() 587 LockHolder holder(threadTaskInfoLock_); in DecJitTaskCnt()
|
/arkcompiler/runtime_core/static_core/runtime/tooling/sampler/ |
H A D | sampling_profiler.cpp | 142 os::memory::LockHolder holder(managedThreadsLock_); in AddThreadHandle() 148 os::memory::LockHolder holder(managedThreadsLock_); in EraseThreadHandle() 174 os::memory::LockHolder holder(loadedPfsLock_); in LoadModule() 235 os::memory::LockHolder holder(loadedPfsLock_); in WriteLoadedPandaFiles() 278 os::memory::LockHolder holder(loadedPfsLock_); in CollectModules() 522 os::memory::LockHolder holder(managedThreadsLock_); in SamplerThreadEntry()
|
H A D | sampling_profiler.h | 111 os::memory::LockHolder holder(managedThreadsLock_); in ClearManagedThreadSet() 117 os::memory::LockHolder holder(loadedPfsLock_); in ClearLoadedPfs()
|
/arkcompiler/ets_frontend/ets2panda/checker/types/ |
H A D | typeRelation.cpp | 28 RelationResult TypeRelation::CacheLookup(const Type *source, const Type *target, const RelationHolder &holder, in CacheLookup() argument 36 auto res = holder.cached.find(relationKey); in CacheLookup() 37 if (res == holder.cached.end()) { in CacheLookup()
|