diff options
author | Paweł Bylica <pawel.bylica@imapp.pl> | 2015-03-12 20:39:40 +0800 |
---|---|---|
committer | Paweł Bylica <pawel.bylica@imapp.pl> | 2015-03-12 20:39:40 +0800 |
commit | 8181792a6ad37fa1b7d5961ac67cdcfee494ad4f (patch) | |
tree | 6f6f560f08dd548ae5c939b5fbf3efa7b0c358a9 /CompilerContext.h | |
parent | 5ae0a975b373eb19aeb5eb7a17ccf46f3b63f56a (diff) | |
parent | 51258f300209a563cc5d1739504c1e87537ddff6 (diff) | |
download | dexon-solidity-8181792a6ad37fa1b7d5961ac67cdcfee494ad4f.tar dexon-solidity-8181792a6ad37fa1b7d5961ac67cdcfee494ad4f.tar.gz dexon-solidity-8181792a6ad37fa1b7d5961ac67cdcfee494ad4f.tar.bz2 dexon-solidity-8181792a6ad37fa1b7d5961ac67cdcfee494ad4f.tar.lz dexon-solidity-8181792a6ad37fa1b7d5961ac67cdcfee494ad4f.tar.xz dexon-solidity-8181792a6ad37fa1b7d5961ac67cdcfee494ad4f.tar.zst dexon-solidity-8181792a6ad37fa1b7d5961ac67cdcfee494ad4f.zip |
Merge remote-tracking branch 'upstream/develop' into evmjit
Diffstat (limited to 'CompilerContext.h')
-rw-r--r-- | CompilerContext.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/CompilerContext.h b/CompilerContext.h index 4d63d8ba..76923a77 100644 --- a/CompilerContext.h +++ b/CompilerContext.h @@ -91,7 +91,7 @@ public: /// Appends a JUMP to a new tag and @returns the tag eth::AssemblyItem appendJumpToNew() { return m_asm.appendJump().tag(); } /// Appends a JUMP to a tag already on the stack - CompilerContext& appendJump() { return *this << eth::Instruction::JUMP; } + CompilerContext& appendJump(eth::AssemblyItem::JumpType _jumpType = eth::AssemblyItem::JumpType::Ordinary); /// 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. @@ -120,7 +120,7 @@ public: eth::Assembly const& getAssembly() const { return m_asm; } /// @arg _sourceCodes is the map of input files to source code strings - void streamAssembly(std::ostream& _stream, StringMap const& _sourceCodes = StringMap()) const { m_asm.streamRLP(_stream, "", _sourceCodes); } + void streamAssembly(std::ostream& _stream, StringMap const& _sourceCodes = StringMap()) const { m_asm.stream(_stream, "", _sourceCodes); } bytes getAssembledBytecode(bool _optimize = false) { return m_asm.optimise(_optimize).assemble(); } |