From e975adfc384ce888cb81028caf37cf7da3fe91c5 Mon Sep 17 00:00:00 2001 From: Anna Antipina Date: Fri, 2 Jun 2023 17:26:09 +0300 Subject: [PATCH] Refactoring verifier call Signed-off-by: Anna Antipina --- runtime/interpreter/ecma-interpreter-inl.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/runtime/interpreter/ecma-interpreter-inl.h b/runtime/interpreter/ecma-interpreter-inl.h index 1329a5a44..3610678d1 100644 --- a/runtime/interpreter/ecma-interpreter-inl.h +++ b/runtime/interpreter/ecma-interpreter-inl.h @@ -414,7 +414,10 @@ public: UPDATE_CALL_PROFILE(this_func); JSHandle function_handle(js_thread, js_function); - method->DecrementHotnessCounter(0, nullptr, false, JSTaggedValue(function)); + method->DecrementHotnessCounter(0, nullptr, false, JSTaggedValue(function)); + if (UNLIKELY(js_thread->HasPendingException())) { + return; + } // Call stackless interpreter this->template CallInterpreterStackless, FORMAT, @@ -505,7 +508,10 @@ public: return; } } else { - method->DecrementHotnessCounter(0, nullptr, false, ctor); + method->DecrementHotnessCounter(0, nullptr, false, ctor); + if (UNLIKELY(thread->HasPendingException())) { + return; + } // Call stackless interpreter this->template CallInterpreterStackless, FORMAT, -- Gitee