Bug 1528294 - Wasm: Enable bulk-memory-operations by default. r=lth

This commit enables the bulk-memory-operations feature by default. The config/
ifdef'ery is spared to allow for easier backouts if needed.

Differential Revision: https://phabricator.services.mozilla.com/D81012
This commit is contained in:
Ryan Hunt 2020-06-25 04:52:22 +00:00
parent c7ff3a979a
commit 34491c6ee8

View File

@ -511,17 +511,16 @@ set_define('JS_HAS_TYPED_OBJECTS', depends_if('--enable-typed-objects')(lambda x
# Support for WebAssembly bulk memory operations.
# =====================================================
@depends(milestone.is_nightly)
def default_wasm_bulk_memory(is_nightly):
return is_nightly
js_option('--disable-wasm-bulk-memory',
help='Disable WebAssembly bulk memory operators')
js_option('--enable-wasm-bulk-memory',
default=default_wasm_bulk_memory,
help='{Enable|Disable} WebAssembly bulk memory operators')
set_config('ENABLE_WASM_BULKMEM_OPS', depends_if('--enable-wasm-bulk-memory')(lambda x: True))
set_define('ENABLE_WASM_BULKMEM_OPS', depends_if('--enable-wasm-bulk-memory')(lambda x: True))
@depends('--disable-wasm-bulk-memory')
def enable_wasm_bulk_memory(value):
if value:
return True
set_config('ENABLE_WASM_BULKMEM_OPS', enable_wasm_bulk_memory)
set_define('ENABLE_WASM_BULKMEM_OPS', enable_wasm_bulk_memory)
# Support for WebAssembly reference types.
# =====================================================