aboutsummaryrefslogtreecommitdiffstats
path: root/CompilerState.cpp
diff options
context:
space:
mode:
authorGav Wood <i@gavwood.com>2014-07-01 06:16:01 +0800
committerGav Wood <i@gavwood.com>2014-07-01 06:16:01 +0800
commit3174a5e0c6072004159326f000c0e1dfe6703b00 (patch)
tree34d20ebc891413a5b16d92ddfa2c7e2e19c99f39 /CompilerState.cpp
parente65c3ff17de66cfd7d80ef78abba09c6ecf35ded (diff)
downloaddexon-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.cpp3
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) })"