!9869 Optimize logging information

Merge pull request !9869 from hlm2001/log_1021
This commit is contained in:
openharmony_ci 2024-10-22 05:57:43 +00:00 committed by Gitee
commit 4ba426e641
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -263,7 +263,8 @@ std::pair<JSHandle<ConstantPool>, JSHandle<ConstantPool>> PandaFileTranslator::P
type == ConstPoolType::CLASS_FUNCTION || type == ConstPoolType::METHOD ||
type == ConstPoolType::ASYNC_GENERATOR_FUNCTION);
MethodLiteral *methodLiteral = jsPandaFile->FindMethodLiteral(it.first);
CHECK_INPUT_NULLPTR(methodLiteral, "ParseConstPool:methodLiteral is nullptr");
CHECK_INPUT_NULLPTR(methodLiteral,
"ParseConstPool:methodLiteral is nullptr, offset: " + std::to_string(it.first));
methodLiteral->SetFunctionKind(JSPandaFile::GetFunctionKind(type));
JSHandle<Method> method = factory->NewSMethod(methodLiteral);
@ -333,7 +334,8 @@ void PandaFileTranslator::ParseFuncAndLiteralConstPool(EcmaVM *vm, const JSPanda
type == ConstPoolType::CLASS_FUNCTION || type == ConstPoolType::METHOD ||
type == ConstPoolType::ASYNC_GENERATOR_FUNCTION);
MethodLiteral *methodLiteral = jsPandaFile->FindMethodLiteral(it.first);
CHECK_INPUT_NULLPTR(methodLiteral, "ParseFuncAndLiteralConstPool:methodLiteral is nullptr");
CHECK_INPUT_NULLPTR(methodLiteral, "ParseFuncAndLiteralConstPool:methodLiteral is nullptr, offset: "
+ std::to_string(it.first));
methodLiteral->SetFunctionKind(JSPandaFile::GetFunctionKind(type));
JSHandle<Method> method = factory->NewSMethod(methodLiteral);