Bug 1628321 - Ship support for WebAssembly multi-value proposal r=lth

The configure option is now --disable-wasm-multi-value, rather than
--enable-wasm-multi-value.

Differential Revision: https://phabricator.services.mozilla.com/D72307
This commit is contained in:
Andy Wingo 2020-04-27 11:12:06 +00:00
Родитель d262ef72aa
Коммит a9303d9bd2
2 изменённых файлов: 8 добавлений и 50 удалений

Просмотреть файл

@ -599,17 +599,16 @@ set_define('WASM_PRIVATE_REFTYPES', depends_if('--enable-wasm-private-reftypes')
# Do not remove until Cranelift supports multi-value.
# =====================================================
@depends(milestone.is_nightly)
def default_wasm_multi_value(is_nightly):
return is_nightly
js_option('--disable-wasm-multi-value',
help='Disable WebAssembly multi-value blocks and function calls')
js_option('--enable-wasm-multi-value',
default=default_wasm_multi_value,
help='{Enable|Disable} support for the experimental WebAssembly '
'multi-value proposal')
@depends('--disable-wasm-multi-value')
def enable_wasm_multi_value(value):
if value:
return True
set_config('ENABLE_WASM_MULTI_VALUE', depends_if('--enable-wasm-multi-value')(lambda x: True))
set_define('ENABLE_WASM_MULTI_VALUE', depends_if('--enable-wasm-multi-value')(lambda x: True))
set_config('ENABLE_WASM_MULTI_VALUE', enable_wasm_multi_value)
set_define('ENABLE_WASM_MULTI_VALUE', enable_wasm_multi_value)
# Support for WebAssembly shared memory and atomics.

Просмотреть файл

@ -1,41 +0,0 @@
[multi-value.any.html]
[multiple return values from wasm to js]
expected:
if not nightly_build: FAIL
[multiple return values inside wasm]
expected:
if not nightly_build: FAIL
[multiple return values from js to wasm]
expected:
if not nightly_build: FAIL
[multi-value.any.js]
[multiple return values from wasm to js]
expected:
if not nightly_build: FAIL
[multiple return values inside wasm]
expected:
if not nightly_build: FAIL
[multiple return values from js to wasm]
expected:
if not nightly_build: FAIL
[multi-value.any.worker.html]
[multiple return values from wasm to js]
expected:
if not nightly_build: FAIL
[multiple return values inside wasm]
expected:
if not nightly_build: FAIL
[multiple return values from js to wasm]
expected:
if not nightly_build: FAIL