tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

utility.js (421B)


      1 // Assert that we get a useful amount of memory for memory64 on tier-1 64-bit
      2 // systems with our primary compilers.
      3 
      4 // Only 64-bit systems
      5 if (getBuildConfiguration("pointer-byte-size") != 8) {
      6    quit(0);
      7 }
      8 
      9 // MIPS64 tops out below 2GB
     10 if (getBuildConfiguration("mips64")) {
     11    quit(0);
     12 }
     13 
     14 var eightGB = 8 * 1024 * 1024 * 1024;
     15 var pageSize = 65536;
     16 assertEq(wasmMaxMemoryPages("i64") >= eightGB / pageSize, true);