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.cpp | |
parent | d1e05ac416c68d65112e9dd1427b8b009802afef (diff) | |
download | dexon-solidity-1ba38c9c0266ef3bf2229a18dc1953c0a954e182.tar dexon-solidity-1ba38c9c0266ef3bf2229a18dc1953c0a954e182.tar.gz dexon-solidity-1ba38c9c0266ef3bf2229a18dc1953c0a954e182.tar.bz2 dexon-solidity-1ba38c9c0266ef3bf2229a18dc1953c0a954e182.tar.lz dexon-solidity-1ba38c9c0266ef3bf2229a18dc1953c0a954e182.tar.xz dexon-solidity-1ba38c9c0266ef3bf2229a18dc1953c0a954e182.tar.zst dexon-solidity-1ba38c9c0266ef3bf2229a18dc1953c0a954e182.zip |
More flexible access to stack during external function call.
Diffstat (limited to 'CompilerContext.cpp')
-rw-r--r-- | CompilerContext.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/CompilerContext.cpp b/CompilerContext.cpp index 5d10a5f9..29e98eab 100644 --- a/CompilerContext.cpp +++ b/CompilerContext.cpp @@ -95,6 +95,11 @@ unsigned CompilerContext::baseToCurrentStackOffset(unsigned _baseOffset) const return _baseOffset + m_asm.deposit(); } +unsigned CompilerContext::currentToBaseStackOffset(unsigned _offset) const +{ + return -baseToCurrentStackOffset(-_offset); +} + u256 CompilerContext::getStorageLocationOfVariable(const Declaration& _declaration) const { auto it = m_stateVariables.find(&_declaration); |