diff options
Diffstat (limited to 'test/dynamicLibrary.fromasm')
-rw-r--r-- | test/dynamicLibrary.fromasm | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/test/dynamicLibrary.fromasm b/test/dynamicLibrary.fromasm index d3a391c51..212353b58 100644 --- a/test/dynamicLibrary.fromasm +++ b/test/dynamicLibrary.fromasm @@ -2,12 +2,12 @@ (type $FUNCSIG$vi (func (param i32))) (type $FUNCSIG$ii (func (param i32) (result i32))) (import "env" "memory" (memory $memory 256 256)) - (data (get_global $__memory_base) "dynamicLibrary.asm.js") + (data (global.get $__memory_base) "dynamicLibrary.asm.js") (import "env" "__memory_base" (global $__memory_base i32)) (import "env" "memoryBase" (global $memoryBase$asm2wasm$import i32)) (import "env" "abortStackOverflow" (func $abortStackOverflow (param i32))) (import "env" "_puts" (func $_puts (param i32) (result i32))) - (global $memoryBase (mut i32) (get_global $memoryBase$asm2wasm$import)) + (global $memoryBase (mut i32) (global.get $memoryBase$asm2wasm$import)) (global $STACKTOP (mut i32) (i32.const 0)) (global $STACK_MAX (mut i32) (i32.const 0)) (global $_global i32 (i32.const 5242912)) @@ -17,19 +17,19 @@ (export "_global" (global $_global)) (func $__ZN3FooC2Ev (; 2 ;) (; has Stack IR ;) (param $0 i32) (local $1 i32) - (set_local $1 - (get_global $STACKTOP) + (local.set $1 + (global.get $STACKTOP) ) - (set_global $STACKTOP + (global.set $STACKTOP (i32.add - (get_global $STACKTOP) + (global.get $STACKTOP) (i32.const 16) ) ) (if (i32.ge_s - (get_global $STACKTOP) - (get_global $STACK_MAX) + (global.get $STACKTOP) + (global.get $STACK_MAX) ) (call $abortStackOverflow (i32.const 16) @@ -37,32 +37,32 @@ ) (drop (call $_puts - (get_global $memoryBase) + (global.get $memoryBase) ) ) - (set_global $STACKTOP - (get_local $1) + (global.set $STACKTOP + (local.get $1) ) ) (func $runPostSets (; 3 ;) (; has Stack IR ;) (nop) ) (func $__post_instantiate (; 4 ;) (; has Stack IR ;) - (set_global $STACKTOP + (global.set $STACKTOP (i32.add - (get_global $memoryBase) + (global.get $memoryBase) (i32.const 32) ) ) - (set_global $STACK_MAX + (global.set $STACK_MAX (i32.add - (get_global $STACKTOP) + (global.get $STACKTOP) (i32.const 5242880) ) ) (call $__ZN3FooC2Ev (i32.add - (get_global $memoryBase) + (global.get $memoryBase) (i32.const 5242912) ) ) |