/arkcompiler/runtime_core/static_core/plugins/ets/runtime/ |
H A D | ets_exceptions.h | 27 PANDA_PUBLIC_API EtsObject *SetupEtsException(EtsCoroutine *coroutine, const char *classDescriptor, const char *msg); 30 PANDA_PUBLIC_API void ThrowEtsException(EtsCoroutine *coroutine, const char *classDescriptor, const char *msg); 33 inline void ThrowEtsException(EtsCoroutine *coroutine, std::string_view classDescriptor, const char *msg) in ThrowEtsException() argument 35 ThrowEtsException(coroutine, classDescriptor.data(), msg); in ThrowEtsException() 39 inline void ThrowEtsException(EtsCoroutine *coroutine, std::string_view classDescriptor, std::string_view msg) in ThrowEtsException() argument 41 ThrowEtsException(coroutine, classDescriptor.data(), msg.data()); in ThrowEtsException()
|
H A D | ets_exceptions.cpp | 30 static EtsClass *GetExceptionClass(EtsCoroutine *coroutine, const char *classDescriptor, bool *isError) in GetExceptionClass() argument 33 ASSERT(classDescriptor != nullptr); in GetExceptionClass() 37 EtsClass *cls = classLinker->GetClass(classDescriptor, true); in GetExceptionClass() 39 LOG(ERROR, CLASS_LINKER) << "Class " << classDescriptor << " not found"; in GetExceptionClass() 44 LOG(ERROR, CLASS_LINKER) << "Class " << classDescriptor << " cannot be initialized"; in GetExceptionClass() 64 EtsObject *SetupEtsException(EtsCoroutine *coroutine, const char *classDescriptor, const char *msg) in SetupEtsException() argument 73 EtsClass *cls = GetExceptionClass(coroutine, classDescriptor, &isError); in SetupEtsException() 98 LOG(FATAL, RUNTIME) << "No method " << panda_file_items::CTOR << " in class " << classDescriptor; in SetupEtsException() local 120 void ThrowEtsException(EtsCoroutine *coroutine, const char *classDescriptor, const char *msg) in ThrowEtsException() argument 131 EtsObject *exc = SetupEtsException(coroutine, classDescriptor, ms in ThrowEtsException() [all...] |
H A D | ets_vm_api.cpp | 142 bool BindNative(const char *classDescriptor, const char *methodName, void *impl) in BindNative() argument 147 auto *klass = ext->GetClass(ark::utf::CStringAsMutf8(classDescriptor)); in BindNative() 151 LOG(DEBUG, RUNTIME) << "BindNative: Cannot find class '" << classDescriptor << "'"; in BindNative() 159 LOG(DEBUG, RUNTIME) << "BindNative: Cannot find method '" << classDescriptor << "." << methodName << "'`"; in BindNative()
|
H A D | ets_language_context.cpp | 69 const char *classDescriptor = utf::Mutf8AsCString(GetStackOverflowErrorClassDescriptor()); in ThrowStackOverflowException() local 70 EtsClass *cls = classLinker->GetClass(classDescriptor, true); in ThrowStackOverflowException()
|
H A D | ets_vm_api.h | 42 PANDA_PUBLIC_API bool BindNative(const char *classDescriptor, const char *methodName, void *impl);
|
H A D | ets_class_linker.cpp | 56 const uint8_t *classDescriptor = utf::CStringAsMutf8(name); in GetClass() local 57 Class *cls = ext_->GetClass(classDescriptor, needCopyDescriptor, classLinkerContext, errorHandler); in GetClass()
|
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/interop_js/ets_proxy/ |
H A D | ets_proxy.cpp | 34 std::string classDescriptor = classDescriptorBuilder.str(); in GetETSFunction() local 39 classDescriptor = packageName; in GetETSFunction() 42 napi_value jsClass = GetETSClass(env, classDescriptor); in GetETSFunction() 48 InteropCtx::ThrowJSError(env, "GetETSFunction: class " + std::string(classDescriptor) + " doesn't contain " + in GetETSFunction() 57 napi_value GetETSClass(napi_env env, std::string_view classDescriptor) in GetETSClass() argument 63 EtsClass *etsKlass = coro->GetPandaVM()->GetClassLinker()->GetClass(classDescriptor.data()); in GetETSClass() 65 InteropCtx::ThrowJSError(env, "GetETSClass: unresolved klass " + std::string(classDescriptor)); in GetETSClass()
|
H A D | ets_proxy.h | 27 PANDA_PUBLIC_API napi_value GetETSClass(napi_env env, std::string_view classDescriptor);
|
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/interop_js/call/ |
H A D | call_ets.cpp | 202 uint8_t const *classDescriptor; in ResolveEntryPoint() local 209 classDescriptor = utf::CStringAsMutf8(complexClassName.data()); in ResolveEntryPoint() 212 classDescriptor = utf::CStringAsMutf8("LETSGLOBAL;"); in ResolveEntryPoint() 216 Class *cls = ctx->GetClassLinker()->GetClass(classDescriptor, true, ctx->LinkerCtx()); in ResolveEntryPoint()
|
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/intrinsics/helpers/ |
H A D | ets_to_string_cache.cpp | 176 std::string_view classDescriptor; in GetClass() local 178 classDescriptor = panda_file_items::class_descriptors::DOUBLE_TO_STRING_CACHE_ELEMENT; in GetClass() 180 classDescriptor = panda_file_items::class_descriptors::FLOAT_TO_STRING_CACHE_ELEMENT; in GetClass() 182 classDescriptor = panda_file_items::class_descriptors::LONG_TO_STRING_CACHE_ELEMENT; in GetClass() 186 return classLinker->GetClass(classDescriptor.data(), false, ext->GetBootContext()); in GetClass()
|
/arkcompiler/ets_frontend/ets2panda/declgen_ets2ts/ |
H A D | declgenEts2Ts.cpp | 523 std::string classDescriptor = "L" + classDef->InternalName().Mutf8() + ";"; in GenClassDeclaration() local 524 std::replace(classDescriptor.begin(), classDescriptor.end(), '.', '/'); in GenClassDeclaration() 525 state_.currentClassDescriptor = classDescriptor; in GenClassDeclaration()
|
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/interop_js/ |
H A D | ets_vm_plugin.cpp | 103 std::string classDescriptor = GetString(env, jsClassDescriptor); in GetEtsClass() local 104 return ets_proxy::GetETSClass(env, classDescriptor); in GetEtsClass()
|
/arkcompiler/runtime_core/static_core/runtime/ |
H A D | compiler.cpp | 163 const uint8_t *classDescriptor = utf::CStringAsMutf8(name); in GetNumberClass() local 165 auto *classPtr = classLinker->GetClass(classDescriptor, false, classLinker->GetBootContext(), nullptr); in GetNumberClass()
|
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/napi/ |
H A D | ets_napi_native_interface.cpp | 460 PandaString classDescriptor = ToClassDescriptor(name); in FindClass() local 462 EtsClass *klass = classLinker->GetClass(classDescriptor.c_str(), true, GetClassLinkerContext(&s)); in FindClass()
|