Bug 1563241: Make Spidermonkey's testing intrinsic wasmBulkMem dependent on shared memory too; r=lth a=beta-fix DEVEDITION_69_0b2_BUILD1 DEVEDITION_69_0b2_RELEASE
authorBenjamin Bouvier <benj@benj.me>
Thu, 04 Jul 2019 06:23:27 +0000 (2019-07-04)
changeset 540868 88e401857465b6f1e97b06b2d0f5be23a8d2e911
parent 540867 ebb510a784b8c1204db1d6a6cc1c5b6ca86e081e
child 540869 e5a13fd2af20c4add208dbfb6c6249fd82b49372
push id11530
push userarchaeopteryx@coole-files.de
push dateThu, 04 Jul 2019 15:23:56 +0000 (2019-07-04)
treeherdermozilla-beta@88e401857465 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerslth, beta-fix
bugs1563241
milestone69.0
Bug 1563241: Make Spidermonkey's testing intrinsic wasmBulkMem dependent on shared memory too; r=lth a=beta-fix Differential Revision: https://phabricator.services.mozilla.com/D36774
js/src/builtin/TestingFunctions.cpp
--- a/js/src/builtin/TestingFunctions.cpp
+++ b/js/src/builtin/TestingFunctions.cpp
@@ -725,17 +725,18 @@ static bool WasmBulkMemSupported(JSConte
 #ifdef ENABLE_WASM_BULKMEM_OPS
   bool isSupported = true;
 #  ifdef ENABLE_WASM_CRANELIFT
   if (cx->options().wasmCranelift()) {
     isSupported = false;
   }
 #  endif
 #else
-  bool isSupported = false;
+  bool isSupported =
+      cx->realm()->creationOptions().getSharedMemoryAndAtomicsEnabled();
 #endif
   args.rval().setBoolean(isSupported);
   return true;
 }
 
 static bool WasmReftypesEnabled(JSContext* cx, unsigned argc, Value* vp) {
   CallArgs args = CallArgsFromVp(argc, vp);
   args.rval().setBoolean(wasm::HasReftypesSupport(cx));