From 65f18a18de410b46844892e69b0578a61669aac1 Mon Sep 17 00:00:00 2001 From: chriseth Date: Thu, 8 Mar 2018 15:38:14 +0100 Subject: More specific push implementation. --- libsolidity/codegen/ArrayUtils.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libsolidity/codegen/ArrayUtils.h') 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 -- cgit v1.2.3