mirror of
https://gitee.com/openharmony/arkcompiler_toolchain
synced 2025-02-17 07:38:22 +00:00
Fix release application can not support tuning
Issue:#I8MYXJ Signed-off-by: yang-19970325 <yangyang585@huawei.com> Change-Id: I2caf7685b8726c28bb526d7507490897870c75e2
This commit is contained in:
parent
bd7f43e2ac
commit
a784a802fa
@ -78,6 +78,11 @@ bool DebuggerImpl::NotifyScriptParsed(ScriptId scriptId, const std::string &file
|
||||
}
|
||||
#endif
|
||||
|
||||
// The release application does not require scriptParsed
|
||||
if (!vm_->GetJsDebuggerManager()->IsDebugApp()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
const JSPandaFile *jsPandaFile = JSPandaFileManager::GetInstance()->FindJSPandaFile(fileName.c_str()).get();
|
||||
if (jsPandaFile == nullptr) {
|
||||
LOG_DEBUGGER(ERROR) << "NotifyScriptParsed: unknown file: " << fileName;
|
||||
|
@ -153,15 +153,13 @@ Dispatcher::Dispatcher(const EcmaVM *vm, ProtocolChannel *channel)
|
||||
std::make_unique<TracingImpl::DispatcherImpl>(channel, std::move(tracing));
|
||||
#endif
|
||||
|
||||
// debugger
|
||||
auto runtime = std::make_unique<RuntimeImpl>(vm, channel);
|
||||
// only debugApp need to initialize debugger
|
||||
if (vm->GetJsDebuggerManager()->IsDebugApp()) {
|
||||
auto debugger = std::make_unique<DebuggerImpl>(vm, channel, runtime.get());
|
||||
dispatchers_["Debugger"] =
|
||||
std::make_unique<DebuggerImpl::DispatcherImpl>(channel, std::move(debugger));
|
||||
}
|
||||
auto debugger = std::make_unique<DebuggerImpl>(vm, channel, runtime.get());
|
||||
dispatchers_["Runtime"] =
|
||||
std::make_unique<RuntimeImpl::DispatcherImpl>(channel, std::move(runtime));
|
||||
dispatchers_["Debugger"] =
|
||||
std::make_unique<DebuggerImpl::DispatcherImpl>(channel, std::move(debugger));
|
||||
|
||||
auto dom = std::make_unique<DomImpl>();
|
||||
dispatchers_["DOM"] =
|
||||
|
Loading…
x
Reference in New Issue
Block a user