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

@ -759,9 +759,14 @@ void ScriptParser::dumpCodeBlockTree(InterpretedCodeBlock* topCodeBlock)
printf("Names : ");
for (size_t j = 0; j < cb->m_blockInfos[i]->identifiers().size(); j++) {
std::string kind = cb->m_blockInfos[i]->identifiers()[j].m_isMutable ? "Mutable" : "Inmmutable";
if (cb->m_blockInfos[i]->identifiers()[j].m_isUsing) {
kind += "+Using";
}
printf("%s(%s, %s, %d), ", cb->m_blockInfos[i]->identifiers()[j].m_name.string()->toUTF8StringData().data(),
cb->m_blockInfos[i]->identifiers()[j].m_needToAllocateOnStack ? "Stack" : "Heap",
cb->m_blockInfos[i]->identifiers()[j].m_isMutable ? "Mutable" : "Inmmutable",
kind.data(),
(int)cb->m_blockInfos[i]->identifiers()[j].m_indexForIndexedStorage);
}