aboutsummaryrefslogtreecommitdiffstats
path: root/CompilerState.h
diff options
context:
space:
mode:
authorGav Wood <i@gavwood.com>2014-06-12 02:25:21 +0800
committerGav Wood <i@gavwood.com>2014-06-12 02:25:21 +0800
commita2219639febeeac1807c670071aded337d7a4d7c (patch)
treea3efb4565c8235aa94c9555db5b195c6085e6e75 /CompilerState.h
parent5ea7efd593aa4576df6ac0c2b3c334e0f4ec6201 (diff)
downloaddexon-solidity-a2219639febeeac1807c670071aded337d7a4d7c.tar.gz
dexon-solidity-a2219639febeeac1807c670071aded337d7a4d7c.tar.zst
dexon-solidity-a2219639febeeac1807c670071aded337d7a4d7c.zip
LLL supports get/set/ref.
Logging changes.
Diffstat (limited to 'CompilerState.h')
-rw-r--r--CompilerState.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/CompilerState.h b/CompilerState.h
index b7581e0b..f8f7ce81 100644
--- a/CompilerState.h
+++ b/CompilerState.h
@@ -36,10 +36,13 @@ struct Macro
struct CompilerState
{
+ CompilerState();
+
CodeFragment const& getDef(std::string const& _s);
void populateStandard();
- std::map<std::string, unsigned> vars;
+ unsigned stackSize = 64;
+ std::map<std::string, std::pair<unsigned, unsigned>> vars; ///< maps name to stack offset & size.
std::map<std::string, CodeFragment> defs;
std::map<std::string, CodeFragment> args;
std::map<std::string, CodeFragment> outers;