Bug 1277973 - Baldr: dynamically check system page size (r=bbouvier)
authorLuke Wagner <luke@mozilla.com>
Thu, 13 Oct 2016 13:17:55 -0500
changeset 317900 e6d2b67b35e5d0d48949b05c9599b892cf70ba68
parent 317899 9a51acfd009478c4120527415b2f5c15c59d14cb
child 317901 e29daffaaca4b5a22756d631eac82d920a701c62
push id33170
push usercbook@mozilla.com
push dateFri, 14 Oct 2016 10:37:07 +0000
treeherderautoland@0d101ebfd95c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbbouvier
bugs1277973
milestone52.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 1277973 - Baldr: dynamically check system page size (r=bbouvier) MozReview-Commit-ID: K9ylallCCWp
js/src/asmjs/WasmJS.cpp
--- a/js/src/asmjs/WasmJS.cpp
+++ b/js/src/asmjs/WasmJS.cpp
@@ -41,16 +41,19 @@ using namespace js::wasm;
 using mozilla::CheckedInt;
 using mozilla::IsNaN;
 using mozilla::IsSame;
 using mozilla::Nothing;
 
 bool
 wasm::HasCompilerSupport(ExclusiveContext* cx)
 {
+    if (gc::SystemPageSize() > wasm::PageSize)
+        return false;
+
     if (!cx->jitSupportsFloatingPoint())
         return false;
 
     if (!cx->jitSupportsUnalignedAccesses())
         return false;
 
     if (!wasm::HaveSignalHandlers())
         return false;