aboutsummaryrefslogtreecommitdiffstats
path: root/CompilerUtils.h
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2015-06-06 06:57:51 +0800
committerchriseth <c@ethdev.com>2015-06-09 16:03:25 +0800
commit02d57169442d9f5ccf6536341fba1bfe0431473a (patch)
treedb0290340311c2530b3de6064c770a26af96c451 /CompilerUtils.h
parent35ec81971acc31f16253bd1702fb81adbee85f48 (diff)
downloaddexon-solidity-02d57169442d9f5ccf6536341fba1bfe0431473a.tar.gz
dexon-solidity-02d57169442d9f5ccf6536341fba1bfe0431473a.tar.zst
dexon-solidity-02d57169442d9f5ccf6536341fba1bfe0431473a.zip
Use dynamic memory for argument encoding.
Diffstat (limited to 'CompilerUtils.h')
-rw-r--r--CompilerUtils.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/CompilerUtils.h b/CompilerUtils.h
index 30ea5cc6..27c46ba1 100644
--- a/CompilerUtils.h
+++ b/CompilerUtils.h
@@ -41,6 +41,8 @@ public:
void fetchFreeMemoryPointer();
/// Stores the free memory pointer from the stack.
void storeFreeMemoryPointer();
+ /// Appends code that transforms memptr to (memptr - free_memptr) memptr
+ void toSizeAfterFreeMemoryPointer();
/// Loads data from memory to the stack.
/// @param _offset offset in memory (or calldata)
@@ -74,7 +76,7 @@ public:
bool _padToWordBoundaries = false
);
/// Dynamic version of @see storeInMemory, expects the memory offset below the value on the stack
- /// and also updates that.
+ /// and also updates that. For arrays, only copies the data part.
/// Stack pre: memory_offset value...
/// Stack post: (memory_offset+length)
void storeInMemoryDynamic(Type const& _type, bool _padToWordBoundaries = true);