Home
last modified time | relevance | path

Searched refs:storage (Results 1 - 23 of 23) sorted by relevance

/arkcompiler/runtime_core/static_core/runtime/
H A Dclass_helper.cpp27 const uint8_t *ClassHelper::GetDescriptor(const uint8_t *name, PandaString *storage) in GetDescriptor() argument
29 return GetArrayDescriptor(name, 0, storage); in GetDescriptor()
33 const uint8_t *ClassHelper::GetArrayDescriptor(const uint8_t *componentName, size_t rank, PandaString *storage) in GetArrayDescriptor() argument
35 storage->clear(); in GetArrayDescriptor()
36 storage->append(rank, '['); in GetArrayDescriptor()
37 storage->push_back('L'); in GetArrayDescriptor()
38 storage->append(utf::Mutf8AsCString(componentName)); in GetArrayDescriptor()
39 storage->push_back(';'); in GetArrayDescriptor()
40 std::replace(storage->begin(), storage in GetArrayDescriptor()
100 GetPrimitiveDescriptor(panda_file::Type type, PandaString *storage) GetPrimitiveDescriptor() argument
106 GetPrimitiveArrayDescriptor(panda_file::Type type, size_t rank, PandaString *storage) GetPrimitiveArrayDescriptor() argument
115 GetTypeDescriptor(const PandaString &name, PandaString *storage) GetTypeDescriptor() argument
[all...]
H A Dcompiler.cpp519 PandaString storage; in FindClassIdInFile() local
520 auto classId = pfile->GetClassId(ClassHelper::GetDescriptor(utf::CStringAsMutf8(className.c_str()), &storage)); in FindClassIdInFile()
/arkcompiler/runtime_core/static_core/runtime/tests/
H A Dstring_table_test.cpp176 auto storage = thread_->GetVM()->GetGlobalObjectStorage(); in SweepObjectInTable() local
179 auto ref1 = storage->Add(s1, Reference::ObjectType::GLOBAL); in SweepObjectInTable()
181 auto ref2 = storage->Add(s2, Reference::ObjectType::GLOBAL); in SweepObjectInTable()
183 auto ref3 = storage->Add(s3, Reference::ObjectType::GLOBAL); in SweepObjectInTable()
186 table->GetOrInternString(reinterpret_cast<coretypes::String *>(storage->Get(ref1)), pandaClassContext); in SweepObjectInTable()
187 table->GetOrInternString(reinterpret_cast<coretypes::String *>(storage->Get(ref2)), pandaClassContext); in SweepObjectInTable()
188 table->GetOrInternString(reinterpret_cast<coretypes::String *>(storage->Get(ref3)), pandaClassContext); in SweepObjectInTable()
190 storage->Remove(ref2); in SweepObjectInTable()
196 storage->Remove(ref1); in SweepObjectInTable()
197 storage in SweepObjectInTable()
213 auto storage = thread_->GetVM()->GetGlobalObjectStorage(); SweepNonMovableObjectInTable() local
262 auto storage = thread_->GetVM()->GetGlobalObjectStorage(); SweepHumongousObjectInTable() local
[all...]
H A Dstack_walker_test.cpp384 auto storage = Runtime::GetCurrent()->GetPandaVM()->GetGlobalObjectStorage(); in TestModifyManyVregs()
386 storage->Add(ark::mem::AllocateNullifiedPayloadString(1), mem::Reference::ObjectType::GLOBAL); in TestModifyManyVregs()
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/interop_js/
H A Djs_refconvert_function.cpp58 ets_proxy::SharedReferenceStorage *storage = ctx->GetSharedRefStorage(); in WrapImpl() local
59 if (LIKELY(storage->HasReference(obj))) { in WrapImpl()
60 ets_proxy::SharedReference *sharedRef = storage->GetReference(obj); in WrapImpl()
65 ets_proxy::SharedReference *payloadSharedRef = storage->GetNextAlloc(); in WrapImpl()
69 ets_proxy::SharedReference *sharedRef = storage->CreateETSObjectRef(ctx, obj, jsFn); in WrapImpl()
H A Djs_convert.h402 ets_proxy::SharedReferenceStorage *storage = ctx->GetSharedRefStorage(); in JSCONVERT_WRAP() local
410 if (interopObj != nullptr && storage->HasReference(interopObj)) { in JSCONVERT_WRAP()
411 return storage->GetReference(interopObj)->GetJsObject(env); in JSCONVERT_WRAP()
446 [[maybe_unused]] auto *sharedRef = storage->CreateETSObjectRef(ctx, ref, jsPromise); in JSCONVERT_WRAP()
459 ets_proxy::SharedReferenceStorage *storage = ctx->GetSharedRefStorage(); in JSCONVERT_UNWRAP() local
460 ets_proxy::SharedReference *sharedRef = storage->GetReference(env, jsVal); in JSCONVERT_UNWRAP()
473 storage->CreateJSObjectRef(ctx, href.GetPtr(), jsVal); in JSCONVERT_UNWRAP()
H A Djs_job_queue.cpp136 ets_proxy::SharedReferenceStorage *storage = ctx->GetSharedRefStorage(); in CreatePromiseLink() local
137 napi_value jsPromise = storage->GetReference(jsObject)->GetJsObject(env); in CreatePromiseLink()
/arkcompiler/runtime_core/static_core/runtime/include/
H A Dclass_helper.h43 PANDA_PUBLIC_API static const uint8_t *GetDescriptor(const uint8_t *name, PandaString *storage);
45 static const uint8_t *GetTypeDescriptor(const PandaString &name, PandaString *storage);
47 static const uint8_t *GetArrayDescriptor(const uint8_t *componentName, size_t rank, PandaString *storage);
55 static const uint8_t *GetPrimitiveDescriptor(panda_file::Type type, PandaString *storage);
57 static const uint8_t *GetPrimitiveArrayDescriptor(panda_file::Type type, size_t rank, PandaString *storage);
/arkcompiler/runtime_core/static_core/dprof/converter/
H A Dmain.cpp18 #include "dprof/storage.h"
44 std::cerr << "Option \"storage-dir\" is not set" << std::endl; in Parse()
79 auto storage = AppDataStorage::Create(options.GetStorageDir()); in Main() local
80 if (!storage) { in Main()
81 LOG(FATAL, DPROF) << "Cannot init storage"; in Main()
92 storage->ForEachApps([&fm](std::unique_ptr<AppData> &&appData) -> bool { return fm.ProcessingFeatures(*appData); }); in Main()
/arkcompiler/runtime_core/static_core/dprof/daemon/
H A Dmain.cpp19 #include "dprof/storage.h"
116 void Start(AppDataStorage *storage) in Start() argument
119 thread_ = std::thread([this](AppDataStorage *strg) { DoRun(strg); }, storage); in Start()
130 void DoRun(AppDataStorage *storage) in DoRun() argument
153 storage->SaveAppData(*appData); in DoRun()
180 std::cerr << "Option \"storage-dir\" is not set" << std::endl; in Parse()
240 auto storage = AppDataStorage::Create(options.GetStorageDir(), true); in Main() local
241 if (!storage) { in Main()
242 LOG(FATAL, DPROF) << "Cannot init storage"; in Main()
254 worker.Start(storage in Main()
[all...]
/arkcompiler/ets_runtime/ecmascript/
H A Decma_global_storage.h541 inline uintptr_t NewGlobalHandleImplement(NodeList<S> **storage, NodeList<S> **freeList, JSTaggedType value) in NewGlobalHandleImplement() argument
546 if (!(*storage)->IsFull()) { in NewGlobalHandleImplement()
548 S *node = (*storage)->NewNode(thread_, value); in NewGlobalHandleImplement()
571 block->LinkTo(*storage); in NewGlobalHandleImplement()
572 *storage = block; in NewGlobalHandleImplement()
575 S *node = (*storage)->NewNode(thread_, value); in NewGlobalHandleImplement()
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/
H A Dets_coroutine.cpp82 auto *storage = GetVM()->GetGlobalObjectStorage(); in RequestCompletion() local
83 auto *promise = EtsPromise::FromCoreType(storage->Get(promiseRef)); in RequestCompletion()
84 storage->Remove(promiseRef); in RequestCompletion()
/arkcompiler/runtime_core/compiler/tests/
H A Dunit_test.cpp113 PandaString storage; in BuildGraph() local
117 auto klass = extension->GetClass(ClassHelper::GetDescriptor(utf::CStringAsMutf8("_GLOBAL"), &storage)); in BuildGraph()
/arkcompiler/runtime_core/static_core/compiler/tests/
H A Dunit_test.cpp113 PandaString storage; in BuildGraph() local
117 auto klass = extension->GetClass(ClassHelper::GetDescriptor(utf::CStringAsMutf8("_GLOBAL"), &storage)); in BuildGraph()
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/napi/
H A Dets_napi_helpers.cpp337 auto storage = coroutine->GetEtsNapiEnv()->GetEtsReferenceStorage(); in EtsNapiEnd() local
338 storage->PopLocalEtsFrame(nullptr); in EtsNapiEnd()
357 auto storage = coroutine->GetEtsNapiEnv()->GetEtsReferenceStorage(); in EtsNapiObjEnd() local
359 ret = storage->GetEtsObject(etsRef); in EtsNapiObjEnd()
362 storage->PopLocalEtsFrame(nullptr); in EtsNapiObjEnd()
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/interop_js/ets_proxy/
H A Dets_class_wrapper.cpp57 SharedReferenceStorage *storage = ctx->GetSharedRefStorage(); in Wrap() local
58 if (LIKELY(storage->HasReference(etsObject))) { in Wrap()
59 SharedReference *sharedRef = storage->GetReference(etsObject); in Wrap()
175 SharedReferenceStorage *storage = ctx->GetSharedRefStorage(); in WrapImpl() local
176 INTEROP_FATAL_IF(!storage->HasReference(etsObject)); in WrapImpl()
177 SharedReference *sharedRef = storage->GetReference(etsObject); in WrapImpl()
567 SharedReferenceStorage *storage = ctx->GetSharedRefStorage(); in JSCtorCallback() local
568 if (UNLIKELY(!storage->CreateETSObjectRef(ctx, etsObject, jsThis))) { in JSCtorCallback()
/arkcompiler/runtime_core/static_core/runtime/mem/gc/
H A Dgc_root.cpp104 auto *storage = vm_->GetGlobalObjectStorage(); in VisitNonHeapRoots() local
105 if (storage != nullptr) { in VisitNonHeapRoots()
106 storage->VisitObjects(gcRootVisitor, mem::RootType::ROOT_NATIVE_GLOBAL); in VisitNonHeapRoots()
/arkcompiler/runtime_core/assembler/tests/
H A Demitter_test.cpp43 static const uint8_t *GetTypeDescriptor(const std::string &name, std::string *storage) in GetTypeDescriptor() argument
45 *storage = "L" + name + ";"; in GetTypeDescriptor()
46 std::replace(storage->begin(), storage->end(), '.', '/'); in GetTypeDescriptor()
47 return utf::CStringAsMutf8(storage->c_str()); in GetTypeDescriptor()
H A Dassembler_emitter_test.cpp41 static const uint8_t *GetTypeDescriptor(const std::string &name, std::string *storage) in GetTypeDescriptor() argument
43 *storage = "L" + name + ";"; in GetTypeDescriptor()
44 std::replace(storage->begin(), storage->end(), '.', '/'); in GetTypeDescriptor()
45 return utf::CStringAsMutf8(storage->c_str()); in GetTypeDescriptor()
/arkcompiler/runtime_core/static_core/assembler/tests/
H A Demitter_test.cpp45 static const uint8_t *GetTypeDescriptor(const std::string &name, std::string *storage) in GetTypeDescriptor() argument
47 *storage = "L" + name + ";"; in GetTypeDescriptor()
48 std::replace(storage->begin(), storage->end(), '.', '/'); in GetTypeDescriptor()
49 return utf::CStringAsMutf8(storage->c_str()); in GetTypeDescriptor()
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/cg/x86_64/
H A Dx64_emitter.cpp30 MIRStorageClass storage = mirSymbol.GetStorageClass(); in GetSymbolAlign() local
31 if ((kind == kTypeArray) && ((storage == kScGlobal) || (storage == kScPstatic) || (storage == kScFstatic)) && in GetSymbolAlign()
/arkcompiler/runtime_core/static_core/runtime/mem/gc/g1/
H A Dg1-gc.cpp153 auto *storage = in DoRegionCompacting() local
155 if (!this->GetWorkersTaskPool()->AddTask(GCRegionCompactWorkersTask(storage))) { in DoRegionCompacting()
157 internalAllocator->Delete(storage); in DoRegionCompacting()
/arkcompiler/runtime_core/static_core/runtime/entrypoints/
H A Dentrypoints.cpp1642 auto storage = ToClassPtr<coretypes::Array>(ToUintPtr(sb) + SB_VALUE_OFFSET); in GetStorageAddress() local
1643 return reinterpret_cast<uint16_t *>(ToUintPtr(storage) + coretypes::Array::GetDataOffset() + (count << 1U)); in GetStorageAddress()

Completed in 26 milliseconds