!4482 Fix router exception while debugger

Merge pull request !4482 from 杨阳/fix_router
This commit is contained in:
openharmony_ci 2023-07-22 02:18:17 +00:00 committed by Gitee
commit a3f81b528a
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
4 changed files with 0 additions and 22 deletions

View File

@ -141,13 +141,6 @@ public:
}
hooks_->VmDeath();
}
void PendingJobEntry() override
{
if (hooks_ == nullptr) {
return;
}
hooks_->PendingJobEntry();
}
void NativeCalling(const void *nativeAddress) override
{
if (hooks_ == nullptr) {

View File

@ -70,11 +70,6 @@ public:
*/
virtual void LoadModule(std::string_view pandaFileName, std::string_view entryPoint) = 0;
/**
* \brief called before executing pending job
*/
virtual void PendingJobEntry() = 0;
/**
* \brief called by the ecmavm when virtual machine start initialization
*/

View File

@ -37,7 +37,6 @@ public:
virtual bool HandleDebuggerStmt(JSHandle<Method> method, uint32_t bcOffset) = 0;
virtual void VmStart() = 0;
virtual void VmDeath() = 0;
virtual void PendingJobEntry() = 0;
virtual void NativeCalling(const void *nativeAddress) = 0;
};
@ -88,13 +87,6 @@ public:
}
}
void PendingJobEntryEvent() const
{
if (UNLIKELY(listener_ != nullptr)) {
listener_->PendingJobEntry();
}
}
void VmStartEvent() const
{
if (UNLIKELY(listener_ != nullptr)) {

View File

@ -40,8 +40,6 @@ public:
{
[[maybe_unused]] EcmaHandleScope handleScope(thread);
EXECUTE_JOB_HITRACE(pendingJob);
tooling::JsDebuggerManager *jsDebuggerManager = thread->GetEcmaVM()->GetJsDebuggerManager();
jsDebuggerManager->GetNotificationManager()->PendingJobEntryEvent();
JSHandle<JSTaggedValue> job(thread, pendingJob->GetJob());
ASSERT(job->IsCallable());