Skip to content

Commit 7598857

Browse files
authored
Remove tableSize from emscripten metadata (#4415)
See emscripten-core/emscripten#15855
1 parent 083ab98 commit 7598857

34 files changed

+0
-39
lines changed

src/wasm/wasm-emscripten.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -394,12 +394,6 @@ std::string EmscriptenGlueGenerator::generateEmscriptenMetadata() {
394394
meta << "\n },\n";
395395
}
396396

397-
if (!wasm.tables.empty()) {
398-
meta << " \"tableSize\": " << wasm.tables[0]->initial.addr << ",\n";
399-
} else {
400-
meta << " \"tableSize\": 0,\n";
401-
}
402-
403397
// Avoid adding duplicate imports to `declares' or `invokeFuncs`. Even
404398
// though we might import the same function multiple times (i.e. with
405399
// different sigs) we only need to list is in the metadata once.

test/lld/basic_safe_stack.wat.out

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@
8787
(;
8888
--BEGIN METADATA --
8989
{
90-
"tableSize": 0,
9190
"declares": [
9291
"__handle_stack_overflow"
9392
],

test/lld/duplicate_imports.wat.out

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@
6767
(;
6868
--BEGIN METADATA --
6969
{
70-
"tableSize": 1,
7170
"declares": [
7271
"puts"
7372
],

test/lld/em_asm.wat.mem.out

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@
7474
"607": "{ return $0 + $1; }",
7575
"627": "{ Module.print(\"Got \" + $0); }"
7676
},
77-
"tableSize": 1,
7877
"declares": [
7978
"emscripten_asm_const_int"
8079
],

test/lld/em_asm.wat.out

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@
7676
"607": "{ return $0 + $1; }",
7777
"627": "{ Module.print(\"Got \" + $0); }"
7878
},
79-
"tableSize": 1,
8079
"declares": [
8180
"emscripten_asm_const_int"
8281
],

test/lld/em_asm64.wat.out

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@
7676
"607": "{ return $0 + $1; }",
7777
"627": "{ Module.print(\"Got \" + $0); }"
7878
},
79-
"tableSize": 1,
8079
"declares": [
8180
"emscripten_asm_const_int"
8281
],

test/lld/em_asm_O0.wat.out

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@
9999
"601": "{ return $0 + $1; }",
100100
"621": "{ Module.print(\"Got \" + $0); }"
101101
},
102-
"tableSize": 0,
103102
"declares": [
104103
"emscripten_asm_const_int"
105104
],

test/lld/em_asm_main_thread.wat.out

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,6 @@
200200
"601": "{ return $0 + $1; }",
201201
"621": "{ Module.print(\"Got \" + $0); }"
202202
},
203-
"tableSize": 1,
204203
"declares": [
205204
"emscripten_asm_const_int_sync_on_main_thread"
206205
],

test/lld/em_asm_pthread.wasm.out

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12847,7 +12847,6 @@
1284712847
"initPthreadsJS": "(void)<::>{ PThread.initRuntime(); }",
1284812848
"world": "()<::>{ console.log(\"World.\"); }"
1284912849
},
12850-
"tableSize": 5,
1285112850
"declares": [
1285212851
"emscripten_asm_const_int",
1285312852
"__cxa_thread_atexit",

test/lld/em_asm_shared.wat.out

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@
101101
"39": "{ return $0 + $1; }",
102102
"59": "{ Module.print(\"Got \" + $0); }"
103103
},
104-
"tableSize": 0,
105104
"declares": [
106105
"emscripten_asm_const_int"
107106
],

0 commit comments

Comments
 (0)