mirror of
https://github.com/Samsung/escargot.git
synced 2026-06-22 10:01:50 +00:00
Add AssignmentExpressionNode interface
Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
This commit is contained in:
parent
bf3f885519
commit
53289897e8
20 changed files with 197 additions and 542 deletions
|
|
@ -557,7 +557,7 @@ void CodeCacheWriter::storeByteCodeStream(ByteCodeBlock* block)
|
|||
}
|
||||
case BlockOperationOpcode: {
|
||||
BlockOperation* bc = static_cast<BlockOperation*>(currentCode);
|
||||
InterpretedCodeBlock::BlockInfo* info = bc->m_blockInfo;
|
||||
InterpretedCodeBlock::BlockInfo* info = reinterpret_cast<InterpretedCodeBlock::BlockInfo*>(bc->m_blockInfo);
|
||||
size_t infoIndex = VectorUtil::findInVector(block->codeBlock()->m_blockInfos, info);
|
||||
ASSERT(infoIndex != VectorUtil::invalidIndex);
|
||||
relocInfoVector.push_back(ByteCodeRelocInfo(ByteCodeRelocType::RELOC_BLOCKINFO, (size_t)currentCode - codeBase, infoIndex));
|
||||
|
|
@ -565,7 +565,7 @@ void CodeCacheWriter::storeByteCodeStream(ByteCodeBlock* block)
|
|||
}
|
||||
case ReplaceBlockLexicalEnvironmentOperationOpcode: {
|
||||
ReplaceBlockLexicalEnvironmentOperation* bc = static_cast<ReplaceBlockLexicalEnvironmentOperation*>(currentCode);
|
||||
InterpretedCodeBlock::BlockInfo* info = bc->m_blockInfo;
|
||||
InterpretedCodeBlock::BlockInfo* info = reinterpret_cast<InterpretedCodeBlock::BlockInfo*>(bc->m_blockInfo);
|
||||
size_t infoIndex = VectorUtil::findInVector(block->codeBlock()->m_blockInfos, info);
|
||||
ASSERT(infoIndex != VectorUtil::invalidIndex);
|
||||
relocInfoVector.push_back(ByteCodeRelocInfo(ByteCodeRelocType::RELOC_BLOCKINFO, (size_t)currentCode - codeBase, infoIndex));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue