diff options
author | Liana Husikyan <liana@ethdev.com> | 2015-05-15 18:23:13 +0800 |
---|---|---|
committer | Liana Husikyan <liana@ethdev.com> | 2015-06-01 19:06:12 +0800 |
commit | 2f50eb0028c7f7525ff35a60db7a18e09eee42e6 (patch) | |
tree | 67722e7b7f2960db1a7e8716a0eb0ab6fe13b88f /CompilerContext.h | |
parent | f7e3568c6202b940394097f147e0c4e6ffe7fe9c (diff) | |
download | dexon-solidity-2f50eb0028c7f7525ff35a60db7a18e09eee42e6.tar.gz dexon-solidity-2f50eb0028c7f7525ff35a60db7a18e09eee42e6.tar.zst dexon-solidity-2f50eb0028c7f7525ff35a60db7a18e09eee42e6.zip |
added error jump instead of STOP instraction in case of exception
Diffstat (limited to 'CompilerContext.h')
-rw-r--r-- | CompilerContext.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/CompilerContext.h b/CompilerContext.h index 7bc29de1..dbf3dcd4 100644 --- a/CompilerContext.h +++ b/CompilerContext.h @@ -98,6 +98,8 @@ public: eth::AssemblyItem appendJumpToNew() { return m_asm.appendJump().tag(); } /// Appends a JUMP to a tag already on the stack CompilerContext& appendJump(eth::AssemblyItem::JumpType _jumpType = eth::AssemblyItem::JumpType::Ordinary); + /// Appends a JUMP to an "ErrorTag" + eth::AssemblyItem errorTag() { return m_asm.errorTag(); } /// Appends a JUMP to a specific tag CompilerContext& appendJumpTo(eth::AssemblyItem const& _tag) { m_asm.appendJump(_tag); return *this; } /// Appends pushing of a new tag and @returns the new tag. |