gecko-dev/js
Lars T Hansen 7d83d7c31e Bug 1676441 - Allow up to 65534 pages + test cases. r=rhunt
The purpose here is to allow wasm memories to use up to 65534 pages of
memory on 64-bit systems, if the underlying ArrayBuffer /
SharedArrayBuffer supports it.  (The remaining two pages remain out of
bounds until we can make the bounds checking limit 64 bits wide, and
some other things.)

As the max value of the heap limit field is 65536, this should unlock
memories above 2GB for all users who do not insist on actually
allocating all 4GB.

The changes here are:

* Parameterize everything properly: Get rid of hardcoded UINT32_MAX
  and INT32_MAX and similar where that is possible.  Some remain;
  comments have been added.
* Add guards for asm.js to remain at heap limit INT32_MAX forever
* Add guard for grow() methods to enforce the limit separately from
  arraybuffer code
* Add test cases and test infrastructure
* Clean up some transitional things that are no longer required, now
  that the underlying arraybuffer code is stable

Some parameters are turned into function calls now, but may become
constants again later.

Differential Revision: https://phabricator.services.mozilla.com/D96602
2021-03-16 06:48:25 +00:00
..
ductwork/debugger Bug 1654103: Standardize on Black for Python code in mozilla-central. 2020-10-26 18:34:53 +00:00
examples
public Bug 1678374 - Fix includes in js/public. r=jandem 2021-03-12 10:42:21 +00:00
src Bug 1676441 - Allow up to 65534 pages + test cases. r=rhunt 2021-03-16 06:48:25 +00:00
xpconnect Bug 1697904 - Migrate the JIT spectre mitigation prefs to StaticPrefs. r=jandem 2021-03-15 22:20:44 +00:00
app.mozbuild Bug 1679938 - Don't recurse the build into mfbt for projects that don't need it. r=firefox-build-system-reviewers,mhentges 2020-12-01 23:52:03 +00:00
ffi.configure Bug 1654103: Standardize on Black for Python code in mozilla-central. 2020-10-26 18:34:53 +00:00
moz.build Bug 1654103: Standardize on Black for Python code in mozilla-central. 2020-10-26 18:34:53 +00:00
moz.configure Bug 1693912 - Renumber SIMD instructions based on final spec. r=rhunt 2021-03-12 17:23:54 +00:00
sub.configure Bug 1654103: Standardize on Black for Python code in mozilla-central. 2020-10-26 18:34:53 +00:00