Home
last modified time | relevance | path

Searched full:storage (Results 1 – 25 of 252) sorted by relevance

1234567891011

/arkcompiler/runtime_core/static_core/runtime/
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 …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->end(), '.', '/'); in GetArrayDescriptor()
41 return utf::CStringAsMutf8(storage->c_str()); in GetArrayDescriptor()
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/libani_helpers/interop_js/
Dhybridgref_napi.cpp23 /// @brief Returns storage array
24 static bool GetStorage(napi_env env, napi_value *storage) in GetStorage() argument
56 *storage = storageArray; in GetStorage()
59 *storage = tmpStorage; in GetStorage()
65 napi_value storage; in HybridGrefCreateRefFromNapi() local
66 if (!GetStorage(env, &storage)) { in HybridGrefCreateRefFromNapi()
70 if (napi_get_array_length(env, storage, &arrayLength) != napi_ok) { in HybridGrefCreateRefFromNapi()
77 if (napi_set_element(env, storage, arrayLength, value) != napi_ok) { in HybridGrefCreateRefFromNapi()
84 static bool CheckCorrectThread(napi_env env, napi_value storage) in CheckCorrectThread() argument
87 if (napi_get_element(env, storage, 0, &tidHolder) != napi_ok) { in CheckCorrectThread()
[all …]
Dhybridgref_ani.cpp129 static bool CheckCorrectThread(ani_env *env, ani_object storage) in CheckCorrectThread() argument
133 auto status = env->Object_CallMethod_Ref(storage, g_methodGetPropertyByIndex, &tidHolder, 0.0); in CheckCorrectThread()
152 /// @brief Returns ESValue which contains storage array
168 ani_ref storage {}; in GetStorage() local
170 … env->Object_CallMethod_Ref(static_cast<ani_object>(jsGlobal), g_methodGetPropertyByName, &storage, in GetStorage()
176 if (ESValueIsUndefined(env, static_cast<ani_object>(storage))) { in GetStorage()
186 …lass_CallStaticMethod_Ref(static_cast<ani_class>(g_esValueClass), instantiateEmptyArray, &storage); in GetStorage()
192 … g_storagePropertyName, static_cast<ani_object>(storage)); in GetStorage()
204 … status = env->Object_CallMethod_Void(static_cast<ani_object>(storage), g_methodSetPropertyByIndex, in GetStorage()
211 *result = static_cast<ani_object>(storage); in GetStorage()
[all …]
/arkcompiler/ets_frontend/ets2panda/linter/test/main/
Dprop_decorators_and_interfaces_3.ets43 let storage: LocalStorage = new LocalStorage(para)
44 let prop1 = storage.setAndProp('PropA', getClass1())
45 let prop2 = storage.setAndProp('PropA', getClass2())
46 let prop3 = storage.setAndProp('PropA', {name: "jack", age: 2})
47 let prop4 = storage.setAndProp('PropA', 1 > 0 ? 1 : getClass1())
48 let prop5 = storage.setAndProp('PropA', 1 > 0 ? {name: "jack"} : "test")
49 let prop6 = storage.setAndProp('PropA', new MyClassA())
50 let prop7 = storage.setAndProp('PropA', 1)
51 let prop8 = storage.setAndProp('PropA', "test")
52 let prop9 = storage.setAndProp('PropA', true)
Dprop_decorators_and_interfaces_2.ets21 let storage: LocalStorage = new LocalStorage(para)
22 let prop1 = storage.prop<number>('PropA')
23 let prop2 = storage.prop<MyClassA>('PropA')
24 let prop3 = storage.prop<number | MyClassA>('PropA')
25 let prop4: SubscribedAbstractProperty<string> = storage.prop('PropA')
26 let prop5: SubscribedAbstractProperty<MyClassA> = storage.prop('PropA')
27 let prop6: SubscribedAbstractProperty<MyClassA | string> = storage.prop('PropA')
42 let storage = LocalStorage.getShared()
43 let prop1 = storage.prop<MyClassA>('PropA')
44 let prop2: SubscribedAbstractProperty<MyClassA> = storage.prop('PropA')
Dentry_annotation_test5_1.ets18 const storage = new LocalStorage();
19 @Entry({storage: storage})
Dentry_annotation_test5_1.ets.migrate.ets18 const storage = new LocalStorage();
19 const __get_local_storage__ = (): LocalStorage => storage;
20 @Entry({ storage: "__get_local_storage__" })
Dentry_annotation_test2_2.ets.migrate.ets18 const storage = new LocalStorage();
19 const __get_local_storage__ = (): LocalStorage => storage;
20 @Entry({storage: "__get_local_storage__"})
Dentry_annotation_test2_1.ets.migrate.ets18 const storage = new LocalStorage();
19 const __get_local_storage__ = (): LocalStorage => storage;
20 @Entry({ storage: "__get_local_storage__" })
Dentry_annotation_test5_2.ets18 const storage = new LocalStorage();
19 const __get_local_storage__ = (): LocalStorage => storage;
20 @Entry({storage: "__get_local_storage__"})
Dentry_annotation_test2_2.ets18 const storage = new LocalStorage();
19 const __get_local_storage__ = (): LocalStorage => storage;
20 @Entry({storage: "__get_local_storage__"})
Dentry_annotation_test5_2.ets.migrate.ets18 const storage = new LocalStorage();
19 const __get_local_storage__ = (): LocalStorage => storage;
20 @Entry({storage: "__get_local_storage__"})
Dentry_annotation_test2_1.ets18 const storage = new LocalStorage();
19 @Entry(storage)
Dentry_annotation_test10_1.ets17 import { getLocalStorage } from './storage-manager';
19 @Entry({storage: getLocalStorage(1)})
/arkcompiler/runtime_core/static_core/runtime/tests/
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)), pandaClassCont… in SweepObjectInTable()
187 …table->GetOrInternString(reinterpret_cast<coretypes::String *>(storage->Get(ref2)), pandaClassCont… in SweepObjectInTable()
188 …table->GetOrInternString(reinterpret_cast<coretypes::String *>(storage->Get(ref3)), pandaClassCont… in SweepObjectInTable()
190 storage->Remove(ref2); in SweepObjectInTable()
196 storage->Remove(ref1); in SweepObjectInTable()
197 storage->Remove(ref3); in SweepObjectInTable()
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/std/math/
DRoundTest.ets44 …nd(3.5000000000000000000000000001)") //Exceeds double storage precision, actual storage is 3…
45 …ound(-3.5000000000000000000000000001)") //Exceeds double storage precision, actual storage is -…
48 …nd(5.4999999999999999999999999999)") //Exceeds double storage precision, actual storage is 5…
49 …ound(-5.4999999999999999999999999999)") //Exceeds double storage precision, actual storage is -…
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/interop_js/
Djs_refconvert_record.cpp27 ets_proxy::SharedReferenceStorage *storage = ctx->GetSharedRefStorage(); in WrapImpl() local
28 if (LIKELY(storage->HasReference(obj, env))) { in WrapImpl()
29 return storage->GetJsObject(obj, env); in WrapImpl()
42 storage->CreateETSObjectRef(ctx, obj, proxyObj); in WrapImpl()
67 ets_proxy::SharedReferenceStorage *storage = ctx->GetSharedRefStorage(); in RecordGetHandler() local
68 ASSERT(storage != nullptr); in RecordGetHandler()
69 ets_proxy::SharedReference *sharedRef = storage->GetReference(env, jsArgs->data()[0]); in RecordGetHandler()
98 ets_proxy::SharedReferenceStorage *storage = ctx->GetSharedRefStorage(); in RecordSetHandler() local
99 ASSERT(storage != nullptr); in RecordSetHandler()
100 ets_proxy::SharedReference *sharedRef = storage->GetReference(env, jsArgs->data()[0]); in RecordSetHandler()
Djs_refconvert_function.cpp65 ets_proxy::SharedReferenceStorage *storage = ctx->GetSharedRefStorage(); in WrapImpl() local
66 if (LIKELY(storage->HasReference(obj, env))) { in WrapImpl()
67 … jsValue = JSValue::CreateRefValue(coro, ctx, storage->GetJsObject(obj, env), napi_function); in WrapImpl()
76 …ets_proxy::SharedReference *sharedRef = storage->CreateETSObjectRef(ctx, obj, jsFn, preInitCallbac… in WrapImpl()
119 auto *storage = ctx->GetSharedRefStorage(); in CreateJSFunctionProxy() local
120 ASSERT(storage->GetReference(ctx->GetJSEnv(), jsFun) == nullptr); in CreateJSFunctionProxy()
128 auto *sharedRef = storage->CreateJSObjectRefwithWrap(ctx, etsObject, jsFun); in CreateJSFunctionProxy()
/arkcompiler/runtime_core/static_core/dprof/converter/
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()
92storage->ForEachApps([&fm](std::unique_ptr<AppData> &&appData) -> bool { return fm.ProcessingFeatu… in Main()
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/interop_js/ets_proxy/
Dshared_reference_storage_verifier.cpp53 size_t SharedReferenceStorageVerifier::TraverseAllItems(const SharedReferenceStorage *const storage in TraverseAllItems() argument
55 size_t capacity = storage->Capacity(); in TraverseAllItems()
58 failCount += VerifyOneItem(storage, index, status); in TraverseAllItems()
64 size_t SharedReferenceStorageVerifier::VerifyOneItem(const SharedReferenceStorage *const storage, s… in VerifyOneItem() argument
68 const SharedReference *item = storage->GetItemByIndex(index); in VerifyOneItem()
70 …FIER << "Shared references is empty object at " << index << ", capacity is" << storage->Capacity(); in VerifyOneItem()
74 failCount += CheckObjectReindex(storage, item, index); in VerifyOneItem()
113 …e_t SharedReferenceStorageVerifier::CheckObjectReindex(const SharedReferenceStorage *const storage, in CheckObjectReindex() argument
118 failCount += CheckJsObjectReindex(storage, item, index); in CheckObjectReindex()
124 …t SharedReferenceStorageVerifier::CheckJsObjectReindex(const SharedReferenceStorage *const storage, in CheckJsObjectReindex() argument
[all …]
Dshared_reference_storage_verifier.h33 static size_t TraverseAllItems(const SharedReferenceStorage *const storage, XgcStatus status);
37 …static size_t VerifyOneItem(const SharedReferenceStorage *const storage, size_t index, XgcStatus s…
41 …static size_t CheckObjectReindex(const SharedReferenceStorage *const storage, const SharedReferenc…
52 …static size_t CheckJsObjectReindex(const SharedReferenceStorage *const storage, const SharedRefere…
Dshared_reference_storage.h47 /// @return current storage size
53 /// @return maximum possible storage size
82 /// Update ref in the storage for EtsObject-s after moving phase
89 * Delete all shared references with specific context from the storage
136 * @param sharedRef non-empty shared reference from this storage table
137 * @note the method should be called under the storage write-lock
143 * @param sharedRef non-empty shared reference from this storage table
144 * @note the method should be called under the storage write-lock
/arkcompiler/runtime_core/static_core/tools/ark_js_napi_cli/tests/ets/
Dgc_test_sts_common.ets21 let storage:Object;
24 storage = new Object();
41 storage = new Object();
42 return storage;
73 storage = obj;
/arkcompiler/runtime_core/static_core/dprof/daemon/
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.get()); in Main()
/arkcompiler/runtime_core/static_core/runtime/mem/refstorage/
Dglobal_object_storage.h40 …* Storage for objects which need to handle by GC. GC will handle moving these objects and will not…
42 * References will be removed automatically after Remove method or after storage's destructor.
53 /// Add object to the storage and return associated pointer with this object
93 …/// Remove object from storage by given reference. Reference should be returned on Add method befo…
96 /// Get all objects from storage. Used by debugging.
101 /// Update pointers to moved Objects in global storage.
150 * doesn't stores inside storage explicity.
152 …* 2) When index if free - storage[index] stores next free index (shifted by 1) with lowest bit equ…
160 … | storage[index] | xxx | 0 |
163 … | storage[index] | xxx | 1 |
[all …]

1234567891011