diff options
34 files changed, 0 insertions, 39 deletions
diff --git a/src/wasm/wasm-emscripten.cpp b/src/wasm/wasm-emscripten.cpp index 262787ac1..68c095111 100644 --- a/src/wasm/wasm-emscripten.cpp +++ b/src/wasm/wasm-emscripten.cpp @@ -394,12 +394,6 @@ std::string EmscriptenGlueGenerator::generateEmscriptenMetadata() { meta << "\n },\n"; } - if (!wasm.tables.empty()) { - meta << " \"tableSize\": " << wasm.tables[0]->initial.addr << ",\n"; - } else { - meta << " \"tableSize\": 0,\n"; - } - // Avoid adding duplicate imports to `declares' or `invokeFuncs`. Even // though we might import the same function multiple times (i.e. with // different sigs) we only need to list is in the metadata once. diff --git a/test/lld/basic_safe_stack.wat.out b/test/lld/basic_safe_stack.wat.out index 92ae69ff4..d6aca5760 100644 --- a/test/lld/basic_safe_stack.wat.out +++ b/test/lld/basic_safe_stack.wat.out @@ -87,7 +87,6 @@ (; --BEGIN METADATA -- { - "tableSize": 0, "declares": [ "__handle_stack_overflow" ], diff --git a/test/lld/duplicate_imports.wat.out b/test/lld/duplicate_imports.wat.out index 5ab26a054..38a08e50f 100644 --- a/test/lld/duplicate_imports.wat.out +++ b/test/lld/duplicate_imports.wat.out @@ -67,7 +67,6 @@ (; --BEGIN METADATA -- { - "tableSize": 1, "declares": [ "puts" ], diff --git a/test/lld/em_asm.wat.mem.out b/test/lld/em_asm.wat.mem.out index d4fe9d06f..8ace4ede4 100644 --- a/test/lld/em_asm.wat.mem.out +++ b/test/lld/em_asm.wat.mem.out @@ -74,7 +74,6 @@ "607": "{ return $0 + $1; }", "627": "{ Module.print(\"Got \" + $0); }" }, - "tableSize": 1, "declares": [ "emscripten_asm_const_int" ], diff --git a/test/lld/em_asm.wat.out b/test/lld/em_asm.wat.out index 37e211765..c0cfbe303 100644 --- a/test/lld/em_asm.wat.out +++ b/test/lld/em_asm.wat.out @@ -76,7 +76,6 @@ "607": "{ return $0 + $1; }", "627": "{ Module.print(\"Got \" + $0); }" }, - "tableSize": 1, "declares": [ "emscripten_asm_const_int" ], diff --git a/test/lld/em_asm64.wat.out b/test/lld/em_asm64.wat.out index f8f25347b..e1cc005e9 100644 --- a/test/lld/em_asm64.wat.out +++ b/test/lld/em_asm64.wat.out @@ -76,7 +76,6 @@ "607": "{ return $0 + $1; }", "627": "{ Module.print(\"Got \" + $0); }" }, - "tableSize": 1, "declares": [ "emscripten_asm_const_int" ], diff --git a/test/lld/em_asm_O0.wat.out b/test/lld/em_asm_O0.wat.out index 6aa905d4f..e05e85757 100644 --- a/test/lld/em_asm_O0.wat.out +++ b/test/lld/em_asm_O0.wat.out @@ -99,7 +99,6 @@ "601": "{ return $0 + $1; }", "621": "{ Module.print(\"Got \" + $0); }" }, - "tableSize": 0, "declares": [ "emscripten_asm_const_int" ], diff --git a/test/lld/em_asm_main_thread.wat.out b/test/lld/em_asm_main_thread.wat.out index 439134247..fdb75c98f 100644 --- a/test/lld/em_asm_main_thread.wat.out +++ b/test/lld/em_asm_main_thread.wat.out @@ -200,7 +200,6 @@ "601": "{ return $0 + $1; }", "621": "{ Module.print(\"Got \" + $0); }" }, - "tableSize": 1, "declares": [ "emscripten_asm_const_int_sync_on_main_thread" ], diff --git a/test/lld/em_asm_pthread.wasm.out b/test/lld/em_asm_pthread.wasm.out index e6b1b82b8..45d76f5fc 100644 --- a/test/lld/em_asm_pthread.wasm.out +++ b/test/lld/em_asm_pthread.wasm.out @@ -12847,7 +12847,6 @@ "initPthreadsJS": "(void)<::>{ PThread.initRuntime(); }", "world": "()<::>{ console.log(\"World.\"); }" }, - "tableSize": 5, "declares": [ "emscripten_asm_const_int", "__cxa_thread_atexit", diff --git a/test/lld/em_asm_shared.wat.out b/test/lld/em_asm_shared.wat.out index 5c50df7f1..b1911bca7 100644 --- a/test/lld/em_asm_shared.wat.out +++ b/test/lld/em_asm_shared.wat.out @@ -101,7 +101,6 @@ "39": "{ return $0 + $1; }", "59": "{ Module.print(\"Got \" + $0); }" }, - "tableSize": 0, "declares": [ "emscripten_asm_const_int" ], diff --git a/test/lld/em_asm_table.wat.out b/test/lld/em_asm_table.wat.out index 40bfcf122..4a654c141 100644 --- a/test/lld/em_asm_table.wat.out +++ b/test/lld/em_asm_table.wat.out @@ -32,7 +32,6 @@ (; --BEGIN METADATA -- { - "tableSize": 159609, "declares": [ "emscripten_log", "emscripten_asm_const_int" diff --git a/test/lld/em_js_O0.wat.out b/test/lld/em_js_O0.wat.out index b674f45b2..d0a4febe6 100644 --- a/test/lld/em_js_O0.wat.out +++ b/test/lld/em_js_O0.wat.out @@ -15,7 +15,6 @@ "emJsFuncs": { "noarg": "(void)<::>{ out(\"no args works\"); }" }, - "tableSize": 0, "declares": [ ], "globalImports": [ diff --git a/test/lld/hello_world.passive.wat.out b/test/lld/hello_world.passive.wat.out index 1b5ffc5da..1c96749d2 100644 --- a/test/lld/hello_world.passive.wat.out +++ b/test/lld/hello_world.passive.wat.out @@ -40,7 +40,6 @@ (; --BEGIN METADATA -- { - "tableSize": 1, "declares": [ "puts" ], diff --git a/test/lld/hello_world.wat.mem.out b/test/lld/hello_world.wat.mem.out index 8d4f410d0..f55fbcf89 100644 --- a/test/lld/hello_world.wat.mem.out +++ b/test/lld/hello_world.wat.mem.out @@ -28,7 +28,6 @@ (; --BEGIN METADATA -- { - "tableSize": 1, "declares": [ "puts" ], diff --git a/test/lld/hello_world.wat.out b/test/lld/hello_world.wat.out index d9940b452..de4d9670f 100644 --- a/test/lld/hello_world.wat.out +++ b/test/lld/hello_world.wat.out @@ -29,7 +29,6 @@ (; --BEGIN METADATA -- { - "tableSize": 1, "declares": [ "puts" ], diff --git a/test/lld/init.wat.out b/test/lld/init.wat.out index d66f6a764..7525cf131 100644 --- a/test/lld/init.wat.out +++ b/test/lld/init.wat.out @@ -41,7 +41,6 @@ (; --BEGIN METADATA -- { - "tableSize": 1, "declares": [ ], "globalImports": [ diff --git a/test/lld/longjmp.wat.out b/test/lld/longjmp.wat.out index 61e70bb40..143a011ad 100644 --- a/test/lld/longjmp.wat.out +++ b/test/lld/longjmp.wat.out @@ -141,7 +141,6 @@ (; --BEGIN METADATA -- { - "tableSize": 2, "declares": [ "malloc", "saveSetjmp", diff --git a/test/lld/main_module.wat.out b/test/lld/main_module.wat.out index dcbb73efa..fb1b13127 100644 --- a/test/lld/main_module.wat.out +++ b/test/lld/main_module.wat.out @@ -56,7 +56,6 @@ (; --BEGIN METADATA -- { - "tableSize": 0, "declares": [ "puts" ], diff --git a/test/lld/main_module_table.wat.out b/test/lld/main_module_table.wat.out index a3b61f439..dd37f93b6 100644 --- a/test/lld/main_module_table.wat.out +++ b/test/lld/main_module_table.wat.out @@ -12,7 +12,6 @@ (; --BEGIN METADATA -- { - "tableSize": 0, "declares": [ ], "globalImports": [ diff --git a/test/lld/main_module_table_2.wat.out b/test/lld/main_module_table_2.wat.out index d8938bcc2..37a162860 100644 --- a/test/lld/main_module_table_2.wat.out +++ b/test/lld/main_module_table_2.wat.out @@ -13,7 +13,6 @@ (; --BEGIN METADATA -- { - "tableSize": 1, "declares": [ ], "globalImports": [ diff --git a/test/lld/main_module_table_3.wat.out b/test/lld/main_module_table_3.wat.out index d0f810f80..8153a2770 100644 --- a/test/lld/main_module_table_3.wat.out +++ b/test/lld/main_module_table_3.wat.out @@ -14,7 +14,6 @@ (; --BEGIN METADATA -- { - "tableSize": 1, "declares": [ ], "globalImports": [ diff --git a/test/lld/main_module_table_4.wat.out b/test/lld/main_module_table_4.wat.out index 2aba23d77..e09e42238 100644 --- a/test/lld/main_module_table_4.wat.out +++ b/test/lld/main_module_table_4.wat.out @@ -15,7 +15,6 @@ (; --BEGIN METADATA -- { - "tableSize": 1, "declares": [ ], "globalImports": [ diff --git a/test/lld/main_module_table_5.wat.out b/test/lld/main_module_table_5.wat.out index 7d8577b4f..bf543f98a 100644 --- a/test/lld/main_module_table_5.wat.out +++ b/test/lld/main_module_table_5.wat.out @@ -28,7 +28,6 @@ (; --BEGIN METADATA -- { - "tableSize": 1, "declares": [ ], "globalImports": [ diff --git a/test/lld/recursive.wat.out b/test/lld/recursive.wat.out index 3ff1371d8..5ffbf8210 100644 --- a/test/lld/recursive.wat.out +++ b/test/lld/recursive.wat.out @@ -86,7 +86,6 @@ (; --BEGIN METADATA -- { - "tableSize": 1, "declares": [ "iprintf" ], diff --git a/test/lld/recursive_safe_stack.wat.out b/test/lld/recursive_safe_stack.wat.out index a58608d1c..3272731b1 100644 --- a/test/lld/recursive_safe_stack.wat.out +++ b/test/lld/recursive_safe_stack.wat.out @@ -175,7 +175,6 @@ (; --BEGIN METADATA -- { - "tableSize": 1, "declares": [ "printf", "__handle_stack_overflow" diff --git a/test/lld/reserved_func_ptr.wat.out b/test/lld/reserved_func_ptr.wat.out index 7890b7a73..a661989ba 100644 --- a/test/lld/reserved_func_ptr.wat.out +++ b/test/lld/reserved_func_ptr.wat.out @@ -121,7 +121,6 @@ (; --BEGIN METADATA -- { - "tableSize": 3, "declares": [ "_Z4atoiPKc" ], diff --git a/test/lld/safe_stack_standalone-wasm.wat.out b/test/lld/safe_stack_standalone-wasm.wat.out index 8c4b9b3bb..b5bd4a869 100644 --- a/test/lld/safe_stack_standalone-wasm.wat.out +++ b/test/lld/safe_stack_standalone-wasm.wat.out @@ -174,7 +174,6 @@ (; --BEGIN METADATA -- { - "tableSize": 1, "declares": [ "printf" ], diff --git a/test/lld/shared.wat.out b/test/lld/shared.wat.out index 0d2241d00..209c3db82 100644 --- a/test/lld/shared.wat.out +++ b/test/lld/shared.wat.out @@ -53,7 +53,6 @@ (; --BEGIN METADATA -- { - "tableSize": 0, "declares": [ "puts" ], diff --git a/test/lld/shared_add_to_table.wasm.out b/test/lld/shared_add_to_table.wasm.out index 8f305d19c..82d41654b 100644 --- a/test/lld/shared_add_to_table.wasm.out +++ b/test/lld/shared_add_to_table.wasm.out @@ -71,7 +71,6 @@ (; --BEGIN METADATA -- { - "tableSize": 0, "declares": [ "_Z16waka_func_theirsi" ], diff --git a/test/lld/shared_longjmp.wat.out b/test/lld/shared_longjmp.wat.out index 93d20de16..e1e91ca14 100644 --- a/test/lld/shared_longjmp.wat.out +++ b/test/lld/shared_longjmp.wat.out @@ -150,7 +150,6 @@ (; --BEGIN METADATA -- { - "tableSize": 0, "declares": [ "malloc", "saveSetjmp", diff --git a/test/lld/standalone-wasm-with-start.wat.out b/test/lld/standalone-wasm-with-start.wat.out index 635485dbf..b5bbb22b4 100644 --- a/test/lld/standalone-wasm-with-start.wat.out +++ b/test/lld/standalone-wasm-with-start.wat.out @@ -20,7 +20,6 @@ (; --BEGIN METADATA -- { - "tableSize": 1, "declares": [ ], "globalImports": [ diff --git a/test/lld/standalone-wasm.wat.out b/test/lld/standalone-wasm.wat.out index 99c07dea7..54519e820 100644 --- a/test/lld/standalone-wasm.wat.out +++ b/test/lld/standalone-wasm.wat.out @@ -24,7 +24,6 @@ (; --BEGIN METADATA -- { - "tableSize": 1, "declares": [ ], "globalImports": [ diff --git a/test/lld/standalone-wasm2.wat.out b/test/lld/standalone-wasm2.wat.out index 217fb9746..8863dc151 100644 --- a/test/lld/standalone-wasm2.wat.out +++ b/test/lld/standalone-wasm2.wat.out @@ -21,7 +21,6 @@ (; --BEGIN METADATA -- { - "tableSize": 0, "declares": [ ], "globalImports": [ diff --git a/test/lld/standalone-wasm3.wat.out b/test/lld/standalone-wasm3.wat.out index 936df6002..df6c277c6 100644 --- a/test/lld/standalone-wasm3.wat.out +++ b/test/lld/standalone-wasm3.wat.out @@ -14,7 +14,6 @@ (; --BEGIN METADATA -- { - "tableSize": 0, "declares": [ ], "globalImports": [ |