Merge branch 'master' of github.com:NikVolf/wasm-tools

This commit is contained in:
NikVolf
2017-05-04 10:38:23 +03:00
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -6,7 +6,7 @@
use std::slice;
#[link_args = "-s WASM=1 -s NO_EXIT_RUNTIME=1 -s NO_FILESYSTEM=1 -s"]
#[link_args = "-s WASM=1 -s NO_EXIT_RUNTIME=1 -s NO_FILESYSTEM=1"]
extern {}
/// Wrapper over storage read/write/size externs
@@ -144,4 +144,4 @@ pub fn call(descriptor: *mut u8) {
// Saves the wrapper state to commit return stream
ctx.save(descriptor);
}
}
+2 -2
View File
@@ -5,7 +5,7 @@ int call(void* descriptor) {
data += *input_length;
}
/* produces the following code (with gas counter)
/* produces the following code (with gas counter and call optimization)
(module
(type (;0;) (func (param i32) (result i32)))
(type (;1;) (func))
@@ -35,4 +35,4 @@ int call(void* descriptor) {
end)
(export "_call" (func 1)))
*/
*/