aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/codegen/CompilerUtils.h
diff options
context:
space:
mode:
authorYoichi Hirai <i@yoichihirai.com>2016-12-13 05:39:47 +0800
committerGitHub <noreply@github.com>2016-12-13 05:39:47 +0800
commit1c3605362d6018f5ab72cc84c7511fb49c15d126 (patch)
tree0dd967a78fc37b9efc49fb7f71578a0fb52432f0 /libsolidity/codegen/CompilerUtils.h
parentc111d6e27e7a951d49e587d0984fc8c24898c18f (diff)
parent81d7e0233aa24a2d38103b2bf746cef5eb12a893 (diff)
downloaddexon-solidity-1c3605362d6018f5ab72cc84c7511fb49c15d126.tar.gz
dexon-solidity-1c3605362d6018f5ab72cc84c7511fb49c15d126.tar.zst
dexon-solidity-1c3605362d6018f5ab72cc84c7511fb49c15d126.zip
Merge pull request #1468 from ethereum/memcpy-assembly
Implement memcpy without the identity precompile
Diffstat (limited to 'libsolidity/codegen/CompilerUtils.h')
-rw-r--r--libsolidity/codegen/CompilerUtils.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/libsolidity/codegen/CompilerUtils.h b/libsolidity/codegen/CompilerUtils.h
index 0a5d8e1c..ad53efea 100644
--- a/libsolidity/codegen/CompilerUtils.h
+++ b/libsolidity/codegen/CompilerUtils.h
@@ -112,6 +112,14 @@ public:
/// Uses a CALL to the identity contract to perform a memory-to-memory copy.
/// Stack pre: <size> <target> <source>
/// Stack post:
+ void memoryCopyPrecompile();
+ /// Copies full 32 byte words in memory (regions cannot overlap), i.e. may copy more than length.
+ /// Stack pre: <size> <target> <source>
+ /// Stack post:
+ void memoryCopy32();
+ /// Copies data in memory (regions cannot overlap).
+ /// Stack pre: <size> <target> <source>
+ /// Stack post:
void memoryCopy();
/// Converts the combined and left-aligned (right-aligned if @a _rightAligned is true)