From 1ba38c9c0266ef3bf2229a18dc1953c0a954e182 Mon Sep 17 00:00:00 2001 From: Christian Date: Wed, 14 Jan 2015 11:57:22 +0100 Subject: More flexible access to stack during external function call. --- CompilerContext.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'CompilerContext.h') 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 -- cgit