mirror of
https://github.com/Samsung/escargot.git
synced 2026-06-22 10:01:50 +00:00
Compute ByteCodeLOC only !NDEBUG && ESCARGOT_DEBUGGER in ByteCodeBlock::pushCode
Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
This commit is contained in:
parent
4275ec11d5
commit
80b9bc2e9b
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue