diff options
author | Christian <c@ethdev.com> | 2015-01-14 18:57:22 +0800 |
---|---|---|
committer | Christian <c@ethdev.com> | 2015-01-14 18:57:22 +0800 |
commit | 1ba38c9c0266ef3bf2229a18dc1953c0a954e182 (patch) | |
tree | 88a1150adc400f16576b4a2407e66f11d701e862 /CompilerContext.h | |
parent | d1e05ac416c68d65112e9dd1427b8b009802afef (diff) | |
download | dexon-solidity-1ba38c9c0266ef3bf2229a18dc1953c0a954e182.tar.gz dexon-solidity-1ba38c9c0266ef3bf2229a18dc1953c0a954e182.tar.zst dexon-solidity-1ba38c9c0266ef3bf2229a18dc1953c0a954e182.zip |
More flexible access to stack during external function call.
Diffstat (limited to 'CompilerContext.h')
-rw-r--r-- | CompilerContext.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/CompilerContext.h b/CompilerContext.h index 14672c95..cf505d65 100644 --- a/CompilerContext.h +++ b/CompilerContext.h @@ -62,6 +62,9 @@ public: /// If supplied by a value returned by @ref getBaseStackOffsetOfVariable(variable), returns /// the distance of that variable from the current top of the stack. unsigned baseToCurrentStackOffset(unsigned _baseOffset) const; + /// Converts an offset relative to the current stack height to a value that can be used later + /// with baseToCurrentStackOffset to point to the same stack element. + unsigned currentToBaseStackOffset(unsigned _offset) const; u256 getStorageLocationOfVariable(Declaration const& _declaration) const; /// Appends a JUMPI instruction to a new tag and @returns the tag |