Home
last modified time | relevance | path

Searched refs:ObjectPointerType (Results 1 – 25 of 30) sorted by relevance

12

/arkcompiler/runtime_core/static_core/runtime/tests/
Dbitmap_test_base.h37 …static constexpr ObjectPointerType HEAP_STARTING_ADDRESS = static_cast<ObjectPointerType>(0x100000…
76 for (ObjectPointerType k = offset; k < end; k += K_ALIGNMENT) { in RunTest()
87 …auto countTestFn = [](MemBitmap<K_ALIGNMENT> *bitmap, ObjectPointerType begin, ObjectPointerType e… in RunTestCount()
105 …auto orderTestFn = [](MemBitmap<K_ALIGNMENT> *bitmap, ObjectPointerType begin, ObjectPointerType e… in RunTestOrder()
Dbitmap_clear_range_test.cpp36 using MemRangeTest = std::pair<ObjectPointerType, ObjectPointerType>; in TEST_F()
Ddebugger_test.cpp59 return reinterpret_cast<ObjectHeader *>(static_cast<ObjectPointerType>(v)); in ToPtr()
64 return static_cast<ObjectPointerType>(reinterpret_cast<uint64_t>(ptr)); in FromPtr()
Dclass_size_test.cpp29 static constexpr size_t OBJECT_POINTER_SIZE = sizeof(ObjectPointerType);
/arkcompiler/runtime_core/static_core/libpandabase/mem/
Dmem.h46 using ObjectPointerType = uint32_t; variable
48 using ObjectPointerType = uintptr_t; variable
51 constexpr size_t OBJECT_POINTER_SIZE = sizeof(ObjectPointerType);
129 constexpr ObjectPointerType ToObjPtr(const void *ptr) in ToObjPtr()
131 return static_cast<ObjectPointerType>(ToUintPtr(ptr)); in ToObjPtr()
259 constexpr ObjectPointerType ToObjPtrType(const T *val) in ToObjPtrType()
262 return static_cast<ObjectPointerType>(ToUintPtr(val)); in ToObjPtrType()
265 constexpr ObjectPointerType ToObjPtrType(std::nullptr_t) in ToObjPtrType()
267 return static_cast<ObjectPointerType>(ToUintPtr(nullptr)); in ToObjPtrType()
Dobject_pointer.h126 ObjectPointerType object_ {};
128 ALWAYS_INLINE static Object *ToObjectPtr(const ObjectPointerType pointer) noexcept in ToObjectPtr()
135 static_assert(sizeof(ObjectPointer<bool>) == sizeof(ObjectPointerType));
/arkcompiler/runtime_core/static_core/runtime/mem/
Dobject-references-iterator-inl.h96 …, [handler](void *o) { handler->ProcessObjectPointer(reinterpret_cast<ObjectPointerType *>(o)); }); in IterateAndDiscoverReferences()
112 …, [handler](void *o) { handler->ProcessObjectPointer(reinterpret_cast<ObjectPointerType *>(o)); }); in IterateAndDiscoverReferences()
123 …return ObjectArrayIterator::Iterate<ObjectPointerType, INTERRUPTIBLE>(static_cast<coretypes::Array… in Iterate()
142 …return ObjectArrayIterator::Iterate<ObjectPointerType, INTERRUPTIBLE>(static_cast<coretypes::Array… in Iterate()
168 auto *refStart = reinterpret_cast<ObjectPointerType *>(ToUintPtr(cls) + offset); in IterateClassReferences()
183 auto *refStart = reinterpret_cast<ObjectPointerType *>(ToUintPtr(cls) + offset); in IterateClassReferences()
206 auto *refStart = reinterpret_cast<ObjectPointerType *>(ToUintPtr(object) + offset); in IterateObjectReferences()
239 auto *refStart = reinterpret_cast<ObjectPointerType *>(ToUintPtr(object) + offset); in IterateObjectReferences()
255 …ol ObjectIterator<LANG_TYPE_STATIC>::IterateRange(ObjectPointerType *refStart, const ObjectPointer… in IterateRange()
271 bool ObjectIterator<LANG_TYPE_STATIC>::IterateRange(ObjectPointerType *refStart, ObjectPointerType in IterateRange()
[all …]
Dobject-references-iterator.h62 …static bool IterateRange(ObjectPointerType *refStart, const ObjectPointerType *refEnd, Handler *ha…
65 …static bool IterateRange(ObjectPointerType *refStart, ObjectPointerType *refEnd, Handler *handler,…
Dobject_helpers-inl.h111 auto *arrayStart = array->GetBase<ObjectPointerType *>(); in TraverseArray()
114 auto *p = begin < arrayStart ? arrayStart : reinterpret_cast<ObjectPointerType *>(begin); in TraverseArray()
/arkcompiler/runtime_core/static_core/runtime/include/
Dobject_accessor-inl.h34 return reinterpret_cast<ObjectHeader *>(Get<ObjectPointerType, IS_VOLATILE>(obj, offset)); in GetObject()
52 Set<ObjectPointerType, IS_VOLATILE>(obj, offset, ToObjPtrType(value)); in SetObject()
62 Set<ObjectPointerType, IS_VOLATILE>(obj, offset, ToObjPtrType(value)); in SetObject()
76 return reinterpret_cast<ObjectHeader *>(Get<ObjectPointerType, IS_VOLATILE>(obj, offset)); in GetObject()
93 Set<ObjectPointerType, IS_VOLATILE>(obj, offset, ToObjPtrType(value)); in SetObject()
102 Set<ObjectPointerType, IS_VOLATILE>(obj, offset, ToObjPtrType(value)); in SetObject()
198 return reinterpret_cast<ObjectHeader *>(Get<ObjectPointerType>(obj, offset, memoryOrder)); in GetFieldObject()
230 Set<ObjectPointerType>(obj, offset, ToObjPtrType(value), memoryOrder); in SetFieldObject()
240 Set<ObjectPointerType>(obj, offset, ToObjPtrType(value), memoryOrder); in SetFieldObject()
279 … auto value = CompareAndSetFieldPrimitive<ObjectPointerType>(obj, offset, ToObjPtrType(oldValue), in CompareAndSetFieldObject()
[all …]
Dobject_accessor.h133 static bool IsHeapObject(ObjectPointerType v) in IsHeapObject()
143 static ObjectHeader *DecodeNotNull(ObjectPointerType v) in DecodeNotNull()
167 static void Store(ObjectPointerType *ref, ObjectHeader *val) in Store()
222 static ObjectPointerType EncodeObjectPointerType(ObjectHeader *obj) in EncodeObjectPointerType()
224 return static_cast<ObjectPointerType>(ToUintPtr(obj)); in EncodeObjectPointerType()
Dcframe.h179 reg.SetReference(reinterpret_cast<ObjectHeader *>(static_cast<ObjectPointerType>(val))); in GetVRegValue()
Dobject_header.h80 static_assert(sizeof(ClassHelper::ClassWordSize) == sizeof(ObjectPointerType)); in SetClass()
/arkcompiler/runtime_core/static_core/runtime/include/coretypes/
Darray-inl.h167 size_t elemSize = (IS_REF && !IS_DYN) ? sizeof(ObjectPointerType) : sizeof(T); in Set()
202 return (IS_REF && !IS_DYN) ? sizeof(ObjectPointerType) : sizeof(T); in GetElementSize()
219 size_t elemSize = (IS_REF && !IS_DYN) ? sizeof(ObjectPointerType) : sizeof(T); in Set()
238 size_t elemSize = (IS_REF && !IS_DYN) ? sizeof(ObjectPointerType) : sizeof(T); in Get()
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/types/
Dets_array.h153 auto offset = index * sizeof(ObjectPointerType); in Set()
159 auto offset = index * sizeof(ObjectPointerType); in Get()
195 using AtomicRef = std::atomic<ark::ObjectPointerType>;
Dets_class.h424 return (GetFlagsOffset() - GCRefFieldsOffset()) / sizeof(ObjectPointerType); in GCRefFieldsNum()
/arkcompiler/runtime_core/static_core/runtime/mem/gc/g1/
Dg1-object-pointer-handlers.h31 using Type = ObjectPointerType *;
/arkcompiler/runtime_core/static_core/runtime/
Dobject_header.cpp220 reinterpret_cast<std::atomic<ark::ObjectPointerType> *>(&dstSp[i])->store( in ShallowCopy()
223 …reinterpret_cast<std::atomic<ark::ObjectPointerType> *>(&srcSp[i])->load(std::memory_order_relaxed… in ShallowCopy()
Dcompiler.h404 ObjectPointerType GetNonMovableString(MethodPtr method, StringId id) const override;
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/napi/
Dets_napi_helpers.cpp381 extern "C" ObjectPointerType EtsAsyncCall(Method *method, EtsCoroutine *currentCoro, uint8_t *regAr… in EtsAsyncCall()
/arkcompiler/runtime_core/static_core/runtime/interpreter/
Dvregister.h174 return reinterpret_cast<ObjectHeader *>(static_cast<ObjectPointerType>(GetValue())); in GetAs()
/arkcompiler/runtime_core/static_core/runtime/mem/refstorage/
Dreference_storage.cpp202 (*reinterpret_cast<ObjectPointerType *>(Reference::GetRefWithoutType(ref)))); in GetObject()
/arkcompiler/runtime_core/static_core/runtime/mem/gc/
Dbitmap.h416 template <size_t BYTESPERCHUNK = 1, typename PointerType = ObjectPointerType>
/arkcompiler/runtime_core/static_core/compiler/optimizer/optimizations/
Dreserve_string_builder_buffer.cpp44 tlabArraySizeMax_ = (TLAB_MAX_ALLOC_SIZE - arrayDataOffset) / sizeof(ObjectPointerType);
/arkcompiler/runtime_core/static_core/compiler/tests/codegen/
Dcodegen_test_1.cpp653 ObjectPointerType array[4U] = {0U, 0U, 0U, 0U}; in TEST_F()
656 auto param3 = CutValue<ObjectPointerType>(10U, DataType::UINT64); in TEST_F()
1422 ObjectPointerType array[4U] = {0xffffaaaaU, 0xffffbbbbU, 0xffffccccU, 0xffffddddU}; in TEST_F()

12