diff --git a/ecmascript/compiler/codegen/maple/maple_util/include/mpl_logging.h b/ecmascript/compiler/codegen/maple/maple_util/include/mpl_logging.h index 4de056cfd4fb257d4ce95f22f3293b439c378674..c60ebc04ef1e791b3e2f20fcc8647048ae1f54a2 100644 --- a/ecmascript/compiler/codegen/maple/maple_util/include/mpl_logging.h +++ b/ecmascript/compiler/codegen/maple/maple_util/include/mpl_logging.h @@ -184,16 +184,6 @@ private: #define DBG(tag, fmt, ...) #endif // IS_RELEASE_VERSION -// #ifdef LOG -// #undef LOG -// #endif -// #define LOG(tag, fmt, ...) \ -// do { \ -// if (PRINT_LEVEL_DEV <= kLlLog) { \ -// logInfo.EmitLogForDev(tag, kLlLog, __FILE__, __FUNCTION__, __LINE__, fmt, ##__VA_ARGS__); \ -// } \ -// } while (0) - #ifdef CHECK #undef CHECK #endif diff --git a/ecmascript/jit/jit_thread.cpp b/ecmascript/jit/jit_thread.cpp index 5db604a2c80a8f83280d8cb9921293458b223745..c8da88f7c6976f560e6911b46472760e05daa0ba 100644 --- a/ecmascript/jit/jit_thread.cpp +++ b/ecmascript/jit/jit_thread.cpp @@ -53,13 +53,12 @@ JitVM *JitVM::Create() JitVM::~JitVM() { + jitThread_ = nullptr; } void JitVM::Destroy(EcmaVM *compilerVm) { JitVM *jitVM = static_cast(compilerVm); - delete jitVM->jitThread_; - jitVM->jitThread_ = nullptr; delete jitVM; }