diff options
author | chriseth <chris@ethereum.org> | 2017-05-05 20:25:43 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-05 20:25:43 +0800 |
commit | 0582fcb93b2407379b5e4e4ce55c3f418e7ff433 (patch) | |
tree | 2770da9c5727476ff8b1ad8559cb81335f25b400 /libsolidity/codegen/CompilerUtils.cpp | |
parent | 2d89cfaa91bcc36db415b5c07f1bd821398da96e (diff) | |
parent | 28f10f4783bd4365654191740069a7112be03d92 (diff) | |
download | dexon-solidity-0582fcb93b2407379b5e4e4ce55c3f418e7ff433.tar dexon-solidity-0582fcb93b2407379b5e4e4ce55c3f418e7ff433.tar.gz dexon-solidity-0582fcb93b2407379b5e4e4ce55c3f418e7ff433.tar.bz2 dexon-solidity-0582fcb93b2407379b5e4e4ce55c3f418e7ff433.tar.lz dexon-solidity-0582fcb93b2407379b5e4e4ce55c3f418e7ff433.tar.xz dexon-solidity-0582fcb93b2407379b5e4e4ce55c3f418e7ff433.tar.zst dexon-solidity-0582fcb93b2407379b5e4e4ce55c3f418e7ff433.zip |
Merge pull request #2194 from ethereum/removeerrorlabel
Remove error label / invalid jump label.
Diffstat (limited to 'libsolidity/codegen/CompilerUtils.cpp')
-rw-r--r-- | libsolidity/codegen/CompilerUtils.cpp | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/libsolidity/codegen/CompilerUtils.cpp b/libsolidity/codegen/CompilerUtils.cpp index dc0b340c..4ae9a09a 100644 --- a/libsolidity/codegen/CompilerUtils.cpp +++ b/libsolidity/codegen/CompilerUtils.cpp @@ -299,25 +299,6 @@ void CompilerUtils::zeroInitialiseMemoryArray(ArrayType const& _type) m_context << Instruction::SWAP1 << Instruction::POP; } -void CompilerUtils::memoryCopyPrecompile() -{ - // Stack here: size target source - - m_context.appendInlineAssembly(R"( - { - let words := div(add(len, 31), 32) - let cost := add(15, mul(3, words)) - jumpi(invalidJumpLabel, iszero(call(cost, $identityContractAddress, 0, src, len, dst, len))) - } - )", - { "len", "dst", "src" }, - map<string, string> { - { "$identityContractAddress", toString(identityContractAddress) } - } - ); - m_context << Instruction::POP << Instruction::POP << Instruction::POP; -} - void CompilerUtils::memoryCopy32() { // Stack here: size target source |