Skip to content

Commit e4ba37c

Browse files
authored
Re-enable metadce tests (#12401)
Also remove final reference to __growWasmMemory which binaryen no longer generates.
1 parent b4b37c1 commit e4ba37c

18 files changed

+4
-22
lines changed

src/settings_internal.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ var TARGET_NOT_SUPPORTED = 0x7FFFFFFF;
154154
// Wasm backend symbols that are considered system symbols and don't
155155
// have the normal C symbol name mangled applied (== prefix with an underscore)
156156
// (Also implicily on this list is any function that starts with string "dynCall_")
157-
var WASM_SYSTEM_EXPORTS = ['setTempRet0', 'getTempRet0', 'stackAlloc', 'stackSave', 'stackRestore', '__growWasmMemory'];
157+
var WASM_SYSTEM_EXPORTS = ['setTempRet0', 'getTempRet0', 'stackAlloc', 'stackSave', 'stackRestore'];
158158

159159
// Internal: value of -flto argument (either full or thin)
160160
var LTO = 0;

tests/other/metadce/hello_libcxx_O2.exports

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
__data_end
22
__errno_location
3-
__growWasmMemory
43
__indirect_function_table
54
__wasm_call_ctors
65
dynCall_iiiiiijj

tests/other/metadce/hello_libcxx_O2_fexceptions.exports

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ __cxa_can_catch
33
__cxa_is_pointer_type
44
__data_end
55
__errno_location
6-
__growWasmMemory
76
__indirect_function_table
87
__wasm_call_ctors
98
dynCall_iiiiiijj

tests/other/metadce/hello_libcxx_O2_fexceptions_DEMANGLE_SUPPORT.exports

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ __cxa_demangle
44
__cxa_is_pointer_type
55
__data_end
66
__errno_location
7-
__growWasmMemory
87
__indirect_function_table
98
__wasm_call_ctors
109
dynCall_iiiiiijj

tests/other/metadce/hello_world.exports

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
__data_end
22
__errno_location
3-
__growWasmMemory
43
__indirect_function_table
54
__wasm_call_ctors
65
dynCall_jiji

tests/other/metadce/hello_world.funcs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ $__emscripten_stdout_seek
55
$__errno_location
66
$__fflush_unlocked
77
$__fwritex
8-
$__growWasmMemory
98
$__lock
109
$__lockfile
1110
$__lshrti3

tests/other/metadce/hello_world_O1.exports

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
__data_end
22
__errno_location
3-
__growWasmMemory
43
__indirect_function_table
54
__wasm_call_ctors
65
dynCall_jiji

tests/other/metadce/hello_world_O1.funcs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ $__emscripten_stdout_close
22
$__emscripten_stdout_seek
33
$__errno_location
44
$__fwritex
5-
$__growWasmMemory
65
$__lockfile
76
$__original_main
87
$__overflow

tests/other/metadce/hello_world_O2.exports

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
__data_end
22
__errno_location
3-
__growWasmMemory
43
__indirect_function_table
54
__wasm_call_ctors
65
dynCall_jiji

tests/other/metadce/hello_world_O2.funcs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ $__emscripten_stdout_close
22
$__emscripten_stdout_seek
33
$__errno_location
44
$__fwritex
5-
$__growWasmMemory
65
$__overflow
76
$__stdio_write
87
$__towrite

tests/other/metadce/minimal.exports

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
__data_end
22
__errno_location
3-
__growWasmMemory
43
__indirect_function_table
54
__wasm_call_ctors
65
add

tests/other/metadce/minimal.funcs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
$__errno_location
22
$__fflush_unlocked
3-
$__growWasmMemory
43
$__lock
54
$__lockfile
65
$__ofl_lock

tests/other/metadce/minimal_O1.exports

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
__data_end
22
__errno_location
3-
__growWasmMemory
43
__indirect_function_table
54
__wasm_call_ctors
65
add

tests/other/metadce/minimal_O1.funcs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
$__errno_location
2-
$__growWasmMemory
32
$__wasm_call_ctors
43
$add
54
$stackAlloc

tests/other/metadce/minimal_O2.exports

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
__data_end
22
__errno_location
3-
__growWasmMemory
43
__indirect_function_table
54
__wasm_call_ctors
65
add

tests/other/metadce/minimal_O2.funcs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
$__errno_location
2-
$__growWasmMemory
32
$__wasm_call_ctors
43
$add
54
$stackAlloc
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
memory
1+

tests/test_other.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6650,11 +6650,10 @@ def strip_numeric_suffixes(funcname):
66506650
data = '\n'.join(funcs) + '\n'
66516651
self.assertFileContents(filename, data)
66526652

6653-
@disabled("disabled to allow https://github.com/WebAssembly/binaryen/pull/3180 to roll")
66546653
@parameterized({
66556654
'O0': ([], [], ['waka'], 743), # noqa
6656-
'O1': (['-O1'], [], ['waka'], 330), # noqa
6657-
'O2': (['-O2'], [], ['waka'], 312), # noqa
6655+
'O1': (['-O1'], [], ['waka'], 303), # noqa
6656+
'O2': (['-O2'], [], ['waka'], 265), # noqa
66586657
# in -O3, -Os and -Oz we metadce, and they shrink it down to the minimal output we want
66596658
'O3': (['-O3'], [], [], 62), # noqa
66606659
'Os': (['-Os'], [], [], 62), # noqa
@@ -6664,7 +6663,6 @@ def strip_numeric_suffixes(funcname):
66646663
def test_metadce_minimal(self, *args):
66656664
self.run_metadce_test('minimal.c', *args)
66666665

6667-
@disabled("disabled to allow https://github.com/WebAssembly/binaryen/pull/3180 to roll")
66686666
@parameterized({
66696667
'noexcept': (['-O2'], [], ['waka'], 127740), # noqa
66706668
# exceptions increases code size significantly
@@ -6679,7 +6677,6 @@ def test_metadce_cxx(self, *args):
66796677
# lead to different inlining decisions which add or remove a function
66806678
self.run_metadce_test('hello_libcxx.cpp', *args, check_funcs=False)
66816679

6682-
@disabled("disabled to allow https://github.com/WebAssembly/binaryen/pull/3180 to roll")
66836680
@parameterized({
66846681
'O0': ([], [], ['waka'], 12726), # noqa
66856682
'O1': (['-O1'], [], ['waka'], 3511), # noqa

0 commit comments

Comments
 (0)