diff options
author | chriseth <chris@ethereum.org> | 2017-06-14 06:01:06 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2017-06-14 06:01:06 +0800 |
commit | c554145f4d7063422a5e105e2b600b640cf3d8d1 (patch) | |
tree | 604062962d8c5f70c4eed00c5522d25905bf75b4 /libjulia/backends/evm/EVMCodeTransform.h | |
parent | 45d96959f88e951af0e2ccf0217f19d75da66ed1 (diff) | |
download | dexon-solidity-c554145f4d7063422a5e105e2b600b640cf3d8d1.tar.gz dexon-solidity-c554145f4d7063422a5e105e2b600b640cf3d8d1.tar.zst dexon-solidity-c554145f4d7063422a5e105e2b600b640cf3d8d1.zip |
Move stack height to generation phase.
Diffstat (limited to 'libjulia/backends/evm/EVMCodeTransform.h')
-rw-r--r-- | libjulia/backends/evm/EVMCodeTransform.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libjulia/backends/evm/EVMCodeTransform.h b/libjulia/backends/evm/EVMCodeTransform.h index 57781c91..202f5051 100644 --- a/libjulia/backends/evm/EVMCodeTransform.h +++ b/libjulia/backends/evm/EVMCodeTransform.h @@ -81,8 +81,10 @@ public: protected: struct Context { - std::map<solidity::assembly::Scope::Label const*, AbstractAssembly::LabelID> labelIDs; - std::map<solidity::assembly::Scope::Function const*, AbstractAssembly::LabelID> functionEntryIDs; + using Scope = solidity::assembly::Scope; + std::map<Scope::Label const*, AbstractAssembly::LabelID> labelIDs; + std::map<Scope::Function const*, AbstractAssembly::LabelID> functionEntryIDs; + std::map<Scope::Variable const*, int> variableStackHeights; }; CodeTransform( |