Backed out changeset 5cc570283ec2 (bug 1578031) for SM bustages complaining about OffsetGuardLimit CLOSED TREE
authorBogdan Tara <btara@mozilla.com>
Mon, 02 Sep 2019 13:56:51 +0300
changeset 491142 81799bad5b25f42b32ea10710435adfa7ff62026
parent 491141 b5153aa23fc789aa6d9e33f1088fae1e0124178e
child 491143 7a62d5742e64ee0927f488f9f6732f9a4587b492
push id94239
push userbtara@mozilla.com
push dateMon, 02 Sep 2019 10:58:19 +0000
treeherderautoland@7a62d5742e64 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1578031
milestone70.0a1
backs out5cc570283ec269c9415a87b8e2a2a1d070c88b0e
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
Backed out changeset 5cc570283ec2 (bug 1578031) for SM bustages complaining about OffsetGuardLimit CLOSED TREE
js/src/wasm/WasmTypes.h
--- a/js/src/wasm/WasmTypes.h
+++ b/js/src/wasm/WasmTypes.h
@@ -2325,17 +2325,17 @@ static_assert(HugeOffsetGuardLimit < UIN
 static const size_t OffsetGuardLimit = PageSize - MaxMemoryAccessSize;
 static const size_t GuardSize = PageSize;
 
 static_assert(MaxMemoryAccessSize < GuardSize,
               "Guard page handles partial out-of-bounds");
 static_assert(OffsetGuardLimit < UINT32_MAX,
               "checking for overflow against OffsetGuardLimit is enough.");
 
-static constexpr size_t GetOffsetGuardLimit(bool hugeMemory) {
+static constexpr bool GetOffsetGuardLimit(bool hugeMemory) {
 #ifdef WASM_SUPPORTS_HUGE_MEMORY
   return hugeMemory ? HugeOffsetGuardLimit : OffsetGuardLimit;
 #else
   return OffsetGuardLimit;
 #endif
 }
 
 // Return whether the given immediate satisfies the constraints of the platform