From 823e726fc850513df32231cdb679fff5c0725051 Mon Sep 17 00:00:00 2001 From: shawn_hu_ls Date: Tue, 22 Feb 2022 10:45:49 +0800 Subject: [PATCH] Decouple SetExceptionToVReg Signed-off-by: shawn_hu_ls --- runtime/include/language_context.h | 2 +- runtime/language_context.cpp | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/runtime/include/language_context.h b/runtime/include/language_context.h index 9ae8c5afd1..89be4099df 100644 --- a/runtime/include/language_context.h +++ b/runtime/include/language_context.h @@ -127,7 +127,7 @@ public: virtual void SetExceptionToVReg( [[maybe_unused]] Frame::VRegister &vreg, // NOLINTNEXTLINE(google-runtime-references) - [[maybe_unused]] ObjectHeader *obj) const = 0; + [[maybe_unused]] ObjectHeader *obj) const; virtual uint64_t GetTypeTag(interpreter::TypeTag tag) const { diff --git a/runtime/language_context.cpp b/runtime/language_context.cpp index 3ddc880e45..49ee09c75c 100644 --- a/runtime/language_context.cpp +++ b/runtime/language_context.cpp @@ -80,4 +80,10 @@ PandaUniquePtr LanguageContextBase::CreatePtLangExt() const return nullptr; } +void LanguageContextBase::SetExceptionToVReg( + [[maybe_unused]] Frame::VRegister &vreg, // NOLINTNEXTLINE(google-runtime-references) + [[maybe_unused]] ObjectHeader *obj) const +{ +} + } // namespace panda -- Gitee