diff options
author | Liana Husikyan <liana@ethdev.com> | 2015-03-10 02:22:24 +0800 |
---|---|---|
committer | Liana Husikyan <liana@ethdev.com> | 2015-03-10 19:02:48 +0800 |
commit | 74a01826ee9587ef9413e2ec808fcd53564f0b9d (patch) | |
tree | ad0d4cb8d7996b0906d1d3230ab19f697a46ddaa /CompilerContext.cpp | |
parent | 9c82cbeddf1b03cc99660a867de8720d1d174b9c (diff) | |
download | dexon-solidity-74a01826ee9587ef9413e2ec808fcd53564f0b9d.tar dexon-solidity-74a01826ee9587ef9413e2ec808fcd53564f0b9d.tar.gz dexon-solidity-74a01826ee9587ef9413e2ec808fcd53564f0b9d.tar.bz2 dexon-solidity-74a01826ee9587ef9413e2ec808fcd53564f0b9d.tar.lz dexon-solidity-74a01826ee9587ef9413e2ec808fcd53564f0b9d.tar.xz dexon-solidity-74a01826ee9587ef9413e2ec808fcd53564f0b9d.tar.zst dexon-solidity-74a01826ee9587ef9413e2ec808fcd53564f0b9d.zip |
added information about jump type for jump instructions
Conflicts:
libevmcore/Assembly.cpp
libsolidity/Compiler.cpp
Diffstat (limited to 'CompilerContext.cpp')
-rw-r--r-- | CompilerContext.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/CompilerContext.cpp b/CompilerContext.cpp index 1dea62e9..f2bb1de2 100644 --- a/CompilerContext.cpp +++ b/CompilerContext.cpp @@ -177,6 +177,13 @@ u256 CompilerContext::getStorageLocationOfVariable(const Declaration& _declarati return it->second; } +CompilerContext& CompilerContext::appendJump(eth::AssemblyItem::JumpType _jumpType) +{ + eth::AssemblyItem item(eth::Instruction::JUMP); + item.setJumpType(_jumpType); + return *this << item; +} + void CompilerContext::resetVisitedNodes(ASTNode const* _node) { stack<ASTNode const*> newStack; |