| /arkcompiler/runtime_core/static_core/runtime/ |
| D | string_table.h | 22 #include "runtime/include/coretypes/string.h" 38 virtual coretypes::String *GetOrInternString(const uint8_t *mutf8Data, uint32_t utf16Length, 40 virtual coretypes::String *GetOrInternString(const uint16_t *utf16Data, uint32_t utf16Length, 42 coretypes::String *GetOrInternString(coretypes::String *string, const LanguageContext &ctx); 44 …coretypes::String *GetOrInternInternalString(const panda_file::File &pf, panda_file::File::EntityI… 47 …coretypes::String *GetInternalStringFast(const panda_file::File &pf, panda_file::File::EntityId id) in GetInternalStringFast() 77 void PreBarrierOnGet(coretypes::String *str); 79 virtual coretypes::String *GetOrInternString(const uint8_t *mutf8Data, uint32_t utf16Length, 81 … virtual coretypes::String *GetOrInternString(const uint16_t *utf16Data, uint32_t utf16Length, 83 …virtual coretypes::String *GetOrInternString(coretypes::String *string, const LanguageContext &ctx… [all …]
|
| D | string_table.cpp | 24 coretypes::String *StringTable::GetOrInternString(const uint8_t *mutf8Data, uint32_t utf16Length, in GetOrInternString() 27 bool canBeCompressed = coretypes::String::CanBeCompressedMUtf8(mutf8Data); in GetOrInternString() 35 coretypes::String *StringTable::GetOrInternString(const uint16_t *utf16Data, uint32_t utf16Length, in GetOrInternString() 45 coretypes::String *StringTable::GetOrInternString(coretypes::String *string, const LanguageContext … in GetOrInternString() 54 coretypes::String *StringTable::GetOrInternInternalString(const panda_file::File &pf, panda_file::F… in GetOrInternInternalString() 61 coretypes::String *str = table_.GetString(data.data, data.utf16Length, data.isAscii, ctx); in GetOrInternInternalString() 92 coretypes::String *StringTable::Table::GetString(const uint8_t *utf8Data, uint32_t utf16Length, boo… in GetString() 95 …uint32_t hashCode = coretypes::String::ComputeHashcodeMutf8(utf8Data, utf16Length, canBeCompressed… in GetString() 99 …if (coretypes::String::StringsAreEqualMUtf8(foundString, utf8Data, utf16Length, canBeCompressed)) { in GetString() 106 coretypes::String *StringTable::Table::GetString(const uint16_t *utf16Data, uint32_t utf16Length, in GetString() [all …]
|
| D | global_handle_storage-inl.h | 74 inline void GlobalHandleStorage<coretypes::TaggedType>::DisposeGlobalHandle(uintptr_t nodeAddr) in DisposeGlobalHandle() 78 node->SetObject(coretypes::TaggedValue::VALUE_UNDEFINED); in DisposeGlobalHandle() 89 inline void GlobalHandleStorage<coretypes::TaggedType>::DealUpdateObject(std::array<Node, GLOBAL_BL… in DealUpdateObject() 92 coretypes::TaggedValue obj(block->at(index).GetObject()); in DealUpdateObject() 94 coretypes::TaggedValue value(panda::mem::GetForwardAddress(obj.GetHeapObject())); in DealUpdateObject() 100 inline void GlobalHandleStorage<coretypes::TaggedType>::UpdateHeapObject() in UpdateHeapObject() 120 inline void GlobalHandleStorage<coretypes::TaggedType>::DealVisitGCRoots(std::array<Node, GLOBAL_BL… in DealVisitGCRoots() 123 coretypes::TaggedValue value(block->at(index).GetObject()); in DealVisitGCRoots() 130 inline void GlobalHandleStorage<coretypes::TaggedType>::VisitGCRoots([[maybe_unused]] const ObjectV… in VisitGCRoots() 149 template class GlobalHandleStorage<coretypes::TaggedType>;
|
| D | intrinsics.cpp | 30 #include "runtime/include/coretypes/array.h" 31 #include "runtime/include/coretypes/string.h" 164 void PrintStringInternal(coretypes::String *v) in PrintStringInternal() 181 void PrintString(coretypes::String *v) in PrintString() 234 void AssertPrint(uint8_t cond, coretypes::String *s) in AssertPrint() 264 uint8_t CompileMethod(coretypes::String *fullMethodName) in CompileMethod() 290 int32_t ConvertStringToI32(coretypes::String *s) in ConvertStringToI32() 295 uint32_t ConvertStringToU32(coretypes::String *s) in ConvertStringToU32() 300 int64_t ConvertStringToI64(coretypes::String *s) in ConvertStringToI64() 305 uint64_t ConvertStringToU64(coretypes::String *s) in ConvertStringToU64() [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/runtime/types/ |
| D | ets_string.h | 20 #include "runtime/include/coretypes/string-inl.h" 28 class EtsString : private coretypes::String { 39 …coretypes::String *s = coretypes::String::CreateFromMUtf8(data, ctx, Runtime::GetCurrent()->GetPan… in CreateFromMUtf8() 49 coretypes::String::CreateEmptyString(ctx, Runtime::GetCurrent()->GetPandaVM())); in CreateFromMUtf8() 56 coretypes::String *s = in CreateFromMUtf8() 57 … coretypes::String::CreateFromMUtf8(data, length, ctx, Runtime::GetCurrent()->GetPandaVM()); in CreateFromMUtf8() 67 coretypes::String::CreateEmptyString(ctx, Runtime::GetCurrent()->GetPandaVM())); in CreateFromUtf8() 75 … coretypes::String::CreateFromUtf8(data, length, ctx, Runtime::GetCurrent()->GetPandaVM())); in CreateFromUtf8() 84 coretypes::String::CreateEmptyString(ctx, Runtime::GetCurrent()->GetPandaVM())); in CreateFromUtf16() 90 coretypes::String *s = in CreateFromUtf16() [all …]
|
| /arkcompiler/runtime_core/static_core/runtime/entrypoints/ |
| D | entrypoints.yaml | 83 - panda::coretypes::Array* 155 - panda::coretypes::String* 162 - panda::coretypes::String* 170 - panda::coretypes::String* 178 - panda::coretypes::Array* 188 - panda::coretypes::Array* 366 - panda::coretypes::String* 375 - panda::coretypes::String* 484 - panda::coretypes::Array* 493 - panda::coretypes::Array* [all …]
|
| D | entrypoints.cpp | 26 #include "runtime/include/coretypes/array.h" 155 extern "C" coretypes::Array *CreateArraySlowPathEntrypoint(Class *klass, size_t length) in CreateArraySlowPathEntrypoint() 160 auto arr = coretypes::Array::Create(klass, length); in CreateArraySlowPathEntrypoint() 171 extern "C" coretypes::Array *CreateMultiArrayRecEntrypoint(ManagedThread *thread, Class *klass, uin… in CreateMultiArrayRecEntrypoint() 179 VMHandle<coretypes::Array> handle(thread, coretypes::Array::Create(klass, arrSize)); in CreateMultiArrayRecEntrypoint() 192 handle.GetPtr()->template Set<coretypes::Array *>(idx, array); in CreateMultiArrayRecEntrypoint() 199 extern "C" coretypes::String *CreateEmptyStringEntrypoint() in CreateEmptyStringEntrypoint() 204 auto str = coretypes::String::CreateEmptyString(vm->GetLanguageContext(), vm); in CreateEmptyStringEntrypoint() 212 extern "C" coretypes::String *CreateStringFromStringEntrypoint(ObjectHeader *obj) in CreateStringFromStringEntrypoint() 216 …auto str = coretypes::String::CreateFromString(static_cast<coretypes::String *>(obj), vm->GetLangu… in CreateStringFromStringEntrypoint() [all …]
|
| /arkcompiler/runtime_core/docs/ |
| D | runtime-class.md | 14 namespace panda::coretypes { 21 } // namespace panda::coretypes 24 In this case layout of the `coretypes::Class` will be following: 27 mirror class (`coretypes::Class`) --------> +------------------+ <-+ 40 Such layout allows to get pointer to the `panda::Class` object from the `coretypes::Class` one and … 43 auto *managed_class_obj = coretypes::Class::FromRuntimeClass(klass); 48 Where `coretypes::Class::FromRuntimeClass` and `coretypes::Class::GetRuntimeClass` are implemented … 52 namespace panda::coretypes { 70 } // namespace panda::coretypes 86 managed_class_obj = coretypes::Class::FromRuntimeClass(klass);
|
| /arkcompiler/runtime_core/static_core/docs/ |
| D | runtime-class.md | 14 namespace panda::coretypes { 21 } // namespace panda::coretypes 24 In this case layout of the `coretypes::Class` will be following: 27 mirror class (`coretypes::Class`) --------> +------------------+ <-+ 40 Such layout allows to get pointer to the `panda::Class` object from the `coretypes::Class` one and … 43 auto *managed_class_obj = coretypes::Class::FromRuntimeClass(klass); 48 Where `coretypes::Class::FromRuntimeClass` and `coretypes::Class::GetRuntimeClass` are implemented … 52 namespace panda::coretypes { 70 } // namespace panda::coretypes 86 managed_class_obj = coretypes::Class::FromRuntimeClass(klass);
|
| /arkcompiler/runtime_core/static_core/runtime/mem/ |
| D | free_object.h | 19 #include "runtime/include/coretypes/tagged_value.h" 29 auto raw = ObjectAccessor::GetPrimitive<coretypes::TaggedType>(this, GetTaggedSizeOffset()); in GetSize() 30 return coretypes::TaggedValue::UnpackPrimitiveData(raw); in GetSize() 35 auto raw = ObjectAccessor::GetPrimitive<coretypes::TaggedType>(this, GetTaggedNextOffset()); in GetNext() 36 …return reinterpret_cast<FreeObject *>(static_cast<uintptr_t>(coretypes::TaggedValue::UnpackPrimiti… in GetNext() 51 coretypes::TaggedType taggedNext_ FIELD_UNUSED; 52 coretypes::TaggedType taggedSize_ FIELD_UNUSED;
|
| D | object_helpers-inl.h | 21 #include "runtime/include/coretypes/array-inl.h" 22 #include "runtime/include/coretypes/dyn_objects.h" 23 #include "runtime/include/coretypes/string.h" 24 #include "runtime/include/coretypes/class.h" 102 bool GCStaticObjectHelpers::TraverseArray(coretypes::Array *array, [[maybe_unused]] Class *cls, voi… in TraverseArray() 119 auto elementSize = coretypes::Array::GetElementSize<ObjectHeader *, false>(); in TraverseArray() 146 …return TraverseArray<INTERRUPTIBLE>(static_cast<coretypes::Array *>(objectHeader), cls, begin, end… in TraverseAllObjectsWithInfo() 165 bool GCDynamicObjectHelpers::TraverseClass(coretypes::DynClass *dynClass, Handler &handler) in TraverseClass() 167 … size_t hklassSize = dynClass->ClassAddr<HClass>()->GetObjectSize() - sizeof(coretypes::DynClass); in TraverseClass() 214 bool GCDynamicObjectHelpers::TraverseArray(coretypes::Array *array, [[maybe_unused]] HClass *cls, v… in TraverseArray() [all …]
|
| /arkcompiler/runtime_core/static_core/runtime/include/ |
| D | exceptions.h | 19 #include "runtime/include/coretypes/array.h" 38 void ThrowArrayIndexOutOfBoundsException(coretypes::ArraySsizeT idx, coretypes::ArraySizeT length); 39 void ThrowArrayIndexOutOfBoundsException(coretypes::ArraySsizeT idx, coretypes::ArraySizeT length, 42 void ThrowIndexOutOfBoundsException(coretypes::ArraySsizeT idx, coretypes::ArraySsizeT length); 46 void ThrowStringIndexOutOfBoundsException(coretypes::ArraySsizeT idx, coretypes::ArraySizeT length); 48 void ThrowNegativeArraySizeException(coretypes::ArraySsizeT size);
|
| D | thread-inl.h | 28 inline void ManagedThread::PushHandleScope<coretypes::TaggedType>(HandleScope<coretypes::TaggedType… 34 inline HandleScope<coretypes::TaggedType> *ManagedThread::PopHandleScope<coretypes::TaggedType>() 36 HandleScope<coretypes::TaggedType> *scope = taggedHandleScopes_.back(); 42 inline HandleScope<coretypes::TaggedType> *ManagedThread::GetTopScope<coretypes::TaggedType>() const 51 inline HandleStorage<coretypes::TaggedType> *ManagedThread::GetHandleStorage<coretypes::TaggedType>… 57 inline GlobalHandleStorage<coretypes::TaggedType> *ManagedThread::GetGlobalHandleStorage<coretypes:…
|
| /arkcompiler/runtime_core/static_core/runtime/tests/ |
| D | test_utils.h | 21 #include "runtime/include/coretypes/array.h" 22 #include "runtime/include/coretypes/string.h" 41 …return heapManager->AllocateObject(stringClass, panda::coretypes::String::ComputeSizeUtf16(length)… in AllocateNullifiedPayloadString() 49 return coretypes::String::CreateFromUtf16(&data, 0, ctx, runtime->GetPandaVM(), false); in AllocNonMovableObject() 55 static coretypes::Array *AllocArray(size_t length, ClassRoot classRoot, bool nonmovable) in AllocArray() 64 return coretypes::Array::Create(klass, length, spaceType); in AllocArray() 67 static coretypes::String *AllocString(size_t length) in AllocString() 73 …return coretypes::String::CreateFromMUtf8(data.data(), length, length, true, ctx, runtime->GetPand… in AllocString() 80 return coretypes::String::CreateEmptyString(ctx, runtime->GetPandaVM()); in AllocObjectInYoung()
|
| D | epsilon_gcs_test.cpp | 129 if (i < 3U) { // First 3 elements are coretypes::Array in TEST_F() 130 ASSERT_NE(static_cast<coretypes::Array *>(allocatedObjects[i])->GetLength(), 0); in TEST_F() 132 ASSERT_NE(static_cast<coretypes::String *>(allocatedObjects[i])->GetLength(), 0); in TEST_F() 143 VMHandle<coretypes::Array> nonmovable = VMHandle<coretypes::Array>( in TEST_F() 145 std::vector<VMHandle<coretypes::String>> strings; in TEST_F() 146 coretypes::String *objString; in TEST_F() 159 VMHandle<coretypes::String> objAfterOom = VMHandle<coretypes::String>( in TEST_F() 190 VMHandle<coretypes::String> objAfterTriggeredGc = VMHandle<coretypes::String>( in TEST_F() 223 VMHandle<coretypes::String> objString; in TEST_F() 224 VMHandle<coretypes::String> objStringHuge; in TEST_F() [all …]
|
| D | static_analyzer_test.cpp | 25 #include "runtime/include/coretypes/array.h" 26 #include "runtime/include/coretypes/string.h" 63 coretypes::String *AllocString() in AllocString() 68 return coretypes::String::CreateEmptyString(ctx, runtime->GetPandaVM()); in AllocString() 71 coretypes::Array *AllocStringArray(size_t length) in AllocStringArray() 78 return coretypes::Array::Create(klass, length, spaceType); in AllocStringArray() 84 coretypes::Array *array = AllocStringArray(2); in TEST_F() 137 coretypes::Array *array = AllocStringArray(2); in TEST_F()
|
| D | g1gc_test.cpp | 27 #include "runtime/include/coretypes/array.h" 28 #include "runtime/include/coretypes/string.h" 84 return numRegions * DEFAULT_REGION_SIZE - sizeof(coretypes::String) - Region::HeadSize(); in StringLengthFitIntoRegion() 217 coretypes::Array *nonMovableObj = nullptr; in TEST_F() 222 …nonMovableObj = coretypes::Array::Create(klass, ARRAY_LENGTH, SpaceType::SPACE_TYPE_NON_MOVABLE_OB… in TEST_F() 223 coretypes::String *youngObj = coretypes::String::CreateEmptyString(ctx, runtime->GetPandaVM()); in TEST_F() 226 VMHandle<coretypes::Array> nonMovableObjPtr(thread, nonMovableObj); in TEST_F() 238 auto youngObj2 = static_cast<coretypes::String *>(nonMovableObjPtr->Get<ObjectHeader *>(0)); in TEST_F() 254 VMHandle<coretypes::Array> humongousObj(thread, in TEST_F() 285 VMHandle<coretypes::Array> humongous; in TEST_F() [all …]
|
| D | gc_log_test.cpp | 27 #include "runtime/include/coretypes/array.h" 28 #include "runtime/include/coretypes/string.h" 180 size_t stringLen = garbageRate * DEFAULT_REGION_SIZE / 100U + sizeof(coretypes::String); in TEST_F() 183 VMHandle<coretypes::Array> arrays[3U]; in TEST_F() 186 …VMHandle<coretypes::Array>(thread, objectAllocator.AllocArray(2U, ClassRoot::ARRAY_STRING, false)); in TEST_F() 205 size_t bigStringLen = garbageRate * DEFAULT_REGION_SIZE / 100U + sizeof(coretypes::String); in TEST_F() 207 … size_t bigStringLen1 = (garbageRate + 1) * DEFAULT_REGION_SIZE / 100U + sizeof(coretypes::String); in TEST_F() 209 …size_t bigStringLen2 = (garbageRate + 2U) * DEFAULT_REGION_SIZE / 100U + sizeof(coretypes::String); in TEST_F() 210 size_t smallLen = DEFAULT_REGION_SIZE / 2U + sizeof(coretypes::String); in TEST_F() 222 VMHandle<coretypes::Array> holder; in TEST_F() [all …]
|
| D | mem_stats_gc_test.cpp | 63 ASSERT(objectSize >= sizeof(coretypes::String)); in MemStatsTest() 72 for (size_t j = 0; j < objectSize - sizeof(coretypes::String); j++) { in MemStatsTest() 79 size_t allocSize = simpleString.size() + sizeof(coretypes::String); in MemStatsTest() 95 std::array<VMHandle<coretypes::String> *, OBJECT_COUNT> handlers {}; in MemStatsTest() 99 coretypes::String *stringObj = in MemStatsTest() 100 … coretypes::String::CreateFromMUtf8(reinterpret_cast<const uint8_t *>(&simpleString[0]), in MemStatsTest() 103 handlers[j] = allocator->New<VMHandle<coretypes::String>>(thread_, stringObj); in MemStatsTest()
|
| /arkcompiler/runtime_core/static_core/runtime/tests/interpreter/ |
| D | test_runtime_interface.h | 24 #include "runtime/include/coretypes/array-inl.h" 25 #include "runtime/include/coretypes/string.h" 131 coretypes::ArraySsizeT idx {}; 132 coretypes::ArraySizeT length {}; 137 coretypes::ArraySsizeT size {}; 162 …static coretypes::Array *ResolveLiteralArray([[maybe_unused]] PandaVM *vm, [[maybe_unused]] const … in ResolveLiteralArray() 167 return ToPointer<coretypes::Array>(0x7788); in ResolveLiteralArray() 261 static coretypes::Array *CreateArray(Class *klass, coretypes::ArraySizeT length) in CreateArray() 273 static void SetupArrayLength(coretypes::ArraySizeT length) in SetupArrayLength() 278 static void SetupArrayObject(coretypes::Array *obj) in SetupArrayObject() [all …]
|
| /arkcompiler/runtime_core/static_core/runtime/include/coretypes/ |
| D | dyn_objects.h | 20 #include "runtime/include/coretypes/array.h" 21 #include "runtime/include/coretypes/string.h" 22 #include "runtime/include/coretypes/tagged_value.h" 27 namespace panda::coretypes { 73 } // namespace panda::coretypes
|
| /arkcompiler/runtime_core/static_core/runtime/mem/gc/dynamic/ |
| D | gc_marker_dynamic-inl.h | 20 #include "runtime/include/coretypes/dyn_objects.h" 59 …, LANG_TYPE_DYNAMIC>::HandleClass(GCMarkingStackType *objectsStack, const coretypes::DynClass *cls) in HandleClass() 62 HClass *klass = const_cast<coretypes::DynClass *>(cls)->GetHClass(); in HandleClass() 67 size_t bodySize = klassSize - sizeof(coretypes::DynClass) - sizeof(HClass); in HandleClass() 72 coretypes::TaggedValue taggedValue(addr->load(std::memory_order_relaxed)); in HandleClass() 85 const coretypes::Array *arrayObject, in HandleArrayClass() 91 for (coretypes::ArraySizeT i = 0; i < arrayLength; i++) { in HandleArrayClass() 127 auto dynClass = static_cast<const panda::coretypes::DynClass *>(object); in MarkInstance() 130 auto *arrayObject = static_cast<const panda::coretypes::Array *>(object); in MarkInstance()
|
| D | gc_dynamic_data.h | 19 #include "runtime/include/coretypes/tagged_value.h" 27 dynWeakReferences_ = a->New<PandaStack<coretypes::TaggedType *>>(a->Adapter()); in GCDynamicData() 39 PandaStack<coretypes::TaggedType *> *GetDynWeakReferences() in GetDynWeakReferences() 45 PandaStack<coretypes::TaggedType *> *dynWeakReferences_;
|
| /arkcompiler/runtime_core/static_core/runtime/coretypes/ |
| D | array.cpp | 16 #include "runtime/include/coretypes/array.h" 21 #include "runtime/include/coretypes/dyn_objects.h" 25 namespace panda::coretypes { namespace 37 return static_cast<coretypes::Array *>( in AllocateArray() 41 return static_cast<coretypes::Array *>(vm->GetHeapManager()->AllocateNonMovableObject( in AllocateArray() 89 size_t elemSize = coretypes::TaggedValue::TaggedTypeSize(); in Create() 109 size_t elemSize = coretypes::TaggedValue::TaggedTypeSize(); in CreateTagged() 128 } // namespace panda::coretypes
|
| /arkcompiler/runtime_core/static_core/runtime/templates/ |
| D | runtime.rb | 24 t = Runtime::coretypes.find { |t| t.managed_class == type } 26 d = Runtime::coretypes.find { |d| d.managed_class == "Default" } 71 'acc' => 'coretypes::TaggedValue', 121 def coretypes method 122 @data.coretypes
|