Implement basic of using variable

Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
This commit is contained in:
Seonghyun Kim 2025-08-18 16:57:43 +09:00 committed by Patrick Kim
commit 954b5bc77f
25 changed files with 583 additions and 45 deletions

View file

@ -190,6 +190,7 @@ void CodeCacheWriter::storeInterpretedCodeBlock(InterpretedCodeBlock* codeBlock)
const InterpretedCodeBlock::BlockIdentifierInfo& info = infoVector[j];
m_buffer.put(info.m_needToAllocateOnStack);
m_buffer.put(info.m_isMutable);
m_buffer.put(info.m_isUsing);
m_buffer.put(info.m_indexForIndexedStorage);
m_buffer.put(m_stringTable->add(info.m_name));
}
@ -757,6 +758,7 @@ InterpretedCodeBlock* CodeCacheReader::loadInterpretedCodeBlock(Context* context
InterpretedCodeBlock::BlockIdentifierInfo idInfo;
idInfo.m_needToAllocateOnStack = m_buffer.get<bool>();
idInfo.m_isMutable = m_buffer.get<bool>();
idInfo.m_isUsing = m_buffer.get<bool>();
idInfo.m_indexForIndexedStorage = m_buffer.get<size_t>();
idInfo.m_name = m_stringTable->get(m_buffer.get<size_t>());
info->identifiers()[j] = idInfo;