diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/metadatas.wasm | bin | 0 -> 261 bytes | |||
-rw-r--r-- | test/metadatas.wasm.fromBinary | 10 | ||||
-rw-r--r-- | test/passes/metrics_strip-debug_metrics.bin.txt | 17 | ||||
-rw-r--r-- | test/passes/metrics_strip-debug_metrics.wasm | bin | 0 -> 261 bytes | |||
-rw-r--r-- | test/passes/metrics_strip-producers_metrics.bin.txt | 16 | ||||
-rw-r--r-- | test/passes/metrics_strip-producers_metrics.wasm | bin | 0 -> 261 bytes | |||
-rw-r--r-- | test/passes/strip-debug.bin.txt (renamed from test/passes/strip.bin.txt) | 0 | ||||
-rw-r--r-- | test/passes/strip-debug.wasm (renamed from test/passes/strip.wasm) | bin | 771 -> 771 bytes | |||
-rw-r--r-- | test/passes/strip-producers.bin.txt | 22 | ||||
-rw-r--r-- | test/passes/strip-producers.wasm | bin | 0 -> 771 bytes |
10 files changed, 65 insertions, 0 deletions
diff --git a/test/metadatas.wasm b/test/metadatas.wasm Binary files differnew file mode 100644 index 000000000..ea797306f --- /dev/null +++ b/test/metadatas.wasm diff --git a/test/metadatas.wasm.fromBinary b/test/metadatas.wasm.fromBinary new file mode 100644 index 000000000..2e6531678 --- /dev/null +++ b/test/metadatas.wasm.fromBinary @@ -0,0 +1,10 @@ +(module + (type $0 (func)) + (export "a" (func $0)) + (func $0 (; 0 ;) (type $0) + (nop) + ) + ;; custom section "emscripten_metadata", size 7 + ;; custom section "producers", size 187 +) + diff --git a/test/passes/metrics_strip-debug_metrics.bin.txt b/test/passes/metrics_strip-debug_metrics.bin.txt new file mode 100644 index 000000000..dbb3dcc37 --- /dev/null +++ b/test/passes/metrics_strip-debug_metrics.bin.txt @@ -0,0 +1,17 @@ +total + [funcs] : 1 + [total] : 1 + nop : 1 +total + [funcs] : 1 + [total] : 1 + nop : 1 +(module + (type $0 (func)) + (export "a" (func $0)) + (func $0 (; 0 ;) (type $0) + (nop) + ) + ;; custom section "emscripten_metadata", size 7 + ;; custom section "producers", size 187 +) diff --git a/test/passes/metrics_strip-debug_metrics.wasm b/test/passes/metrics_strip-debug_metrics.wasm Binary files differnew file mode 100644 index 000000000..ea797306f --- /dev/null +++ b/test/passes/metrics_strip-debug_metrics.wasm diff --git a/test/passes/metrics_strip-producers_metrics.bin.txt b/test/passes/metrics_strip-producers_metrics.bin.txt new file mode 100644 index 000000000..6ddfa5892 --- /dev/null +++ b/test/passes/metrics_strip-producers_metrics.bin.txt @@ -0,0 +1,16 @@ +total + [funcs] : 1 + [total] : 1 + nop : 1 +total + [funcs] : 1 + [total] : 1 + nop : 1 +(module + (type $0 (func)) + (export "a" (func $0)) + (func $0 (; 0 ;) (type $0) + (nop) + ) + ;; custom section "emscripten_metadata", size 7 +) diff --git a/test/passes/metrics_strip-producers_metrics.wasm b/test/passes/metrics_strip-producers_metrics.wasm Binary files differnew file mode 100644 index 000000000..ea797306f --- /dev/null +++ b/test/passes/metrics_strip-producers_metrics.wasm diff --git a/test/passes/strip.bin.txt b/test/passes/strip-debug.bin.txt index 7160e69f2..7160e69f2 100644 --- a/test/passes/strip.bin.txt +++ b/test/passes/strip-debug.bin.txt diff --git a/test/passes/strip.wasm b/test/passes/strip-debug.wasm Binary files differindex 59065683c..59065683c 100644 --- a/test/passes/strip.wasm +++ b/test/passes/strip-debug.wasm diff --git a/test/passes/strip-producers.bin.txt b/test/passes/strip-producers.bin.txt new file mode 100644 index 000000000..dcc8ab9b4 --- /dev/null +++ b/test/passes/strip-producers.bin.txt @@ -0,0 +1,22 @@ +(module + (type $0 (func (result i32))) + (import "env" "__linear_memory" (memory $0 0)) + (import "env" "__indirect_function_table" (table $timport$1 0 funcref)) + (func $0 (; 0 ;) (type $0) (result i32) + (local $0 i32) + (local.set $0 + (i32.const 1) + ) + (return + (local.get $0) + ) + ) + ;; custom section ".debug_str", size 246 + ;; custom section ".debug_abbrev", size 52 + ;; custom section ".debug_info", size 69 + ;; custom section ".debug_macinfo", size 1 + ;; custom section ".debug_line", size 56 + ;; custom section "zinking", size 28 + ;; custom section "reloc..debug_info", size 47 + ;; custom section "reloc..debug_line", size 6 +) diff --git a/test/passes/strip-producers.wasm b/test/passes/strip-producers.wasm Binary files differnew file mode 100644 index 000000000..59065683c --- /dev/null +++ b/test/passes/strip-producers.wasm |