Home
last modified time | relevance | path

Searched defs:ref (Results 1 – 25 of 178) sorted by relevance

12345678

/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/proxies/mem/proxy_reference_storage_3/
Dtest_proxy_reference_storage_3.cpp70 void SetETSObject(SharedReference *ref, EtsObject *obj) in SetETSObject()
122 SharedReference *ref = storage_->CreateJSObjectRef(InteropCtx::Current(), etsObject, jsObj); in CreateReference() local
129 … SharedReference *ref = storage_->CreateETSObjectRef(InteropCtx::Current(), etsObject, jsObj); in CreateReferenceEts() local
133 void RemoveReference(SharedReference *ref) in RemoveReference()
143 size_t CheckObjectAddressValid(SharedReference *ref, size_t index) in CheckObjectAddressValid()
148 size_t CheckObjectAlive(SharedReference *ref, size_t index) in CheckObjectAlive()
153 …ckObjectReindex([[maybe_unused]] const SharedReferenceStorage *const storage, SharedReference *ref, in CheckObjectReindex()
159 size_t CheckJsObjectType(SharedReference *ref, size_t index) in CheckJsObjectType()
164 size_t IsAllItemsMarked(SharedReference *ref, size_t index) in IsAllItemsMarked()
180 SharedReference *ref = CreateReferenceEts(etsObject, jsObject); in TEST_F() local
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ani/tests/gref_ops/
Dglobal_reference_create_test.cpp24 auto ref = CallEtsFunction<ani_ref>("global_reference_create_test", "GetNull"); in TEST_F() local
35 auto ref = CallEtsFunction<ani_ref>("global_reference_create_test", "GetUndefined"); in TEST_F() local
46 auto ref = CallEtsFunction<ani_ref>("global_reference_create_test", "GetObject"); in TEST_F() local
55 auto ref = CallEtsFunction<ani_ref>("global_reference_create_test", "GetNull"); in TEST_F() local
69 auto ref = CallEtsFunction<ani_ref>("global_reference_create_test", "GetUndefined"); in TEST_F() local
83 auto ref = CallEtsFunction<ani_ref>("global_reference_create_test", "GetObject"); in TEST_F() local
95 auto ref = CallEtsFunction<ani_ref>("global_reference_create_test", "GetObject"); in TEST_F() local
104 auto ref = CallEtsFunction<ani_ref>("global_reference_create_test", "GetObject"); in TEST_F() local
110 auto ref = CallEtsFunction<ani_ref>("global_reference_create_test", "GetObject"); in TEST_F() local
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ani/tests/ref_ops/
Dreference_is_undefined_test.cpp27 auto ref = CallEtsFunction<ani_ref>("reference_is_undefined_test", "GetNull"); in TEST_F() local
35 auto ref = CallEtsFunction<ani_ref>("reference_is_undefined_test", "GetUndefined"); in TEST_F() local
43 auto ref = CallEtsFunction<ani_ref>("reference_is_undefined_test", "GetObject"); in TEST_F() local
51 auto ref = CallEtsFunction<ani_ref>("reference_is_undefined_test", "GetNull"); in TEST_F() local
60 auto ref = CallEtsFunction<ani_ref>("reference_is_undefined_test", "GetUndefined"); in TEST_F() local
69 auto ref = CallEtsFunction<ani_ref>("reference_is_undefined_test", "GetUndefined"); in TEST_F() local
Dreference_is_null_test.cpp27 auto ref = CallEtsFunction<ani_ref>("reference_is_null_test", "GetNull"); in TEST_F() local
35 auto ref = CallEtsFunction<ani_ref>("reference_is_null_test", "GetUndefined"); in TEST_F() local
43 auto ref = CallEtsFunction<ani_ref>("reference_is_null_test", "GetObject"); in TEST_F() local
51 auto ref = CallEtsFunction<ani_ref>("reference_is_null_test", "GetNull"); in TEST_F() local
60 auto ref = CallEtsFunction<ani_ref>("reference_is_null_test", "GetNull"); in TEST_F() local
69 auto ref = CallEtsFunction<ani_ref>("reference_is_null_test", "GetNull"); in TEST_F() local
Dreference_is_nullish_value_test.cpp27 auto ref = CallEtsFunction<ani_ref>("reference_is_nullish_value_test", "GetNull"); in TEST_F() local
35 auto ref = CallEtsFunction<ani_ref>("reference_is_nullish_value_test", "GetUndefined"); in TEST_F() local
43 auto ref = CallEtsFunction<ani_ref>("reference_is_nullish_value_test", "GetObject"); in TEST_F() local
51 auto ref = CallEtsFunction<ani_ref>("reference_is_nullish_value_test", "GetNull"); in TEST_F() local
60 auto ref = CallEtsFunction<ani_ref>("reference_is_nullish_value_test", "GetNull"); in TEST_F() local
69 auto ref = CallEtsFunction<ani_ref>("reference_is_nullish_value_test", "GetNull"); in TEST_F() local
Dget_null_test.cpp24 ani_ref ref = nullptr; in TEST_F() local
38 ani_ref ref = nullptr; in TEST_F() local
44 ani_ref ref = nullptr; in TEST_F() local
Dget_undefined_test.cpp24 ani_ref ref = nullptr; in TEST_F() local
38 ani_ref ref = nullptr; in TEST_F() local
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/mem/
Dets_reference.h61 static EtsReference *CastFromReference(mem::Reference *ref) in CastFromReference()
78 [[maybe_unused]] static inline ets_object EtsRefToEtsObject(EtsReference *ref) in EtsRefToEtsObject()
85 auto ref = reinterpret_cast<EtsReference *>(obj); in EtsNapiWeakToEtsRef() local
90 [[maybe_unused]] static inline ets_object EtsRefToEtsNapiWeak(EtsReference *ref) in EtsRefToEtsNapiWeak()
110 … mem::Reference *ref = mem::ReferenceStorage::NewStackRef(reinterpret_cast<ObjectHeader **>(obj)); in NewEtsStackRef() local
117 mem::Reference *ref = NewRef(obj->GetCoreType(), objType); in NewEtsRef() local
/arkcompiler/runtime_core/static_core/runtime/mem/gc/g1/
Dg1-object-pointer-handlers.h42 bool ProcessObjectPointer(T *ref) const in ProcessObjectPointer()
51 void ProcessObjectPointerInternal(T *ref) const in ProcessObjectPointerInternal()
88 bool ProcessObjectPointer(Ref ref) const in ProcessObjectPointer()
95 void ProcessObjectPointerHelper(Ref ref) const in ProcessObjectPointerHelper()
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ani/tests/object_ops/
Dobject_call_method_by_name_ref_test.cpp36 ani_ref ref {}; in GetMethodData() local
51 ani_ref ref = nullptr; in TEST_F() local
82 ani_ref ref = nullptr; in TEST_F() local
111 ani_ref ref = nullptr; in TEST_F() local
124 ani_ref ref = nullptr; in TEST_F() local
138 ani_ref ref = nullptr; in TEST_F() local
152 ani_ref ref = nullptr; in TEST_F() local
163 ani_ref ref = nullptr; in TEST_F() local
191 ani_ref ref = nullptr; in TEST_F() local
217 ani_ref ref = nullptr; in TEST_F() local
[all …]
/arkcompiler/runtime_core/static_core/runtime/mem/refstorage/
Dglobal_object_storage.h226 auto ref = IndexToReference(currentIndex); in Add() local
258 ObjectHeader *Get(const Reference *ref) const in Get()
265 uintptr_t GetAddressForRef(const Reference *ref) const in GetAddressForRef()
273 void Remove(const Reference *ref) in Remove()
287 auto ref = storage_[index]; in UpdateMovedRefs() local
301 for (const auto &ref : storage_) { in VisitObjects() local
332 for (const auto &ref : storage_) { in GetAllObjects() local
343 bool IsValidGlobalRef(const Reference *ref) in IsValidGlobalRef()
374 uintptr_t ref = *it; in Dump() local
444 uintptr_t ReferenceToIndex(const Reference *ref) const REQUIRES_SHARED(mutex_) in ReferenceToIndex()
[all …]
Dreference_storage.cpp74 bool ReferenceStorage::IsValidRef(const Reference *ref) in IsValidRef()
94 Reference::ObjectType ReferenceStorage::GetObjectType(const Reference *ref) in GetObjectType()
108 Reference *ref = nullptr; in NewRef() local
137 void ReferenceStorage::RemoveRef(const Reference *ref) in RemoveRef()
171 ObjectHeader *ReferenceStorage::GetObject(const Reference *ref) in GetObject()
308 ObjectHeader *ReferenceStorage::FindLocalObject(const Reference *ref) in FindLocalObject()
321 for (const auto &ref : refs) { in GetAllObjects() local
350 for (const auto &ref : refs) { in DumpLocalRefClasses() local
380 for (const auto &ref : refs) { in DumpLocalRef() local
424 for (const auto &ref : refs) { in RemoveAllLocalRefs() local
Dreference.h104 static ObjectType GetType(const Reference *ref) in GetType()
110 static Reference *SetType(Reference *ref, ObjectType type) in SetType()
127 static Reference *GetRefWithoutType(const Reference *ref) in GetRefWithoutType()
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ani/tests/wref_ops/
Dweak_reference_get_reference_test.cpp30 ani_ref ref; in TEST_F() local
47 ani_ref ref; in TEST_F() local
64 ani_ref ref; in TEST_F() local
87 ani_ref ref; in TEST_F() local
102 ani_ref ref; in TEST_F() local
119 ani_ref ref; in TEST_F() local
142 ani_ref ref {}; in TEST_F() local
/arkcompiler/ets_runtime/common_components/heap/
Dverification.cpp116 std::string GetRefInfo(const RefField<>& ref) in GetRefInfo()
129 void IsValidRef(const BaseObject* obj, const RefField<>& ref) in IsValidRef()
175 void VerifyRef(const BaseObject* obj, RefField<>& ref) in VerifyRef()
181 void VerifyRef(const BaseObject* obj, const RefField<>& ref) in VerifyRef()
193 virtual void VerifyRefImpl(const BaseObject* obj, RefField<>& ref) in VerifyRefImpl()
198 virtual void VerifyRefImpl(const BaseObject* obj, const RefField<>& ref) in VerifyRefImpl()
210 void VerifyRefImpl(const BaseObject* obj, const RefField<>& ref) override in VerifyRefImpl()
255 void VerifyRefImpl(const BaseObject* obj, const RefField<>& ref) override in VerifyRefImpl()
273 void VerifyRefImpl(const BaseObject* obj, const RefField<>& ref) override in VerifyRefImpl()
293 void VerifyRefImpl(const BaseObject* obj, RefField<>& ref) override in VerifyRefImpl()
[all …]
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_util/include/
Dptr.h51 Ptr(Pointer ref, PtrCheckerType<T> checker) : pointer(ref) in Ptr()
56 explicit Ptr(T &ref) : pointer(&ref) in Ptr()
61 Ptr(T &ref, PtrCheckerType<T> checker) : pointer(&ref) in Ptr()
75 explicit Ptr(U &ref) : pointer(&ref) in Ptr()
81 Ptr(U &ref, PtrCheckerType<T> checker) : pointer(&ref) in Ptr()
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/interop_js/xgc/
Dxgc_vm_adaptor.cpp26 void XGCVmAdaptor::MarkFromObject([[maybe_unused]] napi_ref ref) in MarkFromObject()
45 napi_status XGCVmAdaptor::NapiDeleteReference(napi_ref ref) in NapiDeleteReference()
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/ani/
Dscoped_objects_fix.h46 static bool IsUndefined(ani_ref ref) in IsUndefined()
51 static bool IsUndefined(ani_wref ref) in IsUndefined()
78 bool IsNull(ani_ref ref) in IsNull()
84 bool IsNullishValue(ani_ref ref) in IsNullishValue()
113 EtsObject *ToInternalType(ani_ref ref) in ToInternalType()
164 ani_status AddGlobalRef(ani_ref ref, ani_ref *result) in AddGlobalRef()
187 ani_status AddWeakRef(ani_ref ref, ani_wref *result) in AddWeakRef()
250 ani_status DelLocalRef(ani_ref ref) in DelLocalRef()
301 ani_status DestroyEscapeLocalScope(ani_ref ref, ani_ref *result) in DestroyEscapeLocalScope()
323 EtsObject *GetInternalType(ani_ref ref) in GetInternalType()
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/proxies/mem/proxy_reference_storage_1/
Dtest_proxy_reference_storage_1.cpp47 … SharedReference *ref = storage_->CreateETSObjectRef(InteropCtx::Current(), etsObject, jsObj); in CreateReference() local
61 void RemoveReference(SharedReference *ref) in RemoveReference()
90 SharedReference *ref = CreateReference(etsObject); in TEST_F() local
106 SharedReference *ref = CreateReference(etsObject); in TEST_F() local
133 SharedReference *ref = CreateReference(etsObject); in TEST_F() local
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/libani_helpers/interop_js/
Dhybridgref_napi.cpp98 bool HybridGrefDeleteRefFromNapi(napi_env env, hybridgref ref) in HybridGrefDeleteRefFromNapi()
129 bool HybridGrefGetNapiValue(napi_env env, hybridgref ref, napi_value *result) in HybridGrefGetNapiValue()
164 extern "C" bool hybridgref_delete_from_napi(napi_env env, hybridgref ref) in hybridgref_delete_from_napi()
169 extern "C" bool hybridgref_get_napi_value(napi_env env, hybridgref ref, napi_value *result) in hybridgref_get_napi_value()
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/napi/
Dets_scoped_objects_fix.h117 … EtsReference *ref = GetEtsReferenceStorage()->NewEtsRef(obj, EtsReference::EtsObjectType::GLOBAL); in AddGlobalRef() local
129 …EtsReference *ref = GetEtsReferenceStorage(env)->NewEtsRef(obj, EtsReference::EtsObjectType::LOCAL… in AddLocalRef() local
143 EtsReference *ref = refStorage->NewEtsRef(obj, EtsReference::EtsObjectType::WEAK); in AddWeakGlobalRef() local
158 EtsReference *ref = EtsObjectToEtsRef(obj); in DelLocalRef() local
168 EtsReference *ref = EtsObjectToEtsRef(obj); in IsValidRef() local
206 EtsReference *ref = EtsObjectToEtsRef(obj); in GetInternalType() local
/arkcompiler/jsvm/src/
Djsvm_reference.cpp36 auto ref = new UserReference(env, value, true, initialRefcount); in New() local
43 auto ref = new UserReference(env, value, false, initialRefcount); in NewData() local
132 auto* ref = new RuntimeReference(env, value, nullptr, data, nullptr); in New() local
145 auto* ref = new RuntimeReference(env, value, cb, data, hint); in New() local
152 void RuntimeReference::DeleteReference(RuntimeReference* ref) in DeleteReference()
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ani/tests/class_ops/
Dcall_static_method_ref_test.cpp56 void CheckRefUp(ani_ref ref) in CheckRefUp()
74 void CheckRefNum(ani_ref ref) in CheckRefNum()
116 ani_ref ref = nullptr; in TEST_F() local
127 ani_ref ref = nullptr; in TEST_F() local
153 ani_ref ref = nullptr; in TEST_F() local
177 ani_ref ref = nullptr; in TEST_F() local
204 ani_ref ref = nullptr; in TEST_F() local
215 ani_ref ref = nullptr; in TEST_F() local
226 ani_ref ref = nullptr; in TEST_F() local
237 ani_ref ref; in TEST_F() local
[all …]
Dclass_call_static_method_by_name_ref_test.cpp41 void CheckRefUp(ani_ref ref) in CheckRefUp()
58 void CheckRefNum(ani_ref ref) in CheckRefNum()
99 ani_ref ref = nullptr; in TEST_F() local
109 ani_ref ref = nullptr; in TEST_F() local
134 ani_ref ref = nullptr; in TEST_F() local
157 ani_ref ref = nullptr; in TEST_F() local
180 ani_ref ref = nullptr; in TEST_F() local
191 ani_ref ref = nullptr; in TEST_F() local
204 ani_ref ref = nullptr; in TEST_F() local
212 ani_ref ref = nullptr; in TEST_F() local
[all …]
/arkcompiler/runtime_core/static_core/runtime/tests/
Dpygote_space_allocator_test_base.cpp65 …[[maybe_unused]] auto *ref = globalObjectStorage->Add(nonMovableHeader, ark::mem::Reference::Objec… in NonMovableLiveObjectAllocTest() local
92 …[[maybe_unused]] auto *ref = globalObjectStorage->Add(nonMovableHeader, ark::mem::Reference::Objec… in NonMovableUnliveObjectAllocTest() local
115 …[[maybe_unused]] auto *ref = globalObjectStorage->Add(movableHeader, ark::mem::Reference::ObjectTy… in MovableLiveObjectAllocTest() local
138 …[[maybe_unused]] auto *ref = globalObjectStorage->Add(movableHeader, ark::mem::Reference::ObjectTy… in MovableUnliveObjectAllocTest() local

12345678