mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Remove obsolete errorTag()
This commit is contained in:
parent
42b61171d9
commit
398099f50e
@ -40,7 +40,7 @@ void Assembly::append(Assembly const& _a)
|
|||||||
auto newDeposit = m_deposit + _a.deposit();
|
auto newDeposit = m_deposit + _a.deposit();
|
||||||
for (AssemblyItem i: _a.m_items)
|
for (AssemblyItem i: _a.m_items)
|
||||||
{
|
{
|
||||||
if (i.type() == Tag || (i.type() == PushTag && i != errorTag()))
|
if (i.type() == Tag || i.type() == PushTag)
|
||||||
i.setData(i.data() + m_usedTags);
|
i.setData(i.data() + m_usedTags);
|
||||||
else if (i.type() == PushSub || i.type() == PushSubSize)
|
else if (i.type() == PushSub || i.type() == PushSubSize)
|
||||||
i.setData(i.data() + m_subs.size());
|
i.setData(i.data() + m_subs.size());
|
||||||
|
@ -69,7 +69,6 @@ public:
|
|||||||
AssemblyItem appendJumpI() { auto ret = append(newPushTag()); append(solidity::Instruction::JUMPI); return ret; }
|
AssemblyItem appendJumpI() { auto ret = append(newPushTag()); append(solidity::Instruction::JUMPI); return ret; }
|
||||||
AssemblyItem appendJump(AssemblyItem const& _tag) { auto ret = append(_tag.pushTag()); append(solidity::Instruction::JUMP); return ret; }
|
AssemblyItem appendJump(AssemblyItem const& _tag) { auto ret = append(_tag.pushTag()); append(solidity::Instruction::JUMP); return ret; }
|
||||||
AssemblyItem appendJumpI(AssemblyItem const& _tag) { auto ret = append(_tag.pushTag()); append(solidity::Instruction::JUMPI); return ret; }
|
AssemblyItem appendJumpI(AssemblyItem const& _tag) { auto ret = append(_tag.pushTag()); append(solidity::Instruction::JUMPI); return ret; }
|
||||||
AssemblyItem errorTag() { return AssemblyItem(PushTag, 0); }
|
|
||||||
|
|
||||||
/// Appends @a _data literally to the very end of the bytecode.
|
/// Appends @a _data literally to the very end of the bytecode.
|
||||||
void appendAuxiliaryDataToEnd(bytes const& _data) { m_auxiliaryData += _data; }
|
void appendAuxiliaryDataToEnd(bytes const& _data) { m_auxiliaryData += _data; }
|
||||||
|
@ -141,8 +141,6 @@ public:
|
|||||||
CompilerContext& appendInvalid();
|
CompilerContext& appendInvalid();
|
||||||
/// Appends a conditional INVALID instruction
|
/// Appends a conditional INVALID instruction
|
||||||
CompilerContext& appendConditionalInvalid();
|
CompilerContext& appendConditionalInvalid();
|
||||||
/// Returns an "ErrorTag"
|
|
||||||
eth::AssemblyItem errorTag() { return m_asm->errorTag(); }
|
|
||||||
/// Appends a JUMP to a specific tag
|
/// Appends a JUMP to a specific tag
|
||||||
CompilerContext& appendJumpTo(eth::AssemblyItem const& _tag) { m_asm->appendJump(_tag); return *this; }
|
CompilerContext& appendJumpTo(eth::AssemblyItem const& _tag) { m_asm->appendJump(_tag); return *this; }
|
||||||
/// Appends pushing of a new tag and @returns the new tag.
|
/// Appends pushing of a new tag and @returns the new tag.
|
||||||
|
Loading…
Reference in New Issue
Block a user