aboutsummaryrefslogtreecommitdiffstats
path: root/CompilerContext.h
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2015-01-15 01:22:16 +0800
committerchriseth <c@ethdev.com>2015-01-15 01:22:16 +0800
commit1a4280de35d118493e11bc8272d2d7127adaa50c (patch)
tree6abcbc41d1ded067d5ffd8453656241366512217 /CompilerContext.h
parent6e16107870494878635da347146b076a7d75dea0 (diff)
parentabe6055ab73d643ae904202850e4502596112e20 (diff)
downloaddexon-solidity-1a4280de35d118493e11bc8272d2d7127adaa50c.tar
dexon-solidity-1a4280de35d118493e11bc8272d2d7127adaa50c.tar.gz
dexon-solidity-1a4280de35d118493e11bc8272d2d7127adaa50c.tar.bz2
dexon-solidity-1a4280de35d118493e11bc8272d2d7127adaa50c.tar.lz
dexon-solidity-1a4280de35d118493e11bc8272d2d7127adaa50c.tar.xz
dexon-solidity-1a4280de35d118493e11bc8272d2d7127adaa50c.tar.zst
dexon-solidity-1a4280de35d118493e11bc8272d2d7127adaa50c.zip
Merge pull request #799 from chriseth/sol_gasAndValue
Specify gas and value for function calls and contract creation calls.
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