diff options
author | chriseth <chris@ethereum.org> | 2018-11-26 23:08:04 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-26 23:08:04 +0800 |
commit | 764d618c442c969e72ab73ffda8475060fca1299 (patch) | |
tree | 3c719ccd0a4be7487c8d3f629f6c17b403b84be2 /libsolidity/codegen/CompilerContext.h | |
parent | bd40c0ac028878a6b9a915bd2498fa5370edc347 (diff) | |
parent | 2d0326aad2a2233f58dd4c2c1cb4ef7bbbb22d87 (diff) | |
download | dexon-solidity-764d618c442c969e72ab73ffda8475060fca1299.tar dexon-solidity-764d618c442c969e72ab73ffda8475060fca1299.tar.gz dexon-solidity-764d618c442c969e72ab73ffda8475060fca1299.tar.bz2 dexon-solidity-764d618c442c969e72ab73ffda8475060fca1299.tar.lz dexon-solidity-764d618c442c969e72ab73ffda8475060fca1299.tar.xz dexon-solidity-764d618c442c969e72ab73ffda8475060fca1299.tar.zst dexon-solidity-764d618c442c969e72ab73ffda8475060fca1299.zip |
Merge pull request #5404 from ethereum/jumpFixes
Annotate jump from calldata decode to function as "jump in".
Diffstat (limited to 'libsolidity/codegen/CompilerContext.h')
-rw-r--r-- | libsolidity/codegen/CompilerContext.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libsolidity/codegen/CompilerContext.h b/libsolidity/codegen/CompilerContext.h index 63365175..02369813 100644 --- a/libsolidity/codegen/CompilerContext.h +++ b/libsolidity/codegen/CompilerContext.h @@ -167,7 +167,10 @@ public: /// the data. CompilerContext& appendConditionalRevert(bool _forwardReturnData = false); /// 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, + eth::AssemblyItem::JumpType _jumpType = eth::AssemblyItem::JumpType::Ordinary + ) { *m_asm << _tag.pushTag(); return appendJump(_jumpType); } /// Appends pushing of a new tag and @returns the new tag. eth::AssemblyItem pushNewTag() { return m_asm->append(m_asm->newPushTag()).tag(); } /// @returns a new tag without pushing any opcodes or data |