Home
last modified time | relevance | path

Searched full:reference (Results 1 – 25 of 1207) sorted by relevance

12345678910>>...49

/arkcompiler/runtime_core/static_core/runtime/mem/refstorage/
Dreference_storage.h20 #include "runtime/mem/refstorage/reference.h"
27 class Reference; variable
48 static Reference::ObjectType GetObjectType(const Reference *ref);
50 [[nodiscard]] static Reference *NewStackRef(ObjectHeader **objectPtr) in NewStackRef()
56 return Reference::Create(ToUintPtr(objectPtr), Reference::ObjectType::STACK); in NewStackRef()
59 …[[nodiscard]] PANDA_PUBLIC_API Reference *NewRef(const ObjectHeader *object, Reference::ObjectType…
61 void RemoveRef(const Reference *ref);
63 [[nodiscard]] PANDA_PUBLIC_API ObjectHeader *GetObject(const Reference *ref);
74 …* Pops the last frame, frees all local references in this frame and moves given reference to the p…
75 …* return it's new reference. Should be NULL if you don't want to return any value to previous fram…
[all …]
Dglobal_object_storage.cpp26 #include "reference.h"
46 bool GlobalObjectStorage::IsValidGlobalRef(const Reference *ref) const in IsValidGlobalRef()
49 Reference::ObjectType type = Reference::GetType(ref); in IsValidGlobalRef()
51 if (type == Reference::ObjectType::GLOBAL) { in IsValidGlobalRef()
55 } else if (type == Reference::ObjectType::WEAK) { in IsValidGlobalRef()
67 Reference *GlobalObjectStorage::Add(const ObjectHeader *object, Reference::ObjectType type) const in Add()
73 Reference *ref = nullptr; in Add()
74 if (type == Reference::ObjectType::GLOBAL) { in Add()
76 } else if (type == Reference::ObjectType::WEAK) { in Add()
82 ref = Reference::SetType(ref, type); in Add()
[all …]
Dglobal_object_storage.h29 #include "reference.h"
50 /// Check whether ref is a valid global reference or not.
51 bool IsValidGlobalRef(const Reference *ref) const;
54 PANDA_PUBLIC_API Reference *Add(const ObjectHeader *object, Reference::ObjectType type) const;
56 …/// Get stored object associated with given reference. Reference should be returned on Add method …
57 ObjectHeader *Get(const Reference *reference) const in Get() argument
59 if (reference == nullptr) { in Get()
62 auto type = reference->GetType(); in Get()
63 reference = Reference::GetRefWithoutType(reference); in Get()
66 if (type == Reference::ObjectType::GLOBAL) { in Get()
[all …]
Dreference.h33 class Reference {
55 DEFAULT_COPY_SEMANTIC(Reference);
56 DEFAULT_MOVE_SEMANTIC(Reference);
57 ~Reference() = delete;
58 Reference() = delete;
92 static Reference *CreateWithoutType(uintptr_t addr) in CreateWithoutType()
95 return reinterpret_cast<Reference *>(addr); in CreateWithoutType()
98 static Reference *Create(uintptr_t addr, ObjectType type) in Create()
104 static ObjectType GetType(const Reference *ref) in GetType()
110 static Reference *SetType(Reference *ref, ObjectType type) in SetType()
[all …]
Dreference_storage.cpp74 bool ReferenceStorage::IsValidRef(const Reference *ref) in IsValidRef()
77 auto type = Reference::GetType(ref); in IsValidRef()
80 if (type == mem::Reference::ObjectType::STACK) { in IsValidRef()
82 …} else if (type == mem::Reference::ObjectType::GLOBAL || type == mem::Reference::ObjectType::WEAK)… in IsValidRef()
86 auto refWithoutType = Reference::GetRefWithoutType(ref); in IsValidRef()
94 Reference::ObjectType ReferenceStorage::GetObjectType(const Reference *ref) in GetObjectType()
100 Reference *ReferenceStorage::NewRef(const ObjectHeader *object, Reference::ObjectType type) in NewRef()
102 ASSERT(type != Reference::ObjectType::STACK); in NewRef()
108 Reference *ref = nullptr; in NewRef()
109 if (type == Reference::ObjectType::GLOBAL || type == Reference::ObjectType::WEAK) { in NewRef()
[all …]
Dref_block.cpp31 Reference *RefBlock::AddRef(const ObjectHeader *object, Reference::ObjectType type) in AddRef()
36 auto *ref = reinterpret_cast<Reference *>(&refs_[index]); in AddRef()
37 ref = Reference::SetType(ref, type); in AddRef()
41 void RefBlock::Remove(const Reference *ref) in Remove()
44 ref = Reference::GetRefWithoutType(ref); in Remove()
98 PandaVector<Reference *> RefBlock::GetAllReferencesInFrame() in GetAllReferencesInFrame()
100 PandaVector<Reference *> refs; in GetAllReferencesInFrame()
107 auto *currentRef = reinterpret_cast<Reference *>(&block->refs_[index]); in GetAllReferencesInFrame()
/arkcompiler/runtime_core/static_core/tests/test-lists/test262/
Dtest262-ignored-AOT-FULL.txt31 language/expressions/compound-assignment/left-hand-side-private-reference-accessor-property-add.js
32 language/expressions/compound-assignment/left-hand-side-private-reference-accessor-property-bitand.…
33 language/expressions/compound-assignment/left-hand-side-private-reference-accessor-property-bitor.js
34 language/expressions/compound-assignment/left-hand-side-private-reference-accessor-property-bitxor.…
35 language/expressions/compound-assignment/left-hand-side-private-reference-accessor-property-div.js
36 language/expressions/compound-assignment/left-hand-side-private-reference-accessor-property-exp.js
37 language/expressions/compound-assignment/left-hand-side-private-reference-accessor-property-lshift.…
38 language/expressions/compound-assignment/left-hand-side-private-reference-accessor-property-mod.js
39 language/expressions/compound-assignment/left-hand-side-private-reference-accessor-property-mult.js
40 language/expressions/compound-assignment/left-hand-side-private-reference-accessor-property-rshift.…
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/stdlib/std/core/
DWeakRef.ets19 * WeakRef - weak reference to object.
20 * A weak reference to an object is a reference that does not prevent the object
24 * @tparam T Object type for weak reference
27 // Reference to target object
31 * Constructs weak reference object referring to a given target object
33 * @param target - target object for weak reference
DFinalizableWeakRef.ets19 * FinalizableWeakRef - weak reference to object with finalizer.
23 * A weak reference to an object is a reference that does not prevent the object
27 * @tparam T Object type for weak reference
31 * Constructs weak reference object referring to a given target object
33 * @param target - target object for weak reference
39 // Reference to target object
/arkcompiler/runtime_core/static_core/verification/
Dverification.yaml69 - reference
110 - reference
119 - reference
137 - reference
155 - reference
171 - reference
187 - reference
201 - reference
216 - reference
230 - reference
[all …]
/arkcompiler/runtime_core/static_core/runtime/mem/gc/reference-processor/
Dreference_processor.h31 class Reference; variable
52 …* True if current object is Reference and it's referent is not marked yet (maybe need to process t…
53 …* Predicate checks GC-specific conditions on this reference (i.e. if we need to skip this referenc…
60 …* Save reference for future processing and handle it with GC point of view (mark needed fields, if…
61 …* Predicate checks if we should add this reference to the queue (e.g. don't process to many refs o…
65 …/// Save reference for future processing and handle it with GC point of view (traverse needed fiel…
89 virtual ark::mem::Reference *CollectClearedReferences() = 0;
91 virtual void ScheduleForEnqueue(Reference *clearedReferences) = 0;
94 virtual void Enqueue(ark::mem::Reference *clearedReferences) = 0;
/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/xgc/
Dmark_test_gc.js22 * Create weak reference objects
38 * Create weak reference objects
54 * Create weak reference objects
77 // Deselect the weak reference object as the root object
88 * Before XGC, cross-reference garbage objects cannot be recycled
96 throw new Error('JS GC cannot collect cross-reference table objects!');
102 * Before XGC, cross-reference garbage objects cannot be recycled,
111 throw new Error('JS GC cannot collect cross-reference table objects!');
120 * Before XGC, cross-reference garbage objects cannot be recycled,
121 * the normal objects that are referenced by cross-reference garbage objects cannot be recycled
[all …]
Dmark_test_sts.ets37 // Cancel the active objects reference cross-reference objects
91 * Circular reference
120 * Create weak reference objects
132 * Create weak reference objects
146 * Create weak reference objects
171 throw new Error("STS GC cannot collect cross-reference table objects!");
178 throw new Error("STS GC cannot collect cross-reference table objects!");
191 throw new Error("STS GC cannot collect cross-reference table objects!");
202 … throw new Error("STS GC should collect cross-reference table objects that are dereferenced!");
210 … throw new Error("STS GC should collect cross-reference table objects that are dereferenced!");
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/mem/
Dets_reference.h20 #include "runtime/mem/refstorage/reference.h"
34 using EtsObjectType = mem::Reference::ObjectType;
56 static mem::Reference *CastToReference(EtsReference *etsRef) in CastToReference()
58 return reinterpret_cast<mem::Reference *>(etsRef); in CastToReference()
61 static EtsReference *CastFromReference(mem::Reference *ref) in CastFromReference()
67 const mem::Reference *GetReference() const in GetReference()
69 return reinterpret_cast<const mem::Reference *>(this); in GetReference()
110 … mem::Reference *ref = mem::ReferenceStorage::NewStackRef(reinterpret_cast<ObjectHeader **>(obj)); in NewEtsStackRef()
117 mem::Reference *ref = NewRef(obj->GetCoreType(), objType); in NewEtsRef()
/arkcompiler/ets_frontend/ets2panda/test/ast/parser/ets/
DInvalidLexer.ets108 /* @@? 29:18 Error TypeError: Unresolved reference c'' */
109 /* @@? 30:1 Error TypeError: Unresolved reference c'
111 /* @@? 16:16 Error TypeError: Unresolved reference t */
112 /* @@? 19:19 Error TypeError: Unresolved reference F0011101 */
113 /* @@? 23:13 Error TypeError: Unresolved reference _ */
114 /* @@? 27:14 Error TypeError: Unresolved reference undef����FF00����ned */
115 /* @@? 30:1 Error TypeError: Unresolved reference c2 */
116 /* @@? 34:1 Error TypeError: Unresolved reference d444n */
117 /* @@? 38:1 Error TypeError: Unresolved reference b0 */
119 /* @@? 44:1 Error TypeError: Unresolved reference b */
[all …]
Dunexpected_token_53.ets28 /* @@? 19:10 Error TypeError: Unresolved reference i */
35 /* @@? 20:7 Error TypeError: Unresolved reference vbv */
36 /* @@? 20:14 Error TypeError: Unresolved reference u */
38 /* @@? 20:21 Error TypeError: Unresolved reference v */
40 /* @@? 21:7 Error TypeError: Unresolved reference vv */
Dunexpected_token_62.ets31 /* @@? 19:1 Error TypeError: Unresolved reference functioew */
33 /* @@? 19:11 Error TypeError: Unresolved reference Nu */
35 /* @@? 20:1 Error TypeError: Unresolved reference nt */
45 /* @@? 24:8 Error TypeError: Unresolved reference nt */
49 /* @@? 24:21 Error TypeError: Unresolved reference s */
65 /* @@? 26:25 Error TypeError: Unresolved reference reƒurn */
67 /* @@? 26:32 Error TypeError: Unresolved reference _ew */
72 /* @@? 27:2 Error TypeError: Unresolved reference ó */
/arkcompiler/jsvm/src/
Djsvm_reference.cpp154 // If reference is not added into first pass callbacks, delete this direct. in DeleteReference()
160 // If reference is added into first pass callbacks, reset finalizer function. in DeleteReference()
175 RuntimeReference* reference = data.GetParameter(); in FirstPassCallback() local
177 reference->persistent.Reset(); in FirstPassCallback()
178 reference->Finalize(); in FirstPassCallback()
183 RuntimeReference* reference = data.GetParameter(); in SecondPassCallback() local
185 reference->Finalize(); in SecondPassCallback()
190 RuntimeReference* reference = data.GetParameter(); in FirstPassCallbackWithoutFinalizer() local
192 reference->persistent.Reset(); in FirstPassCallbackWithoutFinalizer()
193 delete reference; in FirstPassCallbackWithoutFinalizer()
/arkcompiler/runtime_core/static_core/verification/util/
Doptional_ref.h38 OptionalConstRef(const T &reference) : value_ {const_cast<T *>(&reference)} {} in OptionalConstRef()
40 … OptionalConstRef(std::reference_wrapper<const T> reference) : OptionalConstRef(reference.get()) {} in OptionalConstRef()
106 OptionalRef(T &reference) : OptionalConstRef<T>(&reference) {} in OptionalRef()
108 OptionalRef(std::reference_wrapper<T> reference) : OptionalRef(reference.get()) {} in OptionalRef()
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/libani_helpers/interop_js/
Dhybridgref_napi.h28 * @brief Saves reference which could be later accessed from both NAPI and ANI code
31 * @param result holding reference to the saved object
39 * @brief Delete a reference previously created by `hybridgref_create_from_napi`
48 * @brief Returns napi_value for previously saved reference
50 * @param ref to saved reference
Dhybridgref_ani.h29 * @brief Saves reference which could be later accessed from both NAPI and ANI code
32 * @param result holding reference to the saved object
40 * @brief Delete a reference previously created by `hybridgref_create_from_ani`
49 * @brief Returns ani_object with `ESValue` containing previously saved reference
51 * @param ref to saved reference
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/06.contexts_and_conversions/01.assignment-like_contexts/
Dref_widening.ets19 A widening reference conversion exists from any reference type S to any reference
29 if (src !== dst ) { // reference equality
/arkcompiler/runtime_core/static_core/runtime/mem/
Dvm_handle-inl.h32 inline VMHandle<T>::VMHandle(mem::GlobalObjectStorage *globalStorage, mem::Reference *reference) in VMHandle() argument
33 : HandleBase(globalStorage->GetAddressForRef(reference)) in VMHandle()
35 ASSERT(reference != nullptr); in VMHandle()
/arkcompiler/ets_frontend/ets2panda/test/ast/parser/ets/extension_function_tests/
Dextension_function_error2.ets20 /* @@? 16:9 Error TypeError: Cannot reference 'this' in this context. */
24 /* @@? 16:16 Error TypeError: Unresolved reference TextAttribute */
27 /* @@? 16:31 Error TypeError: Cannot reference 'this' in this context. */
29 /* @@? 16:38 Error TypeError: Cannot reference 'this' in this context. */
32 /* @@? 16:64 Error TypeError: Cannot reference 'this' in this context. */
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/interop_js/ets_proxy/
Dshared_reference_storage.h136 * @param sharedRef non-empty shared reference from this storage table
142 * Delete napi_ref for passed shared reference and remove the shared reference from the table
143 * @param sharedRef non-empty shared reference from this storage table
149 * Delete one reference by predicate from references chain related with passed reference
150 * @param sharedRef non-empty shared reference from processing references chain
151 * @param deletePredicate predicate with condition for a reference deleting
152 …* @return true if chain contains reference for removing by predicate and the reference was deleted…

12345678910>>...49