aboutsummaryrefslogtreecommitdiffstats
path: root/CompilerContext.h
diff options
context:
space:
mode:
authorLiana Husikyan <liana@ethdev.com>2015-05-15 18:23:13 +0800
committerLiana Husikyan <liana@ethdev.com>2015-06-01 19:06:12 +0800
commit2f50eb0028c7f7525ff35a60db7a18e09eee42e6 (patch)
tree67722e7b7f2960db1a7e8716a0eb0ab6fe13b88f /CompilerContext.h
parentf7e3568c6202b940394097f147e0c4e6ffe7fe9c (diff)
downloaddexon-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.h2
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.