| /arkcompiler/runtime_core/static_core/runtime/tests/ |
| D | bitmap_test_base.h | 37 …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()
|
| D | bitmap_clear_range_test.cpp | 36 using MemRangeTest = std::pair<ObjectPointerType, ObjectPointerType>; in TEST_F()
|
| D | debugger_test.cpp | 59 return reinterpret_cast<ObjectHeader *>(static_cast<ObjectPointerType>(v)); in ToPtr() 64 return static_cast<ObjectPointerType>(reinterpret_cast<uint64_t>(ptr)); in FromPtr()
|
| D | class_size_test.cpp | 29 static constexpr size_t OBJECT_POINTER_SIZE = sizeof(ObjectPointerType);
|
| /arkcompiler/runtime_core/static_core/libpandabase/mem/ |
| D | mem.h | 46 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()
|
| D | object_pointer.h | 126 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/ |
| D | object-references-iterator-inl.h | 96 …, [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 …]
|
| D | object-references-iterator.h | 62 …static bool IterateRange(ObjectPointerType *refStart, const ObjectPointerType *refEnd, Handler *ha… 65 …static bool IterateRange(ObjectPointerType *refStart, ObjectPointerType *refEnd, Handler *handler,…
|
| D | object_helpers-inl.h | 111 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/ |
| D | object_accessor-inl.h | 34 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 …]
|
| D | object_accessor.h | 133 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()
|
| D | cframe.h | 179 reg.SetReference(reinterpret_cast<ObjectHeader *>(static_cast<ObjectPointerType>(val))); in GetVRegValue()
|
| D | object_header.h | 80 static_assert(sizeof(ClassHelper::ClassWordSize) == sizeof(ObjectPointerType)); in SetClass()
|
| /arkcompiler/runtime_core/static_core/runtime/include/coretypes/ |
| D | array-inl.h | 167 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/ |
| D | ets_array.h | 153 auto offset = index * sizeof(ObjectPointerType); in Set() 159 auto offset = index * sizeof(ObjectPointerType); in Get() 195 using AtomicRef = std::atomic<ark::ObjectPointerType>;
|
| D | ets_class.h | 424 return (GetFlagsOffset() - GCRefFieldsOffset()) / sizeof(ObjectPointerType); in GCRefFieldsNum()
|
| /arkcompiler/runtime_core/static_core/runtime/mem/gc/g1/ |
| D | g1-object-pointer-handlers.h | 31 using Type = ObjectPointerType *;
|
| /arkcompiler/runtime_core/static_core/runtime/ |
| D | object_header.cpp | 220 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()
|
| D | compiler.h | 404 ObjectPointerType GetNonMovableString(MethodPtr method, StringId id) const override;
|
| /arkcompiler/runtime_core/static_core/plugins/ets/runtime/napi/ |
| D | ets_napi_helpers.cpp | 381 extern "C" ObjectPointerType EtsAsyncCall(Method *method, EtsCoroutine *currentCoro, uint8_t *regAr… in EtsAsyncCall()
|
| /arkcompiler/runtime_core/static_core/runtime/interpreter/ |
| D | vregister.h | 174 return reinterpret_cast<ObjectHeader *>(static_cast<ObjectPointerType>(GetValue())); in GetAs()
|
| /arkcompiler/runtime_core/static_core/runtime/mem/refstorage/ |
| D | reference_storage.cpp | 202 (*reinterpret_cast<ObjectPointerType *>(Reference::GetRefWithoutType(ref)))); in GetObject()
|
| /arkcompiler/runtime_core/static_core/runtime/mem/gc/ |
| D | bitmap.h | 416 template <size_t BYTESPERCHUNK = 1, typename PointerType = ObjectPointerType>
|
| /arkcompiler/runtime_core/static_core/compiler/optimizer/optimizations/ |
| D | reserve_string_builder_buffer.cpp | 44 tlabArraySizeMax_ = (TLAB_MAX_ALLOC_SIZE - arrayDataOffset) / sizeof(ObjectPointerType);
|
| /arkcompiler/runtime_core/static_core/compiler/tests/codegen/ |
| D | codegen_test_1.cpp | 653 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()
|