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
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue