summaryrefslogtreecommitdiff
path: root/test/passes/asyncify_pass-arg=asyncify-verbose.wast
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2020-08-06 09:27:34 -0700
committerGitHub <noreply@github.com>2020-08-06 09:27:34 -0700
commite89b40149ff6327df9dcc47043528b0ddef6c377 (patch)
tree96bc5d3e68868d0ae0594eb84b79e61ee7d3dd37 /test/passes/asyncify_pass-arg=asyncify-verbose.wast
parent550b36a1866a262f21c008a4d8cbaf65d14d0c01 (diff)
downloadbinaryen-e89b40149ff6327df9dcc47043528b0ddef6c377.tar.gz
binaryen-e89b40149ff6327df9dcc47043528b0ddef6c377.tar.bz2
binaryen-e89b40149ff6327df9dcc47043528b0ddef6c377.zip
Asyncify verbose option (#3022)
This logs out the decisions made about instrumenting functions, which can help figure out why a function is instrumented, or to get a list of what might need to be. As the test shows, it can print things like this: [asyncify] import is an import that can change the state [asyncify] calls-import can change the state due to import [asyncify] calls-calls-import can change the state due to calls-import [asyncify] calls-calls-calls-import can change the state due to calls-calls-import (the test has calls-calls-calls-import => calls-calls-import => calls-import -> import).
Diffstat (limited to 'test/passes/asyncify_pass-arg=asyncify-verbose.wast')
-rw-r--r--test/passes/asyncify_pass-arg=asyncify-verbose.wast17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/passes/asyncify_pass-arg=asyncify-verbose.wast b/test/passes/asyncify_pass-arg=asyncify-verbose.wast
new file mode 100644
index 000000000..1b1ebf235
--- /dev/null
+++ b/test/passes/asyncify_pass-arg=asyncify-verbose.wast
@@ -0,0 +1,17 @@
+(module
+ (memory 1 2)
+ (import "env" "import" (func $import))
+ (func $calls-import
+ (call $import)
+ )
+ (func $calls-calls-import
+ (call $calls-import)
+ )
+ (func $calls-calls-calls-import
+ (call $calls-calls-import)
+ )
+ (func $nothing
+ (nop)
+ )
+)
+