aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/codegen/ArrayUtils.h
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2018-04-05 16:50:25 +0800
committerGitHub <noreply@github.com>2018-04-05 16:50:25 +0800
commitc6adad9368dce6b02d924b0fd3afb4bba4b23c06 (patch)
tree20b818604844c1f3a8d5a72929ca06630b7c77eb /libsolidity/codegen/ArrayUtils.h
parent7cf09941bb8093b915b823ae62506bf6e5036d78 (diff)
parent65f18a18de410b46844892e69b0578a61669aac1 (diff)
downloaddexon-solidity-c6adad9368dce6b02d924b0fd3afb4bba4b23c06.tar
dexon-solidity-c6adad9368dce6b02d924b0fd3afb4bba4b23c06.tar.gz
dexon-solidity-c6adad9368dce6b02d924b0fd3afb4bba4b23c06.tar.bz2
dexon-solidity-c6adad9368dce6b02d924b0fd3afb4bba4b23c06.tar.lz
dexon-solidity-c6adad9368dce6b02d924b0fd3afb4bba4b23c06.tar.xz
dexon-solidity-c6adad9368dce6b02d924b0fd3afb4bba4b23c06.tar.zst
dexon-solidity-c6adad9368dce6b02d924b0fd3afb4bba4b23c06.zip
Merge pull request #3690 from ethereum/incrementArraySize
More specific push implementation.
Diffstat (limited to 'libsolidity/codegen/ArrayUtils.h')
-rw-r--r--libsolidity/codegen/ArrayUtils.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libsolidity/codegen/ArrayUtils.h b/libsolidity/codegen/ArrayUtils.h
index f3ddc4ee..99786397 100644
--- a/libsolidity/codegen/ArrayUtils.h
+++ b/libsolidity/codegen/ArrayUtils.h
@@ -67,6 +67,12 @@ public:
/// Stack pre: reference (excludes byte offset) new_length
/// Stack post:
void resizeDynamicArray(ArrayType const& _type) const;
+ /// Increments the size of a dynamic array by one.
+ /// Does not touch the new data element. In case of a byte array, this might move the
+ /// data.
+ /// Stack pre: reference (excludes byte offset)
+ /// Stack post: new_length
+ void incrementDynamicArraySize(ArrayType const& _type) const;
/// Appends a loop that clears a sequence of storage slots of the given type (excluding end).
/// Stack pre: end_ref start_ref
/// Stack post: end_ref