aboutsummaryrefslogtreecommitdiffstats
path: root/CompilerContext.h
diff options
context:
space:
mode:
authorChristian <c@ethdev.com>2015-01-14 18:57:22 +0800
committerChristian <c@ethdev.com>2015-01-14 18:57:22 +0800
commit1ba38c9c0266ef3bf2229a18dc1953c0a954e182 (patch)
tree88a1150adc400f16576b4a2407e66f11d701e862 /CompilerContext.h
parentd1e05ac416c68d65112e9dd1427b8b009802afef (diff)
downloaddexon-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.h3
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