diff options
author | Gav Wood <i@gavwood.com> | 2014-07-01 06:16:01 +0800 |
---|---|---|
committer | Gav Wood <i@gavwood.com> | 2014-07-01 06:16:01 +0800 |
commit | 3174a5e0c6072004159326f000c0e1dfe6703b00 (patch) | |
tree | 34d20ebc891413a5b16d92ddfa2c7e2e19c99f39 /CompilerState.cpp | |
parent | e65c3ff17de66cfd7d80ef78abba09c6ecf35ded (diff) | |
download | dexon-solidity-3174a5e0c6072004159326f000c0e1dfe6703b00.tar dexon-solidity-3174a5e0c6072004159326f000c0e1dfe6703b00.tar.gz dexon-solidity-3174a5e0c6072004159326f000c0e1dfe6703b00.tar.bz2 dexon-solidity-3174a5e0c6072004159326f000c0e1dfe6703b00.tar.lz dexon-solidity-3174a5e0c6072004159326f000c0e1dfe6703b00.tar.xz dexon-solidity-3174a5e0c6072004159326f000c0e1dfe6703b00.tar.zst dexon-solidity-3174a5e0c6072004159326f000c0e1dfe6703b00.zip |
Fixed problem with alloc.
Diffstat (limited to 'CompilerState.cpp')
-rw-r--r-- | CompilerState.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/CompilerState.cpp b/CompilerState.cpp index 7e990413..7a668190 100644 --- a/CompilerState.cpp +++ b/CompilerState.cpp @@ -52,8 +52,7 @@ void CompilerState::populateStandard() "(def 'regname (name) { [0]:name (call (- (gas) 21) namereg 0 0 32 0 0) })" "(def 'send (to value) (call (- (gas) 21) to value 0 0 0 0))" "(def 'send (gaslimit to value) (call gaslimit to value 0 0 0 0))" - "(def 'alloc (len) (asm msize 0 1 len msize add sub mstore8))" - "(def 'msg (gaslimit to value data datasize outsize) { [32]:outsize [0]:(alloc @32) (call gaslimit to value data datasize @0 @32) @0 })" + "(def 'msg (gaslimit to value data datasize outsize) { (set x outsize) (set y (alloc @32)) (call gaslimit to value data datasize @0 @32) @0 })" "(def 'msg (gaslimit to value data datasize) { (call gaslimit to value data datasize 0 32) @0 })" "(def 'msg (gaslimit to value data) { [0]:data (msg gaslimit to value 0 32) })" "(def 'msg (to value data) { [0]:data (msg 0 to value 0 32) })" |