/ark/js_runtime/ecmascript/compiler/ |
D | stub_descriptor.cpp | 26 static void Initialize(StubDescriptor *descriptor); \ 28 void Stub##name##InterfaceDescriptor::Initialize(StubDescriptor *descriptor) 35 *descriptor = fastAdd; in CALL_STUB_INIT_DESCRIPTOR() 41 descriptor->SetParameters(params.data()); in CALL_STUB_INIT_DESCRIPTOR() 48 *descriptor = fastSub; in CALL_STUB_INIT_DESCRIPTOR() 54 descriptor->SetParameters(params.data()); in CALL_STUB_INIT_DESCRIPTOR() 61 *descriptor = fastMul; in CALL_STUB_INIT_DESCRIPTOR() 67 descriptor->SetParameters(params.data()); in CALL_STUB_INIT_DESCRIPTOR() 75 *descriptor = fastMulGC; in CALL_STUB_INIT_DESCRIPTOR() 82 descriptor->SetParameters(params.data()); in CALL_STUB_INIT_DESCRIPTOR() [all …]
|
D | circuit_builder.cpp | 414 GateRef CircuitBuilder::NewCallGate(StubDescriptor *descriptor, GateRef glue, GateRef target, in NewCallGate() argument 427 MachineType machineType = GetCallMachineTypeFromStubMachineType(descriptor->GetReturnType()); in NewCallGate() 428 GateType type = StubMachineType2GateType(descriptor->GetReturnType()); in NewCallGate() 432 GateRef CircuitBuilder::NewCallGate(StubDescriptor *descriptor, GateRef glue, GateRef target, in NewCallGate() argument 442 MachineType machineType = GetCallMachineTypeFromStubMachineType(descriptor->GetReturnType()); in NewCallGate() 443 GateType type = StubMachineType2GateType(descriptor->GetReturnType()); in NewCallGate() 459 StubDescriptor *descriptor = GET_STUBDESCRIPTOR(CallRuntimeTrampoline); in NewRuntimeCallGate() local 460 MachineType machineType = GetCallMachineTypeFromStubMachineType(descriptor->GetReturnType()); in NewRuntimeCallGate() 461 GateType type = StubMachineType2GateType(descriptor->GetReturnType()); in NewRuntimeCallGate() 466 GateRef CircuitBuilder::NewBytecodeCallGate(StubDescriptor *descriptor, GateRef glue, GateRef targe… in NewBytecodeCallGate() argument [all …]
|
D | circuit_builder.h | 75 GateRef NewCallGate(StubDescriptor *descriptor, GateRef glue, GateRef target, 77 GateRef NewCallGate(StubDescriptor *descriptor, GateRef glue, GateRef target, 80 GateRef NewBytecodeCallGate(StubDescriptor *descriptor, GateRef glue, GateRef target,
|
/ark/runtime_core/runtime/include/ |
D | class_helper.h | 64 static Str GetName(const uint8_t *descriptor); 66 static bool IsArrayDescriptor(const uint8_t *descriptor) in IsArrayDescriptor() argument 68 Span<const uint8_t> sp(descriptor, 1); in IsArrayDescriptor() 72 static const uint8_t *GetComponentDescriptor(const uint8_t *descriptor) in GetComponentDescriptor() argument 74 ASSERT(IsArrayDescriptor(descriptor)); in GetComponentDescriptor() 75 Span<const uint8_t> sp(descriptor, 1); in GetComponentDescriptor() 79 static size_t GetDimensionality(const uint8_t *descriptor) in GetDimensionality() argument 81 ASSERT(IsArrayDescriptor(descriptor)); in GetDimensionality() 84 while (*descriptor++ == '[') { in GetDimensionality() 94 Str ClassHelper::GetName(const uint8_t *descriptor) in GetName() argument [all …]
|
D | class_linker_extension.h | 60 …virtual Class *CreateClass(const uint8_t *descriptor, size_t vtable_size, size_t imt_size, size_t … 90 Class *FindLoadedClass(const uint8_t *descriptor, ClassLinkerContext *context = nullptr); 92 …Class *GetClass(const uint8_t *descriptor, bool need_copy_descriptor = true, ClassLinkerContext *c… 193 …ializePrimitiveClassRoot(ClassRoot root, panda_file::Type::TypeId type_id, const char *descriptor); 195 void InitializeArrayClassRoot(ClassRoot root, ClassRoot component_root, const char *descriptor); 228 Class *LoadClass(const uint8_t *descriptor, bool need_copy_descriptor, 248 Class *LoadClass(const uint8_t *descriptor, bool need_copy_descriptor,
|
D | class_linker.h | 65 … Class *GetClass(const uint8_t *descriptor, bool need_copy_descriptor, ClassLinkerContext *context, 231 …Class *CreateArrayClass(ClassLinkerExtension *ext, const uint8_t *descriptor, bool need_copy_descr… 248 Class *FindLoadedClass(const uint8_t *descriptor, ClassLinkerContext *context = nullptr); 254 …Class *BuildClass(const uint8_t *descriptor, bool need_copy_descriptor, uint32_t access_flags, Spa… 315 …Class *LoadArrayClass(const uint8_t *descriptor, bool need_copy_descriptor, ClassLinkerContext *co… 318 …adClass(const panda_file::File *pf, panda_file::File::EntityId class_id, const uint8_t *descriptor, 321 …Class *LoadClass(panda_file::ClassDataAccessor *class_data_accessor, const uint8_t *descriptor, Cl…
|
/ark/runtime_core/runtime/ |
D | class_linker_extension.cpp | 36 Class *ClassLinkerExtension::BootContext::LoadClass(const uint8_t *descriptor, bool need_copy_descr… in LoadClass() argument 41 …return extension_->GetClassLinker()->GetClass(descriptor, need_copy_descriptor, this, error_handle… in LoadClass() 48 Class *ClassLinkerExtension::AppContext::LoadClass(const uint8_t *descriptor, bool need_copy_descri… in LoadClass() argument 54 auto *cls = extension_->GetClass(descriptor, need_copy_descriptor, nullptr, &handler); in LoadClass() 60 auto class_id = pf->GetClassId(descriptor); in LoadClass() 69 ss << "Cannot find class " << descriptor << " in all app panda files"; in LoadClass() 75 …tension::InitializeArrayClassRoot(ClassRoot root, ClassRoot component_root, const char *descriptor) in InitializeArrayClassRoot() argument 79 …auto *array_class = CreateClass(utf::CStringAsMutf8(descriptor), GetClassVTableSize(root), GetClas… in InitializeArrayClassRoot() 90 const char *descriptor) in InitializePrimitiveClassRoot() argument 94 auto *primitive_class = CreateClass(utf::CStringAsMutf8(descriptor), GetClassVTableSize(root), in InitializePrimitiveClassRoot() [all …]
|
D | class_linker.cpp | 175 static ClassEntry FindClassInPandaFiles(const uint8_t *descriptor, const PandaFiles &panda_files) in FindClassInPandaFiles() argument 178 auto class_id = pf->GetClassId(descriptor); in FindClassInPandaFiles() 187 Class *ClassLinker::FindLoadedClass(const uint8_t *descriptor, ClassLinkerContext *context) in FindLoadedClass() argument 190 return context->FindClass(descriptor); in FindLoadedClass() 710 …assLinker::LoadClass(panda_file::ClassDataAccessor *class_data_accessor, const uint8_t *descriptor, in LoadClass() argument 717 auto *klass = ext->CreateClass(descriptor, class_info.vtable_builder->GetVTableSize(), in LoadClass() 739 LOG(ERROR, CLASS_LINKER) << "Cannot load methods of class '" << descriptor << "'"; in LoadClass() 745 LOG(ERROR, CLASS_LINKER) << "Cannot load fields of class '" << descriptor << "'"; in LoadClass() 751 LOG(ERROR, CLASS_LINKER) << "Cannot link methods of class '" << descriptor << "'"; in LoadClass() 757 LOG(ERROR, CLASS_LINKER) << "Cannot link fields of class '" << descriptor << "'"; in LoadClass() [all …]
|
D | class.cpp | 73 Class::UniqId Class::CalcUniqId(const uint8_t *descriptor) in CalcUniqId() argument 76 uid = GetHash32String(descriptor); in CalcUniqId() 91 Class::Class(const uint8_t *descriptor, panda_file::SourceLang lang, uint32_t vtable_size, uint32_t… in Class() argument 93 …: BaseClass(lang), descriptor_(descriptor), vtable_size_(vtable_size), imt_size_(imt_size), class_… in Class()
|
D | class_linker_context.h | 36 Class *FindClass(const uint8_t *descriptor) in FindClass() argument 39 auto it = loaded_classes_.find(descriptor); in FindClass() 52 …virtual Class *LoadClass([[maybe_unused]] const uint8_t *descriptor, [[maybe_unused]] bool need_co… in LoadClass() argument
|
/ark/runtime_core/runtime/tests/ |
D | class_linker_test.cpp | 104 auto descriptor = std::make_unique<PandaString>(); in TEST_F() local 105 …klass = ext->GetClass(ClassHelper::GetDescriptor(utf::CStringAsMutf8("_GLOBAL"), descriptor.get())… in TEST_F() 108 PandaString descriptor; in TEST_F() local 110 …_EQ(klass, ext->GetClass(ClassHelper::GetDescriptor(utf::CStringAsMutf8("_GLOBAL"), &descriptor))); in TEST_F() 135 PandaString descriptor; in TEST_F() local 139 ext->GetClass(ClassHelper::GetDescriptor(utf::CStringAsMutf8("_GLOBAL"), &descriptor)); in TEST_F() 431 PandaString descriptor; in TEST_F() local 433 … Class *klass = ext->GetClass(ClassHelper::GetDescriptor(utf::CStringAsMutf8("R2"), &descriptor)); in TEST_F() 534 PandaString descriptor; in TEST_F() local 537 …to *klass = ext->GetClass(ClassHelper::GetDescriptor(utf::CStringAsMutf8("_GLOBAL"), &descriptor)); in TEST_F() [all …]
|
D | method_test.cpp | 92 PandaString descriptor; in VerifyLineNumber() local 94 …ass = extension->GetClass(ClassHelper::GetDescriptor(utf::CStringAsMutf8("_GLOBAL"), &descriptor)); in VerifyLineNumber() 155 PandaString descriptor; in TEST_F() local 157 …ass = extension->GetClass(ClassHelper::GetDescriptor(utf::CStringAsMutf8("_GLOBAL"), &descriptor)); in TEST_F() 216 PandaString descriptor; in TEST_F() local 218 …ass = extension->GetClass(ClassHelper::GetDescriptor(utf::CStringAsMutf8("_GLOBAL"), &descriptor)); in TEST_F() 252 PandaString descriptor; in TEST_F() local 254 …ss *klass = extension->GetClass(ClassHelper::GetDescriptor(utf::CStringAsMutf8("R"), &descriptor)); in TEST_F() 289 PandaString descriptor; in TEST_F() local 291 …ass = extension->GetClass(ClassHelper::GetDescriptor(utf::CStringAsMutf8("_GLOBAL"), &descriptor)); in TEST_F() [all …]
|
D | class_linker_test_extension.h | 77 …Class *CreateClass(const uint8_t *descriptor, size_t vtable_size, size_t imt_size, size_t size) ov… in CreateClass() argument 83 res->InitClass(descriptor, vtable_size, imt_size, size); in CreateClass()
|
D | c2i_bridge_test.cpp | 99 auto descriptor = std::make_unique<PandaString>(); in SetUpHelperFunctions() local 110 …xtension->GetClass(ClassHelper::GetDescriptor(utf::CStringAsMutf8("TestUtils"), descriptor.get())); in SetUpHelperFunctions() 157 auto descriptor = std::make_unique<PandaString>(); in MakeNoArgsMethod() local 160 … extension->GetClass(ClassHelper::GetDescriptor(utf::CStringAsMutf8("_GLOBAL"), descriptor.get())); in MakeNoArgsMethod() 260 auto descriptor = std::make_unique<PandaString>(); in MakeCheckArgsMethod() local 262 …s = extension->GetClass(ClassHelper::GetDescriptor(utf::CStringAsMutf8("Test"), descriptor.get())); in MakeCheckArgsMethod()
|
D | interpreter_test.cpp | 420 PandaString descriptor; in TEST_F() local 423 …s *object_class = ext->GetClass(ClassHelper::GetDescriptor(utf::CStringAsMutf8("R"), &descriptor)); in TEST_F() 1296 PandaString descriptor; in GetArrayClassName() local 1299 ClassHelper::GetArrayDescriptor(utf::CStringAsMutf8("panda.Object"), 1, &descriptor); in GetArrayClassName() 1300 return descriptor; in GetArrayClassName() 1303 ClassHelper::GetPrimitiveArrayDescriptor(panda_file::Type(component_type_id), 1, &descriptor); in GetArrayClassName() 1304 return descriptor; in GetArrayClassName() 2151 PandaString descriptor; in TEST_F() local 2154 …s *object_class = ext->GetClass(ClassHelper::GetDescriptor(utf::CStringAsMutf8("R"), &descriptor)); in TEST_F() 2208 PandaString descriptor; in TEST_F() local [all …]
|
/ark/runtime_core/assembler/ |
D | assembly-type.cpp | 71 Type Type::FromDescriptor(std::string_view descriptor) in FromDescriptor() argument 78 while (descriptor[i] == '[') { in FromDescriptor() 83 bool is_ref_type = descriptor[i] == 'L'; in FromDescriptor() 85 descriptor.remove_suffix(1); /* Remove semicolon */ in FromDescriptor() 89 descriptor.remove_prefix(i); in FromDescriptor() 92 return Type(descriptor, rank); in FromDescriptor() 94 return Type(reverse_primitive_types[descriptor], rank); in FromDescriptor()
|
/ark/runtime_core/libpandabase/os/unix/ |
D | native_stack.cpp | 163 std::string ChangeJaveStackFormat(const char *descriptor) in ChangeJaveStackFormat() argument 165 if (descriptor == nullptr || strlen(descriptor) < 1) { in ChangeJaveStackFormat() 170 if (descriptor[0] == 'L') { // NOLINT(cppcoreguidelines-pro-bounds-pointer-arithmetic) in ChangeJaveStackFormat() 171 std::string str(descriptor); in ChangeJaveStackFormat() 182 if (descriptor[0] == '[') { // NOLINT(cppcoreguidelines-pro-bounds-pointer-arithmetic) in ChangeJaveStackFormat() 183 std::string java_name(descriptor); in ChangeJaveStackFormat() 189 switch (descriptor[0]) { // NOLINT(cppcoreguidelines-pro-bounds-pointer-arithmetic) in ChangeJaveStackFormat()
|
/ark/runtime_core/assembler/tests/ |
D | emitter_test.cpp | 73 std::string descriptor; in TEST() local 74 auto class_id = pf->GetClassId(GetTypeDescriptor("_GLOBAL", &descriptor)); in TEST() 127 std::string descriptor; in TEST() local 128 auto class_id = pf->GetClassId(GetTypeDescriptor("R", &descriptor)); in TEST() 215 std::string descriptor; in TEST() local 216 auto class_id = pf->GetClassId(GetTypeDescriptor("_GLOBAL", &descriptor)); in TEST() 304 std::string descriptor; in TEST() local 306 auto class_id = pf->GetClassId(GetTypeDescriptor("_GLOBAL", &descriptor)); in TEST() 327 …ctor<CatchInfo> catch_infos {{pf->GetClassId(GetTypeDescriptor("Exception1", &descriptor)), 4 * 9}, in TEST() 328 … {pf->GetClassId(GetTypeDescriptor("Exception2", &descriptor)), 5 * 9}, in TEST() [all …]
|
/ark/runtime_core/runtime/include/coretypes/ |
D | class.h | 31 Class(const uint8_t *descriptor, uint32_t vtable_size, uint32_t imt_size, uint32_t klass_size) in Class() argument 32 …: ObjectHeader(), klass_(descriptor, panda_file::SourceLang::PANDA_ASSEMBLY, vtable_size, imt_size… in Class() 38 …void InitClass(const uint8_t *descriptor, uint32_t vtable_size, uint32_t imt_size, uint32_t klass_… in InitClass() argument 42 …panda::Class(descriptor, panda_file::SourceLang::PANDA_ASSEMBLY, vtable_size, imt_size, klass_size… in InitClass()
|
/ark/runtime_core/libpandafile/ |
D | type_helper.h | 30 inline bool IsArrayDescriptor(const uint8_t *descriptor) in IsArrayDescriptor() argument 32 Span<const uint8_t> sp(descriptor, 1); in IsArrayDescriptor()
|
/ark/js_runtime/ecmascript/ |
D | ecma_class_linker_extension.h | 80 …Class *CreateClass([[maybe_unused]] const uint8_t *descriptor, [[maybe_unused]] size_t vtableSize,… in CreateClass() argument 83 return NewClass(descriptor, vtableSize, imtSize, size); in CreateClass() 102 Class *NewClass(const uint8_t *descriptor, size_t vtableSize, size_t imtSize, size_t size);
|
D | ecma_class_linker_extension.cpp | 66 Class *EcmaClassLinkerExtension::NewClass(const uint8_t *descriptor, size_t vtableSize, size_t imtS… in NewClass() argument 75 res->InitClass(descriptor, vtableSize, imtSize, size); in NewClass()
|
/ark/js_runtime/ecmascript/jspandafile/ |
D | js_pandafile.cpp | 21 …le::JSPandaFile(const panda_file::File *pf, const CString &descriptor) : pf_(pf), desc_(descriptor) in JSPandaFile() argument
|
/ark/js_runtime/ecmascript/containers/ |
D | containers_private.cpp | 124 PropertyDescriptor descriptor(thread, JSHandle<JSTaggedValue>(function), false, false, false); in SetFrozenFunction() local 125 JSObject::DefineOwnProperty(thread, obj, keyString, descriptor); in SetFrozenFunction() 134 PropertyDescriptor descriptor(thread, value, false, false, false); in SetFrozenConstructor() local 135 JSObject::DefineOwnProperty(thread, obj, key, descriptor); in SetFrozenConstructor() 184 …PropertyDescriptor descriptor(thread, JSHandle<JSTaggedValue>::Cast(function), false, false, false… in SetFunctionAtSymbol() local 185 JSObject::DefineOwnProperty(thread, obj, symbol, descriptor); in SetFunctionAtSymbol() 318 PropertyDescriptor descriptor(thread, entriesFunc, false, false, false); in InitializeTreeMap() local 319 JSObject::DefineOwnProperty(thread, mapFuncPrototype, iteratorSymbol, descriptor); in InitializeTreeMap() 390 PropertyDescriptor descriptor(thread, valuesFunc, false, false, false); in InitializeTreeSet() local 391 JSObject::DefineOwnProperty(thread, setFuncPrototype, iteratorSymbol, descriptor); in InitializeTreeSet()
|
/ark/runtime_core/libpandabase/os/ |
D | native_stack.cpp | 51 std::string ChangeJaveStackFormat([[maybe_unused]] const char *descriptor) in ChangeJaveStackFormat() argument
|