diff options
author | chriseth <chris@ethereum.org> | 2018-03-08 22:38:14 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2018-04-04 22:50:45 +0800 |
commit | 65f18a18de410b46844892e69b0578a61669aac1 (patch) | |
tree | 98b6812736ed2c5f10d48d7de9e27e8807a501c2 /libsolidity/codegen/ArrayUtils.h | |
parent | efa0ccaf9e25a257e1ee6b36c0b77b1532131077 (diff) | |
download | dexon-solidity-65f18a18de410b46844892e69b0578a61669aac1.tar dexon-solidity-65f18a18de410b46844892e69b0578a61669aac1.tar.gz dexon-solidity-65f18a18de410b46844892e69b0578a61669aac1.tar.bz2 dexon-solidity-65f18a18de410b46844892e69b0578a61669aac1.tar.lz dexon-solidity-65f18a18de410b46844892e69b0578a61669aac1.tar.xz dexon-solidity-65f18a18de410b46844892e69b0578a61669aac1.tar.zst dexon-solidity-65f18a18de410b46844892e69b0578a61669aac1.zip |
More specific push implementation.
Diffstat (limited to 'libsolidity/codegen/ArrayUtils.h')
-rw-r--r-- | libsolidity/codegen/ArrayUtils.h | 6 |
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 |