updated sample

This commit is contained in:
NikVolf
2017-04-27 23:38:02 +03:00
parent 5df3164400
commit b5f65395db
2 changed files with 4 additions and 28 deletions
+3
View File
@@ -25,6 +25,9 @@ else
# Gas injector
cargo run --manifest-path=./../gas/Cargo.toml --release -- ./out/contract.wasm ./out/contract.wasm
# Symbols optimizer
cargo run --manifest-path=./../opt/Cargo.toml --release -- ./out/contract.wasm ./out/contract.wasm
fi
+1 -28
View File
@@ -6,7 +6,6 @@ int call(void* descriptor) {
}
/* produces the following code (with gas counter)
(module
(type (;0;) (func (param i32) (result i32)))
(type (;1;) (func))
@@ -14,7 +13,6 @@ int call(void* descriptor) {
(import "env" "memoryBase" (global (;0;) i32))
(import "env" "memory" (memory (;0;) 256))
(import "env" "table" (table (;0;) 0 anyfunc))
(import "env" "tableBase" (global (;1;) i32))
(import "env" "gas" (func (;0;) (type 2)))
(func (;1;) (type 0) (param i32) (result i32)
i32.const 2
@@ -35,31 +33,6 @@ int call(void* descriptor) {
i32.store
i32.const 0
end)
(func (;2;) (type 1)
i32.const 2
call 0
nop)
(func (;3;) (type 1)
i32.const 2
call 0
block ;; label = @1
i32.const 8
call 0
get_global 0
set_global 2
get_global 2
i32.const 5242880
i32.add
set_global 3
call 2
end)
(global (;2;) (mut i32) (i32.const 0))
(global (;3;) (mut i32) (i32.const 0))
(global (;4;) i32 (i32.const 5242880))
(export "__post_instantiate" (func 3))
(export "runPostSets" (func 2))
(export "_call" (func 1))
(export "_data" (global 4)))
(export "_call" (func 1)))
*/