diff --git a/bundle.json b/bundle.json index e91a102236..634d1592b5 100644 --- a/bundle.json +++ b/bundle.json @@ -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": { diff --git a/ecmascript/ecma_context.cpp b/ecmascript/ecma_context.cpp index eab1b631a8..5cb3f2f0cf 100644 --- a/ecmascript/ecma_context.cpp +++ b/ecmascript/ecma_context.cpp @@ -366,6 +366,10 @@ Expected EcmaContext::InvokeEcmaEntrypoint(const JSPandaFil std::string_view entryPoint, bool executeFromJob) { [[maybe_unused]] EcmaHandleScope scope(thread_); + auto &options = const_cast(thread_->GetEcmaVM())->GetJSOptions(); + if (options.EnableModuleLog()) { + LOG_FULL(INFO) << "current executing file's name " << entryPoint.data(); + } JSHandle program = JSPandaFileManager::GetInstance()->GenerateProgram(vm_, jsPandaFile, entryPoint); if (program.IsEmpty()) { LOG_ECMA(ERROR) << "program is empty, invoke entrypoint failed"; diff --git a/ecmascript/js_runtime_options.h b/ecmascript/js_runtime_options.h index 7df28e6976..6327d31e13 100644 --- a/ecmascript/js_runtime_options.h +++ b/ecmascript/js_runtime_options.h @@ -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(arkProperties_) & ArkProperties::ENABLE_INIT_OLD_SOCKET_SESSION) != 0; } + bool EnableModuleLog() const + { + return (static_cast(arkProperties_) & ArkProperties::ENABLE_MODULE_LOG) != 0; + } + void DisableReportModuleResolvingFailure() { reportModuleResolvingFailure_ = false;