diff options
author | Dimitry <dimitry@ethdev.com> | 2016-04-04 19:18:24 +0800 |
---|---|---|
committer | Dimitry <dimitry@ethdev.com> | 2016-04-04 19:18:24 +0800 |
commit | 98165100658bc4f29e6194f0c5ede6e5b9d516f5 (patch) | |
tree | 31e3b6413c2928e527ecc03307f08818984dcd33 /libevmasm/Assembly.h | |
parent | 858c41260d4cec26ba38ea3bd2ef71dcede63f7c (diff) | |
download | dexon-solidity-98165100658bc4f29e6194f0c5ede6e5b9d516f5.tar.gz dexon-solidity-98165100658bc4f29e6194f0c5ede6e5b9d516f5.tar.zst dexon-solidity-98165100658bc4f29e6194f0c5ede6e5b9d516f5.zip |
enable solidity test
Diffstat (limited to 'libevmasm/Assembly.h')
-rw-r--r-- | libevmasm/Assembly.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libevmasm/Assembly.h b/libevmasm/Assembly.h index e7ca520b..d48fa99c 100644 --- a/libevmasm/Assembly.h +++ b/libevmasm/Assembly.h @@ -69,10 +69,10 @@ public: void appendProgramSize() { append(AssemblyItem(PushProgramSize)); } void appendLibraryAddress(std::string const& _identifier) { append(newPushLibraryAddress(_identifier)); } - AssemblyItem appendJump() { auto ret = append(newPushTag()); append(Instruction::JUMP); return ret; } - AssemblyItem appendJumpI() { auto ret = append(newPushTag()); append(Instruction::JUMPI); return ret; } - AssemblyItem appendJump(AssemblyItem const& _tag) { auto ret = append(_tag.pushTag()); append(Instruction::JUMP); return ret; } - AssemblyItem appendJumpI(AssemblyItem const& _tag) { auto ret = append(_tag.pushTag()); append(Instruction::JUMPI); return ret; } + AssemblyItem appendJump() { auto ret = append(newPushTag()); append(solidity::Instruction::JUMP); 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 appendJumpI(AssemblyItem const& _tag) { auto ret = append(_tag.pushTag()); append(solidity::Instruction::JUMPI); return ret; } AssemblyItem errorTag() { return AssemblyItem(PushTag, 0); } template <class T> Assembly& operator<<(T const& _d) { append(_d); return *this; } @@ -86,7 +86,7 @@ public: void ignored() { m_baseDeposit = m_deposit; } void endIgnored() { m_deposit = m_baseDeposit; m_baseDeposit = 0; } - void popTo(int _deposit) { while (m_deposit > _deposit) append(Instruction::POP); } + void popTo(int _deposit) { while (m_deposit > _deposit) append(solidity::Instruction::POP); } void injectStart(AssemblyItem const& _i); std::string out() const; |