aboutsummaryrefslogtreecommitdiffstats
path: root/ArrayUtils.h
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2015-03-17 00:52:19 +0800
committerchriseth <c@ethdev.com>2015-03-18 01:13:28 +0800
commit2cde4f34044b89bb8bced05cab308c0093bd192d (patch)
tree00c787836993fccec01d16a6ecf5ed072b8e6c2a /ArrayUtils.h
parent895c08342c4b236c2928a5af9fb23def218eca3d (diff)
downloaddexon-solidity-2cde4f34044b89bb8bced05cab308c0093bd192d.tar
dexon-solidity-2cde4f34044b89bb8bced05cab308c0093bd192d.tar.gz
dexon-solidity-2cde4f34044b89bb8bced05cab308c0093bd192d.tar.bz2
dexon-solidity-2cde4f34044b89bb8bced05cab308c0093bd192d.tar.lz
dexon-solidity-2cde4f34044b89bb8bced05cab308c0093bd192d.tar.xz
dexon-solidity-2cde4f34044b89bb8bced05cab308c0093bd192d.tar.zst
dexon-solidity-2cde4f34044b89bb8bced05cab308c0093bd192d.zip
Packing for arrays.
Diffstat (limited to 'ArrayUtils.h')
-rw-r--r--ArrayUtils.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/ArrayUtils.h b/ArrayUtils.h
index c7b05b6d..6e4ceec1 100644
--- a/ArrayUtils.h
+++ b/ArrayUtils.h
@@ -72,6 +72,12 @@ public:
void retrieveLength(ArrayType const& _arrayType) const;
private:
+ /// Adds the given number of bytes to a storage byte offset counter and also increments
+ /// the storage offset if adding this number again would increase the counter over 32.
+ /// @param byteOffsetPosition the stack offset of the storage byte offset
+ /// @param storageOffsetPosition the stack offset of the storage slot offset
+ void incrementByteOffset(unsigned byteSize, unsigned byteOffsetPosition, unsigned storageOffsetPosition) const;
+
CompilerContext& m_context;
};