mirror of
https://github.com/Samsung/escargot.git
synced 2026-06-22 10:01:50 +00:00
Implement basic of using variable
Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
This commit is contained in:
parent
b2ba17408c
commit
954b5bc77f
25 changed files with 583 additions and 45 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue