diff options
author | Alon Zakai <alonzakai@gmail.com> | 2017-10-20 19:38:31 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-20 19:38:31 -0700 |
commit | 1005b1267f70a5a7cf7a8774af6c12d813464720 (patch) | |
tree | 04b27ca5a8fddcef4941681ec81d680c4351c74a /test/ctor-eval | |
parent | 71dc0791361a79e4346eb84ebadf77a324767e32 (diff) | |
download | binaryen-1005b1267f70a5a7cf7a8774af6c12d813464720.tar.gz binaryen-1005b1267f70a5a7cf7a8774af6c12d813464720.tar.bz2 binaryen-1005b1267f70a5a7cf7a8774af6c12d813464720.zip |
Emit binary function index in comment in text format, for convenience (#1232)
Diffstat (limited to 'test/ctor-eval')
-rw-r--r-- | test/ctor-eval/bad-indirect-call.wast.out | 4 | ||||
-rw-r--r-- | test/ctor-eval/bad-indirect-call2.wast.out | 4 | ||||
-rw-r--r-- | test/ctor-eval/basics-flatten.wast.out | 10 | ||||
-rw-r--r-- | test/ctor-eval/basics.wast.out | 10 | ||||
-rw-r--r-- | test/ctor-eval/imported-min.wast.out | 6 | ||||
-rw-r--r-- | test/ctor-eval/imported.wast.out | 6 | ||||
-rw-r--r-- | test/ctor-eval/imported2.wast.out | 6 | ||||
-rw-r--r-- | test/ctor-eval/imported3.wast.out | 2 | ||||
-rw-r--r-- | test/ctor-eval/indirect-call3.wast.out | 4 | ||||
-rw-r--r-- | test/ctor-eval/just_some.wast.out | 6 | ||||
-rw-r--r-- | test/ctor-eval/no_partial.wast.out | 2 | ||||
-rw-r--r-- | test/ctor-eval/unsafe_call.wast.out | 4 | ||||
-rw-r--r-- | test/ctor-eval/unsafe_store.wast.out | 2 | ||||
-rw-r--r-- | test/ctor-eval/unsafe_store2.wast.out | 2 | ||||
-rw-r--r-- | test/ctor-eval/unsafe_store3.wast.out | 2 |
15 files changed, 35 insertions, 35 deletions
diff --git a/test/ctor-eval/bad-indirect-call.wast.out b/test/ctor-eval/bad-indirect-call.wast.out index fc3d71e42..5cd7830f9 100644 --- a/test/ctor-eval/bad-indirect-call.wast.out +++ b/test/ctor-eval/bad-indirect-call.wast.out @@ -5,7 +5,7 @@ (memory $0 256 256) (data (i32.const 10) "waka waka waka waka waka") (export "test1" (func $test1)) - (func $test1 (type $v) + (func $test1 (; 0 ;) (type $v) (call_indirect $v (i32.const 1) ) @@ -14,7 +14,7 @@ (i32.const 120) ) ) - (func $call-indirect (type $v) + (func $call-indirect (; 1 ;) (type $v) (i32.store8 (i32.const 40) (i32.const 67) diff --git a/test/ctor-eval/bad-indirect-call2.wast.out b/test/ctor-eval/bad-indirect-call2.wast.out index d63f1a11e..dd3800a84 100644 --- a/test/ctor-eval/bad-indirect-call2.wast.out +++ b/test/ctor-eval/bad-indirect-call2.wast.out @@ -7,7 +7,7 @@ (memory $0 256 256) (data (i32.const 10) "waka waka waka waka waka") (export "test1" (func $test1)) - (func $test1 (type $v) + (func $test1 (; 1 ;) (type $v) (call_indirect $v (i32.const 0) ) @@ -16,7 +16,7 @@ (i32.const 120) ) ) - (func $call-indirect (type $v) + (func $call-indirect (; 2 ;) (type $v) (i32.store8 (i32.const 40) (i32.const 67) diff --git a/test/ctor-eval/basics-flatten.wast.out b/test/ctor-eval/basics-flatten.wast.out index 2c0502ab7..b3b937c59 100644 --- a/test/ctor-eval/basics-flatten.wast.out +++ b/test/ctor-eval/basics-flatten.wast.out @@ -7,16 +7,16 @@ (export "test1" (func $test1)) (export "test2" (func $test2)) (export "test3" (func $test3)) - (func $test1 (type $v) + (func $test1 (; 0 ;) (type $v) (nop) ) - (func $test2 (type $v) + (func $test2 (; 1 ;) (type $v) (nop) ) - (func $test3 (type $v) + (func $test3 (; 2 ;) (type $v) (nop) ) - (func $safe-to-call (type $v) + (func $safe-to-call (; 3 ;) (type $v) (i32.store8 (i32.const 10) (i32.const 110) @@ -26,7 +26,7 @@ (i32.const 109) ) ) - (func $call-indirect (type $v) + (func $call-indirect (; 4 ;) (type $v) (i32.store8 (i32.const 40) (i32.const 67) diff --git a/test/ctor-eval/basics.wast.out b/test/ctor-eval/basics.wast.out index 4e541385b..3179f7b36 100644 --- a/test/ctor-eval/basics.wast.out +++ b/test/ctor-eval/basics.wast.out @@ -7,16 +7,16 @@ (export "test1" (func $test1)) (export "test2" (func $test2)) (export "test3" (func $test3)) - (func $test1 (type $v) + (func $test1 (; 0 ;) (type $v) (nop) ) - (func $test2 (type $v) + (func $test2 (; 1 ;) (type $v) (nop) ) - (func $test3 (type $v) + (func $test3 (; 2 ;) (type $v) (nop) ) - (func $safe-to-call (type $v) + (func $safe-to-call (; 3 ;) (type $v) (i32.store8 (i32.const 10) (i32.const 110) @@ -26,7 +26,7 @@ (i32.const 109) ) ) - (func $call-indirect (type $v) + (func $call-indirect (; 4 ;) (type $v) (i32.store8 (i32.const 40) (i32.const 67) diff --git a/test/ctor-eval/imported-min.wast.out b/test/ctor-eval/imported-min.wast.out index 48d4c5796..dd0f88841 100644 --- a/test/ctor-eval/imported-min.wast.out +++ b/test/ctor-eval/imported-min.wast.out @@ -12,11 +12,11 @@ (export "test1" (func $test1)) (export "test2" (func $test2)) (export "test3" (func $test3)) - (func $test1 (type $0) + (func $test1 (; 0 ;) (type $0) (local $temp i32) (nop) ) - (func $test2 (type $0) + (func $test2 (; 1 ;) (type $0) (set_global $tempDoublePtr (i32.const 1) ) @@ -25,7 +25,7 @@ (i32.const 115) ) ) - (func $test3 (type $0) + (func $test3 (; 2 ;) (type $0) (i32.store8 (i32.const 14) (i32.const 115) diff --git a/test/ctor-eval/imported.wast.out b/test/ctor-eval/imported.wast.out index 38fcb1842..6a7557e88 100644 --- a/test/ctor-eval/imported.wast.out +++ b/test/ctor-eval/imported.wast.out @@ -12,11 +12,11 @@ (export "test1" (func $test1)) (export "test2" (func $test2)) (export "test3" (func $test3)) - (func $test1 (type $0) + (func $test1 (; 0 ;) (type $0) (local $temp i32) (nop) ) - (func $test2 (type $0) + (func $test2 (; 1 ;) (type $0) (set_global $tempDoublePtr (i32.const 1) ) @@ -25,7 +25,7 @@ (i32.const 115) ) ) - (func $test3 (type $0) + (func $test3 (; 2 ;) (type $0) (i32.store8 (i32.const 14) (i32.const 115) diff --git a/test/ctor-eval/imported2.wast.out b/test/ctor-eval/imported2.wast.out index 26b91cc35..add5a1e99 100644 --- a/test/ctor-eval/imported2.wast.out +++ b/test/ctor-eval/imported2.wast.out @@ -9,10 +9,10 @@ (export "test1" (func $test1)) (export "test2" (func $test2)) (export "test3" (func $test3)) - (func $test1 (type $0) + (func $test1 (; 0 ;) (type $0) (nop) ) - (func $test2 (type $0) + (func $test2 (; 1 ;) (type $0) (set_global $mine (i32.const 2) ) @@ -21,7 +21,7 @@ (i32.const 115) ) ) - (func $test3 (type $0) + (func $test3 (; 2 ;) (type $0) (i32.store8 (i32.const 14) (i32.const 115) diff --git a/test/ctor-eval/imported3.wast.out b/test/ctor-eval/imported3.wast.out index 6d8fab867..b7e9dc5a3 100644 --- a/test/ctor-eval/imported3.wast.out +++ b/test/ctor-eval/imported3.wast.out @@ -7,7 +7,7 @@ (export "test1" (func $test1)) (export "test2" (func $test2)) (export "test3" (func $test3)) - (func $test1 (type $0) + (func $test1 (; 0 ;) (type $0) (i32.store8 (i32.const 13) (i32.const 115) diff --git a/test/ctor-eval/indirect-call3.wast.out b/test/ctor-eval/indirect-call3.wast.out index 27f661c30..a4b2ac337 100644 --- a/test/ctor-eval/indirect-call3.wast.out +++ b/test/ctor-eval/indirect-call3.wast.out @@ -8,10 +8,10 @@ (memory $0 256 256) (data (i32.const 10) "waka waka xaka waka waka\00\00\00\00\00\00C") (export "test1" (func $test1)) - (func $test1 (type $v) + (func $test1 (; 1 ;) (type $v) (nop) ) - (func $call-indirect (type $v) + (func $call-indirect (; 2 ;) (type $v) (i32.store8 (i32.const 40) (i32.const 67) diff --git a/test/ctor-eval/just_some.wast.out b/test/ctor-eval/just_some.wast.out index 79bb19df6..c44e6a9df 100644 --- a/test/ctor-eval/just_some.wast.out +++ b/test/ctor-eval/just_some.wast.out @@ -5,13 +5,13 @@ (export "test1" (func $test1)) (export "test2" (func $test2)) (export "test3" (func $test3)) - (func $test1 (type $0) + (func $test1 (; 0 ;) (type $0) (nop) ) - (func $test2 (type $0) + (func $test2 (; 1 ;) (type $0) (unreachable) ) - (func $test3 (type $0) + (func $test3 (; 2 ;) (type $0) (i32.store8 (i32.const 13) (i32.const 113) diff --git a/test/ctor-eval/no_partial.wast.out b/test/ctor-eval/no_partial.wast.out index 0caa401d4..ac943d57c 100644 --- a/test/ctor-eval/no_partial.wast.out +++ b/test/ctor-eval/no_partial.wast.out @@ -3,7 +3,7 @@ (memory $0 256 256) (data (i32.const 10) "waka waka waka waka waka") (export "test1" (func $test1)) - (func $test1 (type $0) + (func $test1 (; 0 ;) (type $0) (i32.store8 (i32.const 12) (i32.const 115) diff --git a/test/ctor-eval/unsafe_call.wast.out b/test/ctor-eval/unsafe_call.wast.out index 7d8867610..5a16a6112 100644 --- a/test/ctor-eval/unsafe_call.wast.out +++ b/test/ctor-eval/unsafe_call.wast.out @@ -5,7 +5,7 @@ (export "test1" (func $test1)) (export "test2" (func $test2)) (export "test3" (func $test3)) - (func $test1 (type $0) + (func $test1 (; 0 ;) (type $0) (call $unsafe-to-call) (i32.store (i32.const 12) @@ -20,7 +20,7 @@ (i32.const 120) ) ) - (func $unsafe-to-call (type $0) + (func $unsafe-to-call (; 1 ;) (type $0) (unreachable) ) ) diff --git a/test/ctor-eval/unsafe_store.wast.out b/test/ctor-eval/unsafe_store.wast.out index 7fa97d876..36f3b74bd 100644 --- a/test/ctor-eval/unsafe_store.wast.out +++ b/test/ctor-eval/unsafe_store.wast.out @@ -5,7 +5,7 @@ (export "test1" (func $test1)) (export "test2" (func $test2)) (export "test3" (func $test3)) - (func $test1 (type $0) + (func $test1 (; 0 ;) (type $0) (nop) ) ) diff --git a/test/ctor-eval/unsafe_store2.wast.out b/test/ctor-eval/unsafe_store2.wast.out index 7af56749a..a0d34e8b4 100644 --- a/test/ctor-eval/unsafe_store2.wast.out +++ b/test/ctor-eval/unsafe_store2.wast.out @@ -5,7 +5,7 @@ (export "test1" (func $test1)) (export "test2" (func $test2)) (export "test3" (func $test3)) - (func $test1 (type $0) + (func $test1 (; 0 ;) (type $0) (nop) ) ) diff --git a/test/ctor-eval/unsafe_store3.wast.out b/test/ctor-eval/unsafe_store3.wast.out index cbf66c6da..189f830e7 100644 --- a/test/ctor-eval/unsafe_store3.wast.out +++ b/test/ctor-eval/unsafe_store3.wast.out @@ -5,7 +5,7 @@ (export "test1" (func $test1)) (export "test2" (func $test2)) (export "test3" (func $test3)) - (func $test1 (type $0) + (func $test1 (; 0 ;) (type $0) (nop) ) ) |