gecko-dev/js
Nicolas B. Pierron d7d6caf0fa Bug 1719194 part 5 - Reorganize the previous parse cache to hide internals. r=arai
This patch does 2 things:
 - It moves the closedOverBindings out of the cachedGCThings_.
 - It hides the ScriptIndex extracted from cachedGCThings_.

The cachedGCThings_ used to contain both the TaggedParserAtomIndex and the
ScriptIndex as a TaggedScriptThingIndex. These 2 indexes are referring to data
which are not the same sources. The TaggedParserAtomIndex are indexes in the
parseAtom table, while the ScriptIndex are either newly allocated or reference
to an existing Stencil which is used as input.

Thus, the closedOverBindings_ are moved away of the cachedGCThings_ to highlight
that these are not indexes into an existing Stencil, but references to the
CompilationState.

As the ScriptIndex contained in the cachedGCThings_ are not valid for the
FullParseHandler, the ScriptIndex returned value is now hidden under private
functions, and the function index is used as a replacement. This way, the
ScriptIndex reference should not leak in the FullParseHandler, thus avoiding
confusion.

Differential Revision: https://phabricator.services.mozilla.com/D120635
2021-08-03 12:03:00 +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 Backed out 4 changesets (bug 1721686) for wasm related spidermonkey failures. CLOSED TREE 2021-07-30 20:01:06 +03:00
src Bug 1719194 part 5 - Reorganize the previous parse cache to hide internals. r=arai 2021-08-03 12:03:00 +00:00
xpconnect Bug 1722718 - [xpconnect] Allow Javascript to print to stderr. r=kmag 2021-07-29 07:17:07 +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 1694884 - Fail configure when using --*-system-* options with a bootstrapped sysroot. r=firefox-build-system-reviewers,mhentges 2021-07-16 20:51:27 +00:00
moz.build Bug 1708739 - Move WeakMap APIs to new public header r=yulia 2021-05-01 12:10:14 +00:00
moz.configure Backed out 4 changesets (bug 1721686) for wasm related spidermonkey failures. CLOSED TREE 2021-07-30 20:01:06 +03:00
sub.configure Bug 1654103: Standardize on Black for Python code in `mozilla-central`. 2020-10-26 18:34:53 +00:00