aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGav Wood <i@gavwood.com>2014-05-31 19:41:08 +0800
committerGav Wood <i@gavwood.com>2014-05-31 19:41:08 +0800
commitf64b371382e0a7f2adbe4fd3b45f61fd1ad7d759 (patch)
tree9c59af566b99a2b9ac41cfc3d19a7ca1b889ce26
parent99e9cb0e2e891a790553adf9309362a709e8689a (diff)
downloaddexon-solidity-f64b371382e0a7f2adbe4fd3b45f61fd1ad7d759.tar
dexon-solidity-f64b371382e0a7f2adbe4fd3b45f61fd1ad7d759.tar.gz
dexon-solidity-f64b371382e0a7f2adbe4fd3b45f61fd1ad7d759.tar.bz2
dexon-solidity-f64b371382e0a7f2adbe4fd3b45f61fd1ad7d759.tar.lz
dexon-solidity-f64b371382e0a7f2adbe4fd3b45f61fd1ad7d759.tar.xz
dexon-solidity-f64b371382e0a7f2adbe4fd3b45f61fd1ad7d759.tar.zst
dexon-solidity-f64b371382e0a7f2adbe4fd3b45f61fd1ad7d759.zip
Fixes and language additions.
-rw-r--r--CompilerState.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/CompilerState.cpp b/CompilerState.cpp
index 5cf2a965..74e5062f 100644
--- a/CompilerState.cpp
+++ b/CompilerState.cpp
@@ -41,6 +41,11 @@ void CompilerState::populateStandard()
{
static const string s = "{"
"(def 'gav 0x8a40bfaa73256b60764c1bf40675a99083efb075)"
+ "(def 'namereg 0x2d0aceee7e5ab874e22ccf8d1a649f59106d74e8)"
+ "(def 'config 0xccdeac59d35627b7de09332e819d5159e7bb7250)"
+ "(def 'gavcoin 0x5620133321fcac7f15a5c570016f6cb6dc263f9d)"
+ "(def 'sendgavcoin (to value) { [0]:to [32]:value (call (- (gas) 21) gavcoin 0 0 64 0 0) })"
+ "(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))"
@@ -53,6 +58,7 @@ void CompilerState::populateStandard()
"(def 'create (code) { [0]:(msize) (create 0 @0 (lll code @0)) })"
"(def 'sha3 (val) { [0]:val (sha3 0 32) })"
"(def 'return (val) { [0]:val (return 0 32) })"
+ "(def 'returnlll (code) (return 0 (lll code 0)) )"
"(def 'makeperm (name pos) { (def name (sload pos)) (def name (v) (sstore pos v)) } )"
"(def 'permcount 0)"
"(def 'perm (name) { (makeperm name permcount) (def 'permcount (+ permcount 1)) } )"