Bug 1511958 - Implement i64<>JavaScript’s BigInt conversions proposal (part 1, build system changes) r=wingo,bbouvier
authorAsumu Takikawa <asumu@igalia.com>
Thu, 29 Aug 2019 11:06:37 +0000
changeset 551434 d2072e34a3b169570acf05f7a6c26c25c93e68f4
parent 551433 f0e843f33a5ff8338d29db484ee2875d59d0f644
child 551435 16aa97b4ff64532bd443559663e80222abf70271
push id11865
push userbtara@mozilla.com
push dateMon, 02 Sep 2019 08:54:37 +0000
treeherdermozilla-beta@37f59c4671b3 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerswingo, bbouvier
bugs1511958
milestone70.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1511958 - Implement i64<>JavaScript’s BigInt conversions proposal (part 1, build system changes) r=wingo,bbouvier This is part 1 of a series of revs that split up D41710 into smaller revs. This rev just adds a compile-time flag for wasm BigInt to I64 conversion but does not use it anywhere, as its uses are for toggling features in subsequent revs. Differential Revision: https://phabricator.services.mozilla.com/D43177
js/moz.configure
--- a/js/moz.configure
+++ b/js/moz.configure
@@ -497,16 +497,31 @@ def default_wasm_reftypes(is_nightly):
 js_option('--enable-wasm-reftypes',
           default=default_wasm_reftypes,
           help='{Enable|Disable} WebAssembly reference types')
 
 set_config('ENABLE_WASM_REFTYPES', depends_if('--enable-wasm-reftypes')(lambda x: True))
 set_define('ENABLE_WASM_REFTYPES', depends_if('--enable-wasm-reftypes')(lambda x: True))
 
 
+# Support for WebAssembly I64/BigInt conversion
+# ===========================================================================
+
+@depends(milestone.is_nightly)
+def default_wasm_bigint(is_nightly):
+    return is_nightly
+
+js_option('--enable-wasm-bigint',
+          default=default_wasm_bigint,
+          help='{Enable|Disable} WebAssembly I64/BigInt conversion')
+
+set_config('ENABLE_WASM_BIGINT', depends_if('--enable-wasm-bigint')(lambda x: True))
+set_define('ENABLE_WASM_BIGINT', depends_if('--enable-wasm-bigint')(lambda x: True))
+
+
 # Support for WebAssembly GC.
 # ===========================
 
 @depends(milestone.is_nightly, '--enable-wasm-reftypes')
 def default_wasm_gc(is_nightly, reftypes):
     if reftypes and is_nightly:
         return True