mirror of
https://gitee.com/openharmony/arkcompiler_ets_runtime
synced 2024-11-23 18:20:04 +00:00
Print Ark_Module Name
issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I9LJG6 Signed-off-by: jiachong <jiachong6@huawei.com> Change-Id: I4b35ccbd28b2be408141f71c62644bb9d73309ef
This commit is contained in:
parent
eaa28f7265
commit
179cdc4bd0
@ -72,15 +72,6 @@
|
||||
"header_base": "//arkcompiler/ets_runtime/ecmascript/napi/include"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "//arkcompiler/ets_runtime:libark_jsruntime_test"
|
||||
},
|
||||
{
|
||||
"name": "//arkcompiler/ets_runtime:ark_jsruntime_public_config"
|
||||
},
|
||||
{
|
||||
"name": "//arkcompiler/ets_runtime:ark_js_host_linux_tools_packages"
|
||||
},
|
||||
{
|
||||
"name": "//arkcompiler/ets_runtime:libark_jsruntime_static",
|
||||
"header": {
|
||||
|
@ -366,6 +366,10 @@ Expected<JSTaggedValue, bool> EcmaContext::InvokeEcmaEntrypoint(const JSPandaFil
|
||||
std::string_view entryPoint, bool executeFromJob)
|
||||
{
|
||||
[[maybe_unused]] EcmaHandleScope scope(thread_);
|
||||
auto &options = const_cast<EcmaVM *>(thread_->GetEcmaVM())->GetJSOptions();
|
||||
if (options.EnableModuleLog()) {
|
||||
LOG_FULL(INFO) << "current executing file's name " << entryPoint.data();
|
||||
}
|
||||
JSHandle<Program> program = JSPandaFileManager::GetInstance()->GenerateProgram(vm_, jsPandaFile, entryPoint);
|
||||
if (program.IsEmpty()) {
|
||||
LOG_ECMA(ERROR) << "program is empty, invoke entrypoint failed";
|
||||
|
@ -53,7 +53,8 @@ enum ArkProperties {
|
||||
ENABLE_INIT_OLD_SOCKET_SESSION = 1 << 21,
|
||||
// Use DISABLE to adapt to the exsiting ArkProperties in testing scripts.
|
||||
DISABLE_SHARED_CONCURRENT_MARK = 1 << 22,
|
||||
ENABLE_NATIVE_MODULE_ERROR = 1 << 23
|
||||
ENABLE_NATIVE_MODULE_ERROR = 1 << 23,
|
||||
ENABLE_MODULE_LOG = 1 << 25
|
||||
};
|
||||
|
||||
// asm interpreter control parsed option
|
||||
@ -572,6 +573,11 @@ public:
|
||||
return (static_cast<uint32_t>(arkProperties_) & ArkProperties::ENABLE_INIT_OLD_SOCKET_SESSION) != 0;
|
||||
}
|
||||
|
||||
bool EnableModuleLog() const
|
||||
{
|
||||
return (static_cast<uint32_t>(arkProperties_) & ArkProperties::ENABLE_MODULE_LOG) != 0;
|
||||
}
|
||||
|
||||
void DisableReportModuleResolvingFailure()
|
||||
{
|
||||
reportModuleResolvingFailure_ = false;
|
||||
|
Loading…
Reference in New Issue
Block a user