Reenable static jumps

This commit is contained in:
Alex Beregszaszi 2022-12-06 20:17:50 +01:00
parent c51af38724
commit 8faf4d3879

View File

@ -213,11 +213,11 @@ public:
evmasm::AssemblyItem const& _tag,
evmasm::AssemblyItem::JumpType _jumpType = evmasm::AssemblyItem::JumpType::Ordinary
) {
*m_asm << _tag.pushTag();
return appendJump(_jumpType);
// evmasm::AssemblyItem item = m_asm->appendStaticJump(_tag);
// item.setJumpType(_jumpType);
// return *this << item;
// *m_asm << _tag.pushTag();
// return appendJump(_jumpType);
evmasm::AssemblyItem item = m_asm->appendStaticJump(_tag);
item.setJumpType(_jumpType);
return *this << item;
}
/// Appends pushing of a new tag and @returns the new tag.
evmasm::AssemblyItem pushNewTag() { return m_asm->append(m_asm->newPushTag()).tag(); }