Home
last modified time | relevance | path

Searched refs:array_class (Results 1 – 16 of 16) sorted by relevance

/ark/runtime_core/runtime/coretypes/
Darray.cpp28 static Array *AllocateArray(panda::BaseClass *array_class, size_t elem_size, array_size_t length, in AllocateArray() argument
39 …vm->GetHeapManager()->AllocateObject(array_class, size, DEFAULT_ALIGNMENT, MTManagedThread::GetCur… in AllocateArray()
43 array_class, size, DEFAULT_ALIGNMENT, ManagedThread::GetCurrent())); in AllocateArray()
49 Array *Array::Create(panda::Class *array_class, const uint8_t *data, array_size_t length, panda::Sp… in Create() argument
51 size_t elem_size = array_class->GetComponentSize(); in Create()
52 auto *array = AllocateArray(array_class, elem_size, length, space_type); in Create()
70 Array *Array::Create(panda::Class *array_class, array_size_t length, panda::SpaceType space_type) in Create() argument
72 size_t elem_size = array_class->GetComponentSize(); in Create()
73 auto *array = AllocateArray(array_class, elem_size, length, space_type); in Create()
91 HClass *array_class = dynarrayclass->GetHClass(); in Create() local
[all …]
/ark/runtime_core/runtime/tests/
Dclass_linker_test_extension.h38 void InitializeArrayClass(Class *array_class, Class *component_class) override in InitializeArrayClass() argument
41 array_class->SetBase(object_class); in InitializeArrayClass()
42 array_class->SetComponentType(component_class); in InitializeArrayClass()
Dinterpreter_test.cpp1327 …Class *array_class = class_linker->GetExtension(ctx)->GetClass(utf::CStringAsMutf8(array_class_nam… in TestArray() local
1328 Class *elem_class = array_class->GetComponentType(); in TestArray()
1436 coretypes::Array *array = AllocArray(array_class, sizeof(stored_type), ARRAY_LENGTH); in TestArray()
1439 RuntimeInterface::SetupResolvedClass(array_class); in TestArray()
1440 RuntimeInterface::SetupArrayClass(array_class); in TestArray()
1547 Class *array_class = class_linker->GetExtension(ctx)->GetClassRoot(ClassRoot::ARRAY_U1); in TestNewArrayExceptions() local
1548 coretypes::Array *array = AllocArray(array_class, 1, 0); in TestNewArrayExceptions()
1550 RuntimeInterface::SetupResolvedClass(array_class); in TestNewArrayExceptions()
1551 RuntimeInterface::SetupArrayClass(array_class); in TestNewArrayExceptions()
1699 …Class *array_class = class_linker->GetExtension(ctx)->GetClass(utf::CStringAsMutf8(array_class_nam… in TestLoadArrayExceptions() local
[all …]
/ark/runtime_core/runtime/
Dclass_linker_extension.cpp79 …auto *array_class = CreateClass(utf::CStringAsMutf8(descriptor), GetClassVTableSize(root), GetClas… in InitializeArrayClassRoot() local
81 array_class->SetLoadContext(&boot_context_); in InitializeArrayClassRoot()
83 InitializeArrayClass(array_class, component_class); in InitializeArrayClassRoot()
85 AddClass(array_class); in InitializeArrayClassRoot()
86 SetClassRoot(root, array_class); in InitializeArrayClassRoot()
Dclass_linker.cpp927 …auto *array_class = ext->CreateClass(descriptor, ext->GetArrayClassVTableSize(), ext->GetArrayClas… in CreateArrayClass() local
929 array_class->SetLoadContext(component_class->GetLoadContext()); in CreateArrayClass()
931 ext->InitializeArrayClass(array_class, component_class); in CreateArrayClass()
933 return array_class; in CreateArrayClass()
964 auto *array_class = CreateArrayClass(ext, descriptor, need_copy_descriptor, component_class); in LoadArrayClass() local
966 Runtime::GetCurrent()->GetNotificationManager()->ClassLoadEvent(array_class); in LoadArrayClass()
968 auto *other_klass = component_class_context->InsertClass(array_class); in LoadArrayClass()
970 FreeClass(array_class); in LoadArrayClass()
974 RemoveCreatedClassInExtension(array_class); in LoadArrayClass()
975 Runtime::GetCurrent()->GetNotificationManager()->ClassPrepareEvent(array_class); in LoadArrayClass()
[all …]
Dexceptions.cpp163 void ThrowArrayStoreException(Class *array_class, Class *element_class) in ThrowArrayStoreException() argument
166 …ss << element_class->GetName() << " cannot be stored in an array of type " << array_class->GetName… in ThrowArrayStoreException()
/ark/runtime_core/runtime/core/
Dcore_class_linker_extension.cpp119 void CoreClassLinkerExtension::InitializeArrayClass(Class *array_class, Class *component_class) in InitializeArrayClass() argument
124 array_class->SetBase(object_class); in InitializeArrayClass()
125 array_class->SetComponentType(component_class); in InitializeArrayClass()
129 array_class->SetAccessFlags(access_flags); in InitializeArrayClass()
130 array_class->SetState(Class::State::INITIALIZED); in InitializeArrayClass()
Dcore_class_linker_extension.h30 void InitializeArrayClass(Class *array_class, Class *component_class) override;
/ark/runtime_core/runtime/tests/interpreter/
Dtest_runtime_interface.h124 Class *array_class; member
231 EXPECT_EQ(klass, array_class); in CreateArray()
238 array_class = klass; in SetupArrayClass()
326 ASSERT_EQ(array_store_exception_data.array_class, array_klass); in ThrowArrayStoreException()
442 static Class *array_class; variable
Dtest_runtime_interface.cpp36 Class *RuntimeInterface::array_class; member in panda::interpreter::test::RuntimeInterface
/ark/runtime_core/runtime/include/coretypes/
Darray.h58 static Array *Create(panda::Class *array_class, const uint8_t *data, array_size_t length,
61 static Array *Create(panda::Class *array_class, array_size_t length,
67 … static Array *CreateTagged(const PandaVM *vm, panda::BaseClass *array_class, array_size_t length,
/ark/runtime_core/runtime/include/
Dexceptions.h55 void ThrowArrayStoreException(Class *array_class, Class *element_class);
Dclass_linker_extension.h44 virtual void InitializeArrayClass(Class *array_class, Class *component_class) = 0;
/ark/js_runtime/ecmascript/
Decma_class_linker_extension.h53 …void InitializeArrayClass([[maybe_unused]] Class *array_class, [[maybe_unused]] Class *componentCl… in InitializeArrayClass() argument
/ark/runtime_core/runtime/interpreter/
Druntime_interface.h207 static void ThrowArrayStoreException(Class *array_class, Class *elem_class) in ThrowArrayStoreException() argument
209 panda::ThrowArrayStoreException(array_class, elem_class); in ThrowArrayStoreException()
Dinterpreter-inl.h313 auto *array_class = array->ClassAddr<Class>(); in CheckLoadConstOp() local
314 auto *element_class = array_class->GetComponentType(); in CheckLoadConstOp()
316 … RuntimeIfaceT::ThrowArrayStoreException(array_class, elem->template ClassAddr<Class>()); in CheckLoadConstOp()
2598 auto *array_class = array->ClassAddr<Class>(); in CheckStoreArrayOp() local
2599 auto *element_class = array_class->GetComponentType(); in CheckStoreArrayOp()
2601 … RuntimeIfaceT::ThrowArrayStoreException(array_class, elem->template ClassAddr<Class>()); in CheckStoreArrayOp()