diff options
author | Sam Clegg <sbc@chromium.org> | 2018-12-14 10:57:46 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-14 10:57:46 -0800 |
commit | e8f5842d4a58a94b8a485a7e63dd8657d88eb805 (patch) | |
tree | 9f36fa0bac897b00233559fd0897f0db72fe27a1 /test | |
parent | 97c2f0eb7cf57cab242b2707c3514bf0d2d7d13e (diff) | |
download | binaryen-e8f5842d4a58a94b8a485a7e63dd8657d88eb805.tar.gz binaryen-e8f5842d4a58a94b8a485a7e63dd8657d88eb805.tar.bz2 binaryen-e8f5842d4a58a94b8a485a7e63dd8657d88eb805.zip |
wasm-emscripten-finalize: Add tableSize to metadata (#1826)
This allows emscripten to generate table of the correct size.
Right now is simply defaults to creating a table to size 1024.
Diffstat (limited to 'test')
-rw-r--r-- | test/lld/duplicate_imports.wast.out | 1 | ||||
-rw-r--r-- | test/lld/em_asm.wast.out | 1 | ||||
-rw-r--r-- | test/lld/em_asm_table.wast.out | 1 | ||||
-rw-r--r-- | test/lld/hello_world.wast.mem.out | 1 | ||||
-rw-r--r-- | test/lld/hello_world.wast.out | 1 | ||||
-rw-r--r-- | test/lld/init.wast.out | 1 | ||||
-rw-r--r-- | test/lld/recursive.wast.out | 1 | ||||
-rw-r--r-- | test/lld/reserved_func_ptr.wast.jscall.out | 1 | ||||
-rw-r--r-- | test/lld/reserved_func_ptr.wast.out | 1 |
9 files changed, 9 insertions, 0 deletions
diff --git a/test/lld/duplicate_imports.wast.out b/test/lld/duplicate_imports.wast.out index 98cd37651..7de123df9 100644 --- a/test/lld/duplicate_imports.wast.out +++ b/test/lld/duplicate_imports.wast.out @@ -106,6 +106,7 @@ --BEGIN METADATA -- { "staticBump": 13, + "tableSize": 1, "initializers": [ "__post_instantiate" ], diff --git a/test/lld/em_asm.wast.out b/test/lld/em_asm.wast.out index a4112fba5..68ee4dda3 100644 --- a/test/lld/em_asm.wast.out +++ b/test/lld/em_asm.wast.out @@ -85,6 +85,7 @@ "1": ["{ return $0 + $1; }", ["iii"], [""]] }, "staticBump": 84, + "tableSize": 1, "initializers": [ "__post_instantiate" ], diff --git a/test/lld/em_asm_table.wast.out b/test/lld/em_asm_table.wast.out index 628cf20d5..e91b333b2 100644 --- a/test/lld/em_asm_table.wast.out +++ b/test/lld/em_asm_table.wast.out @@ -66,6 +66,7 @@ --BEGIN METADATA -- { "staticBump": 480, + "tableSize": 159609, "declares": [ "emscripten_log" ], diff --git a/test/lld/hello_world.wast.mem.out b/test/lld/hello_world.wast.mem.out index 32eab7450..5f2576013 100644 --- a/test/lld/hello_world.wast.mem.out +++ b/test/lld/hello_world.wast.mem.out @@ -63,6 +63,7 @@ --BEGIN METADATA -- { "staticBump": 13, + "tableSize": 1, "initializers": [ "__post_instantiate" ], diff --git a/test/lld/hello_world.wast.out b/test/lld/hello_world.wast.out index d7b5dfaeb..b3b798939 100644 --- a/test/lld/hello_world.wast.out +++ b/test/lld/hello_world.wast.out @@ -64,6 +64,7 @@ --BEGIN METADATA -- { "staticBump": 13, + "tableSize": 1, "initializers": [ "__post_instantiate" ], diff --git a/test/lld/init.wast.out b/test/lld/init.wast.out index 4152ef2ac..0cc93c41f 100644 --- a/test/lld/init.wast.out +++ b/test/lld/init.wast.out @@ -76,6 +76,7 @@ --BEGIN METADATA -- { "staticBump": 8, + "tableSize": 1, "initializers": [ "__post_instantiate" ], diff --git a/test/lld/recursive.wast.out b/test/lld/recursive.wast.out index 08f7dfa3f..7ad93a97b 100644 --- a/test/lld/recursive.wast.out +++ b/test/lld/recursive.wast.out @@ -122,6 +122,7 @@ --BEGIN METADATA -- { "staticBump": 19, + "tableSize": 1, "initializers": [ "__post_instantiate" ], diff --git a/test/lld/reserved_func_ptr.wast.jscall.out b/test/lld/reserved_func_ptr.wast.jscall.out index c796a025c..afef95f0e 100644 --- a/test/lld/reserved_func_ptr.wast.jscall.out +++ b/test/lld/reserved_func_ptr.wast.jscall.out @@ -299,6 +299,7 @@ --BEGIN METADATA -- { "staticBump": 0, + "tableSize": 21, "initializers": [ "__post_instantiate" ], diff --git a/test/lld/reserved_func_ptr.wast.out b/test/lld/reserved_func_ptr.wast.out index 7c80307b4..3bc43764f 100644 --- a/test/lld/reserved_func_ptr.wast.out +++ b/test/lld/reserved_func_ptr.wast.out @@ -160,6 +160,7 @@ --BEGIN METADATA -- { "staticBump": 0, + "tableSize": 3, "initializers": [ "__post_instantiate" ], |