Compute ByteCodeLOC only !NDEBUG && ESCARGOT_DEBUGGER in ByteCodeBlock::pushCode

Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
This commit is contained in:
Seonghyun Kim 2026-04-30 13:00:42 +09:00 committed by MuHong Byun
commit 78e5e333b9

View file

@ -3308,7 +3308,7 @@ public:
context->m_locData->push_back(std::make_pair(start, idx));
}
#ifndef NDEBUG
#if !defined(NDEBUG) && defined(ESCARGOT_DEBUGGER)
const auto loc = computeNodeLOC(m_codeBlock->src(), m_codeBlock->functionStart(), idx);
ByteCodeLOC* bytecodeLoc = &reinterpret_cast<ByteCode*>(first)->m_loc;
bytecodeLoc->index = loc.index;