aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/codegen/CompilerUtils.h
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2015-11-26 22:28:28 +0800
committerchriseth <c@ethdev.com>2015-11-26 22:28:28 +0800
commitc498dcce22b2921ee57f280da9117e491c021e1b (patch)
tree1eb3bec6140d9b2e1ee57f62343dbc9c70d84c78 /libsolidity/codegen/CompilerUtils.h
parentcd94aa978a77ace1296f9978bfae6d8735b5c91d (diff)
parente06768e8b580d009b9a9905f70ae2d8814699115 (diff)
downloaddexon-solidity-c498dcce22b2921ee57f280da9117e491c021e1b.tar
dexon-solidity-c498dcce22b2921ee57f280da9117e491c021e1b.tar.gz
dexon-solidity-c498dcce22b2921ee57f280da9117e491c021e1b.tar.bz2
dexon-solidity-c498dcce22b2921ee57f280da9117e491c021e1b.tar.lz
dexon-solidity-c498dcce22b2921ee57f280da9117e491c021e1b.tar.xz
dexon-solidity-c498dcce22b2921ee57f280da9117e491c021e1b.tar.zst
dexon-solidity-c498dcce22b2921ee57f280da9117e491c021e1b.zip
Merge pull request #222 from chriseth/newArrays
Dynamically create memory arrays.
Diffstat (limited to 'libsolidity/codegen/CompilerUtils.h')
-rw-r--r--libsolidity/codegen/CompilerUtils.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/libsolidity/codegen/CompilerUtils.h b/libsolidity/codegen/CompilerUtils.h
index 6292e5c7..134afd78 100644
--- a/libsolidity/codegen/CompilerUtils.h
+++ b/libsolidity/codegen/CompilerUtils.h
@@ -103,6 +103,11 @@ public:
bool _encodeAsLibraryTypes = false
);
+ /// Zero-initialises (the data part of) an already allocated memory array.
+ /// Stack pre: <length> <memptr>
+ /// Stack post: <updated_memptr>
+ void zeroInitialiseMemoryArray(ArrayType const& _type);
+
/// Uses a CALL to the identity contract to perform a memory-to-memory copy.
/// Stack pre: <size> <target> <source>
/// Stack post: