diff options
author | Abbas Mashayekh <martianboy2005@gmail.com> | 2021-04-02 21:34:03 +0430 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-02 10:04:03 -0700 |
commit | c59df4cda843ef11ad261f5c889dddc9a9d59d3b (patch) | |
tree | 123b923408082a8578bc9bad6cafe2b5aaeeedda /test/passes/asyncify_pass-arg=asyncify-asserts_pass-arg=asyncify-onlylist@waka.txt | |
parent | c75be5fc138f4f523a548758fa785cac310563fd (diff) | |
download | binaryen-c59df4cda843ef11ad261f5c889dddc9a9d59d3b.tar.gz binaryen-c59df4cda843ef11ad261f5c889dddc9a9d59d3b.tar.bz2 binaryen-c59df4cda843ef11ad261f5c889dddc9a9d59d3b.zip |
Reorder global definitions in Print pass (#3770)
This is needed to make sure globals are printed before element segments,
where `global.get` can appear both as offset and an expression.
Diffstat (limited to 'test/passes/asyncify_pass-arg=asyncify-asserts_pass-arg=asyncify-onlylist@waka.txt')
-rw-r--r-- | test/passes/asyncify_pass-arg=asyncify-asserts_pass-arg=asyncify-onlylist@waka.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/passes/asyncify_pass-arg=asyncify-asserts_pass-arg=asyncify-onlylist@waka.txt b/test/passes/asyncify_pass-arg=asyncify-asserts_pass-arg=asyncify-onlylist@waka.txt index 90f7769c6..96eedff68 100644 --- a/test/passes/asyncify_pass-arg=asyncify-asserts_pass-arg=asyncify-onlylist@waka.txt +++ b/test/passes/asyncify_pass-arg=asyncify-asserts_pass-arg=asyncify-onlylist@waka.txt @@ -5,11 +5,11 @@ (import "env" "import" (func $import)) (import "env" "import2" (func $import2 (result i32))) (import "env" "import3" (func $import3 (param i32))) + (global $__asyncify_state (mut i32) (i32.const 0)) + (global $__asyncify_data (mut i32) (i32.const 0)) (memory $0 1 2) (table $0 2 2 funcref) (elem (i32.const 0) $calls-import2-drop $calls-import2-drop) - (global $__asyncify_state (mut i32) (i32.const 0)) - (global $__asyncify_data (mut i32) (i32.const 0)) (export "asyncify_start_unwind" (func $asyncify_start_unwind)) (export "asyncify_stop_unwind" (func $asyncify_stop_unwind)) (export "asyncify_start_rewind" (func $asyncify_start_rewind)) |