Commit Graph

71466 Commits

Author SHA1 Message Date
Gurzau Raul
ef6c54db66 Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-06-27 01:01:13 +03:00
Gurzau Raul
24d0e8e2ba Merge inbound to mozilla-central. a=merge 2019-06-27 00:54:09 +03:00
Ted Campbell
1a7e616897 Bug 1471062 - Avoid storing SharedScriptData metadata for empty arrays. r=jandem
If optional arrays of SharedScriptData are empty, avoid storing their
offset in order to save memory. This is done by deduplicating offsets
and storing this variably-sized set of offsets as a trailing array. A
uint32_t for each non-empty array. These offsets are analogous to the
array length we would naively consider storing but with careful encoding
for performance.

Differential Revision: https://phabricator.services.mozilla.com/D34791

--HG--
extra : moz-landing-system : lando
2019-06-26 21:07:00 +00:00
Ted Campbell
83d19349e9 Bug 1471062 - Add SharedScriptData::flags. r=jandem
Add a flag into the byte array area. It is inserted before code() so it
will be at a fixed offset once atoms are removed. This will be used to
store flags about optional trailing arrays.

Differential Revision: https://phabricator.services.mozilla.com/D34789

--HG--
extra : moz-landing-system : lando
2019-06-26 21:05:19 +00:00
Ted Campbell
e3491853b7 Bug 1471062 - Remove the PrivateScriptData::PackedSpan mechanism. r=jandem
Now that PrivateScriptData contains a single array, the PackedSpan
mechanism for packing multiple trailing arrays can be removed.

Differential Revision: https://phabricator.services.mozilla.com/D35817

--HG--
extra : moz-landing-system : lando
2019-06-26 20:50:17 +00:00
Ted Campbell
1c0cf73eef Bug 1471062 - Move resumeOffsets/scopeNotes/tryNotes to SharedScriptData. r=jandem
These arrays contain only relocatable, cloneable data and should be made
shareable. The API they now expose in SharedScriptData uses Span.

Differential Revision: https://phabricator.services.mozilla.com/D34790

--HG--
extra : moz-landing-system : lando
2019-06-26 20:50:03 +00:00
Ted Campbell
5f5b082297 Bug 1471062 - Pad source notes to target alignment. r=jandem
Pad the source notes with SRC_NULL such that the code and notes arrays
together maintain uint32_t alignment. This is will later be used to add
optional trailing arrays with uint32_t alignment. The allocator would
already be rounding up our allocation so actually memory usage should be
neutral.

Differential Revision: https://phabricator.services.mozilla.com/D34788

--HG--
extra : moz-landing-system : lando
2019-06-26 20:49:43 +00:00
Ted Campbell
04085d857f Bug 1471062 - Add SharedScriptData::offsetToPointer. r=jandem
Make access to trailing arrays more consistent with other data
structures and better encapsulate the reinterpret_casts.

Differential Revision: https://phabricator.services.mozilla.com/D34787

--HG--
extra : moz-landing-system : lando
2019-06-26 18:42:35 +00:00
Narcis Beleuzu
255b52c321 Backed out 2 changesets (bug 1558971, bug 1555464) for SM bustages on ecma262-issue-1461.js . CLOSED TREE
Backed out changeset 8227f5fbbe20 (bug 1555464)
Backed out changeset 36683eb4d0db (bug 1558971)
2019-06-26 19:55:40 +03:00
Ted Campbell
fdabbcfb9a Bug 1471062 - Make heap-analysis/byteSize-of-scripts jit-test more complex r=jandem,arai
As PrivateScriptData contains less data, we need to make this test have
more complicated functions so that the test is not sensistive to
allocator rounding. This also removes the binjs variant of test until
they next time they are regenerated.

Differential Revision: https://phabricator.services.mozilla.com/D35840

--HG--
extra : moz-landing-system : lando
2019-06-26 15:36:43 +00:00
Jason Orendorff
1c562e6022 Bug 1555464 - Part 2: Enable fields by default in the JS shell. r=khyperia
Differential Revision: https://phabricator.services.mozilla.com/D34639

--HG--
extra : moz-landing-system : lando
2019-06-26 04:43:05 +00:00
Jason Orendorff
e0a435b1bb Bug 1558971 - Enable the await fix by default in the JS shell. r=khyperia
Depends on D35478

Differential Revision: https://phabricator.services.mozilla.com/D35978

--HG--
extra : moz-landing-system : lando
2019-06-26 15:53:43 +00:00
Jan de Mooij
bf66e7b740 Bug 1560432 - Remove unused NSPR header from vm/Time.cpp. r=sfink
Gary noticed we can't build without NSPR on Windows due to this unused #include
inside #ifdef XP_WIN. This patch fixes the build.

Differential Revision: https://phabricator.services.mozilla.com/D35494

--HG--
extra : moz-landing-system : lando
2019-06-26 15:22:27 +00:00
Iain Ireland
3847b9b0b4 Bug 1559072: MIPS fixes r=djvj
Depends on D35549

Differential Revision: https://phabricator.services.mozilla.com/D35550

--HG--
extra : moz-landing-system : lando
2019-06-25 15:58:59 +00:00
Iain Ireland
c55e3c9fab Bug 1559072: Revert GDB python bindings to old boxing format r=sfink
Depends on D35548

Differential Revision: https://phabricator.services.mozilla.com/D35549

--HG--
extra : moz-landing-system : lando
2019-06-25 18:06:41 +00:00
Iain Ireland
29dc9fe2ea Bug 1559072: Revert Rust bindings to old boxing format r=djvj
Depends on D35547

Differential Revision: https://phabricator.services.mozilla.com/D35548

--HG--
extra : moz-landing-system : lando
2019-06-25 17:11:15 +00:00
Iain Ireland
5cd03cc9d2 Bug 1559072: Revert to old boxing format r=djvj
Differential Revision: https://phabricator.services.mozilla.com/D35547

--HG--
extra : moz-landing-system : lando
2019-06-25 17:34:50 +00:00
Csoregi Natalia
2c0114f8c7 Backed out 3 changesets (bug 1557343) for bustages on Debugger.h. CLOSED TREE
Backed out changeset 70040a80a4d7 (bug 1557343)
Backed out changeset a9de28d699a7 (bug 1557343)
Backed out changeset 1663fcb7bfd7 (bug 1557343)
2019-06-26 22:05:21 +03:00
Jim Blandy
4580d11ff7 Bug 1557343: Gather the code to manage the association between DebuggerFrames and AbstractGeneratorObjects. r=jorendorff
Merge Debugger::addGeneratorFrame into DebuggerFrame::setGenerator, and expand
the role of clearGenerator to fully undo the effect of setGenerator.

The association between a Debugger.Frame referring to a generator or async call
and the underlying generator object must be recorded in five separate places, as
a transaction: either all or present, or none are present. To ensure this is
true, this patch places sole responsibility for emplacing all those relations in
a single function (setGenerator), with another function to tear down those
relations (clearGenerator) as its inverse/antidote/complement/antagonist (in the
anatomical sense)/what-have-you.

Actually, when a Debugger.Frame is GC'd, we cannot reliably undo some of the
connections, and in fact can let the GC take care of those for us, so the
tear-down function clearGenerator is split into two overloads, one which is
suitable for use from a finalizer and the other which takes care of the entire
task.

Differential Revision: https://phabricator.services.mozilla.com/D35607

--HG--
extra : moz-landing-system : lando
2019-06-26 18:18:32 +00:00
Jim Blandy
e76592d50e Bug 1557343: Replace the sole use of DebuggerWeakMap::removeIf with its definition. r=jorendorff
Later in this patch series, we will be gathering up all the code to manage the
association between DebuggerFrame and AbstractGeneratorFrame objects into a pair
of functions, one to establish a relation and the other to tear it down. The
removeif method combines iteration and entry removal, but we would rather have
entry removal live next to the code that tears down the rest of the association.

In preparation for that, this changeset replaces the sole use of removeIf with
its (not very large) definition, so that the entry removal can be more readily
moved into another function.

Differential Revision: https://phabricator.services.mozilla.com/D35606

--HG--
extra : moz-landing-system : lando
2019-06-26 18:18:23 +00:00
Jim Blandy
0349206743 Bug 1557343: Move AutoRealm outside addGeneratorFrame. r=jorendorff
Without this patch, addGeneratorFrame may be called from any realm, and enters
the debugger's realm to call DebuggerFrame::setGenerator. However, we would like
to merge addGeneratorFrame and setGenerator, and call the combined from various
points which are already in the debugger's realm, so it would be a little nicer
to simply make the function assume it is called from the debugger's realm.

Differential Revision: https://phabricator.services.mozilla.com/D35605

--HG--
extra : moz-landing-system : lando
2019-06-26 18:18:20 +00:00
Nicolas B. Pierron
a27dde9915 Bug 1466160 - assertRecoveredOnBailout needs controlled GC environment when expecting compilation results. r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D36063

--HG--
extra : moz-landing-system : lando
2019-06-26 17:29:18 +00:00
Jon Coppeard
22952620f8 Bug 1560931 - Set JS engine low memory state based on memory pressure notifications r=smaug
Update the memory pressure observers for main thread and workers to call the new JS API to set/clear the low memory state.

Differential Revision: https://phabricator.services.mozilla.com/D35682
2019-06-24 18:24:47 +01:00
Jon Coppeard
ca04a00e08 Bug 1560931 - Add low memory state API and use it to restrict max nursery size r=sfink
Add a lowMemoryState field to GCRuntime and an API set set it.  Use it to restict the nursery size when resizing the nursery.

Differential Revision: https://phabricator.services.mozilla.com/D35680
2019-06-24 18:23:52 +01:00
Jason Orendorff
8e2b478fcc Bug 1560412 - A jit-test for setImmutablePrototype with scripted proxies. r=jwalden
Differential Revision: https://phabricator.services.mozilla.com/D35478

--HG--
extra : moz-landing-system : lando
2019-06-26 05:20:40 +00:00
Jason Orendorff
b50452e1f5 Bug 1559269 - Remove preliminary TokenStream support for private fields. r=khyperia
Differential Revision: https://phabricator.services.mozilla.com/D35532

--HG--
extra : moz-landing-system : lando
2019-06-26 04:40:34 +00:00
yulia
de6d72c152 Bug 1515221 - remove GeneralParser::thisForCtor() r=khyperia
Differential Revision: https://phabricator.services.mozilla.com/D35581

--HG--
extra : moz-landing-system : lando
2019-06-24 15:21:43 +00:00
arthur.iakab
785bee02e8 Merge mozilla-central to mozilla-inbound 2019-06-26 01:09:31 +03:00
Nicolas B. Pierron
a1b6779f72 Bug 1559461 - gdb unwinder: Lookup JIT memory using ::execMemory. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D35062

--HG--
extra : moz-landing-system : lando
2019-06-25 16:39:31 +00:00
Mihai Alexandru Michis
8712dcd6e4 Backed out changeset 00b675dfb3de (bug 1559461) for causing linting failures. CLOSED TREE 2019-06-25 17:25:22 +03:00
Nicolas B. Pierron
81b33d5e07 Bug 1559462 - gdb unwinder: Fix lookup of frame name by prefixing with FrameType::. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D35063

--HG--
extra : moz-landing-system : lando
2019-06-25 14:20:16 +00:00
Nicolas B. Pierron
1af27256eb Bug 1559461 - gdb unwinder: Lookup JIT memory using ::execMemory. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D35062

--HG--
extra : moz-landing-system : lando
2019-06-25 13:56:57 +00:00
Jon Coppeard
1a625b6d2a Bug 1561296 - Fix occurences of gray spelled as grey r=allstarschh DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D35804
2019-06-25 15:08:53 +01:00
Ciure Andrei
7e158713cf Merge inbound to mozilla-central. a=merge 2019-06-25 12:39:48 +03:00
Kris Maglione
e9aa7e2899 Bug 1559500: Remove unused async subscriptloader functionality. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D35086

--HG--
extra : rebase_source : ddef79974de06ef8c7646b60fe094bef1b429661
extra : amend_source : 7d39f9c83ccd169fa1d95f7d691bcaa1022d5f18
2019-06-14 14:19:41 -07:00
Jon Coppeard
fb607e89b8 Bug 1395509 - Track malloc memory used by wasm objects, part 1 r=luke
This adds tracking of malloc memory to WasmInstanceObject, WasmGlobalObject, WasmMemoryObject and ResolveResponseClosure (the straightforward cases).

Differential Revision: https://phabricator.services.mozilla.com/D35485
2019-06-20 15:19:18 -07:00
Jon Coppeard
532b9e4484 Bug 1395509 - Add FreeOp methods to deal with releasing RefCounted types r=sfink
Differential Revision: https://phabricator.services.mozilla.com/D35484
2019-06-20 15:17:06 -07:00
Andrea Marchesini
872502eaf3 Bug 1560040 - Introduce 2 new URL-Classifier features to annotate and block social trackers, r=dimi
Differential Revision: https://phabricator.services.mozilla.com/D35421

--HG--
extra : moz-landing-system : lando
2019-06-22 16:53:50 +00:00
Paul Bone
5e2fecfbf1 Bug 1555101 - Raise the phase limit for GC telemetry to 73 r=chutten,jonco
Differential Revision: https://phabricator.services.mozilla.com/D33136

--HG--
extra : moz-landing-system : lando
2019-06-12 06:43:43 +00:00
Jeff Walden
5a7cce5fce Bug 1557193 - Enable the assertion in testScriptSourceCompression.cpp verifying that script source was, in fact, compressed off-thread synchronously. r=arai,jonco,sfink
Differential Revision: https://phabricator.services.mozilla.com/D33890

--HG--
extra : moz-landing-system : lando
2019-06-25 02:31:44 +00:00
Kristen Wright
dadb1f6f65 Bug 1539270 Part 2: Runtime hook to expose the helper thread dispatch method to js r=sfink
Created a hook in Runtime to expose the helper thread dispatch method to js, which is set by XPCJSRUntime::init.

Differential Revision: https://phabricator.services.mozilla.com/D27818

--HG--
extra : moz-landing-system : lando
2019-06-21 20:38:02 +00:00
Kristen Wright
9f4f6add03 Bug 1539270 Part 1: Add HelperThreadPool & HelperThreadTaskHandler classes and their initialization/shutdown process to manage an nsThreadPool r=mccr8,froydnj
Added HelperThreadPool & HelperThreadTaskHandler classes to hold and manage an nsThreadPool. Initialized thread pool in XPCJSRuntime.

Differential Revision: https://phabricator.services.mozilla.com/D27817

--HG--
extra : moz-landing-system : lando
2019-06-24 22:29:18 +00:00
Dorel Luca
d85302a490 Backed out 3 changesets (bug 1559975) for Build bustage. CLOSED TREE
Backed out changeset bdb15150dc59 (bug 1559975)
Backed out changeset 16efad631029 (bug 1559975)
Backed out changeset d72bc2063456 (bug 1559975)
2019-06-24 23:42:34 +03:00
Bastien Abadie
be17d14cb5 Bug 1559975 - Fix python3 lint issues on js/src, r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D35243

--HG--
extra : moz-landing-system : lando
2019-06-24 16:55:05 +00:00
Jan de Mooij
a261b8dc01 Bug 1551499 - Support Baseline Interpreter code in the profiler. r=djvj
Because the return address cannot be used to uniquely identify script/pc, this
is unfortunately quite different from what we do for Baseline/Ion code.

The strategy is as follows:

* When the profiler is enabled, ensure each JitScript has a pointer to the
  profile string (released when the script is finalized).

* The BaselineInterpreter code is registered with the JitcodeMap.

* The profiler code treats interpreter frames like C++ Interpreter frames,
  instead of doing the return address based mapping.

Differential Revision: https://phabricator.services.mozilla.com/D31052

--HG--
extra : moz-landing-system : lando
2019-06-21 16:13:48 +00:00
shindli
c0ca77697c Merge inbound to mozilla-central. a=merge 2019-06-21 12:34:14 +03:00
kriswright
c3a19591ea Bug 1559821 - 2: switch parse task checks for new parse task pointer, cleanup instances of HelperThread() leftover r=jonco
Removed helperthread_ and its associated functions since they are no longer used & cleaned up a few missed checks that used it. Changed helperThread()->parseTask() checks to look for cx->parseTask() instead.

Differential Revision: https://phabricator.services.mozilla.com/D35491

--HG--
extra : moz-landing-system : lando
2019-06-20 23:08:59 +00:00
kriswright
e1dfee9d67 Bug 1559821 - teach JSContext about parse tasks r=jonco
Added a ParseTask pointer to JSContext, set/removed during ParseTask::runTask

Differential Revision: https://phabricator.services.mozilla.com/D35365

--HG--
extra : moz-landing-system : lando
2019-06-20 22:43:59 +00:00
Jason Orendorff
62e9d98923 Bug 1560206 - Part 3: Add entries to jstests.list for new failing test262 tests. r=khyperia
Differential Revision: https://phabricator.services.mozilla.com/D35444

--HG--
extra : moz-landing-system : lando
2019-06-20 22:53:14 +00:00
Jason Orendorff
cc28c9817f Bug 1560206 - Part 2: Update test262. r=khyperia
Depends on D35442

Differential Revision: https://phabricator.services.mozilla.com/D35443

--HG--
rename : js/src/tests/test262/built-ins/TypedArray/stability.js => js/src/tests/test262/built-ins/TypedArray/prototype/sort/stability.js
rename : js/src/tests/test262/language/module-code/instn-resolve-err-syntax_FIXTURE.js => js/src/tests/test262/language/module-code/instn-resolve-err-syntax-1_FIXTURE.js
rename : js/src/tests/test262/language/module-code/instn-resolve-err-reference_FIXTURE.js => js/src/tests/test262/language/module-code/instn-resolve-err-syntax-2_FIXTURE.js
rename : js/src/tests/test262/language/white-space/S7.2_A4.3_T1.js => js/src/tests/test262/language/white-space/comment-multi-form-feed.js
rename : js/src/tests/test262/language/white-space/S7.2_A4.1_T1.js => js/src/tests/test262/language/white-space/comment-multi-horizontal-tab.js
rename : js/src/tests/test262/language/white-space/S7.2_A4.5_T1.js => js/src/tests/test262/language/white-space/comment-multi-nbsp.js
rename : js/src/tests/test262/language/white-space/S7.2_A4.4_T1.js => js/src/tests/test262/language/white-space/comment-multi-space.js
rename : js/src/tests/test262/language/white-space/S7.2_A4.2_T1.js => js/src/tests/test262/language/white-space/comment-multi-vertical-tab.js
rename : js/src/tests/test262/language/white-space/S7.2_A3.3_T1.js => js/src/tests/test262/language/white-space/comment-single-form-feed.js
rename : js/src/tests/test262/language/white-space/S7.2_A3.1_T1.js => js/src/tests/test262/language/white-space/comment-single-horizontal-tab.js
rename : js/src/tests/test262/language/white-space/S7.2_A3.5_T1.js => js/src/tests/test262/language/white-space/comment-single-nbsp.js
rename : js/src/tests/test262/language/white-space/S7.2_A3.4_T1.js => js/src/tests/test262/language/white-space/comment-single-space.js
rename : js/src/tests/test262/language/white-space/S7.2_A3.2_T1.js => js/src/tests/test262/language/white-space/comment-single-vertical-tab.js
rename : js/src/tests/test262/language/white-space/S7.2_A2.3_T1.js => js/src/tests/test262/language/white-space/string-form-feed.js
rename : js/src/tests/test262/language/white-space/S7.2_A2.1_T1.js => js/src/tests/test262/language/white-space/string-horizontal-tab.js
rename : js/src/tests/test262/language/white-space/S7.2_A2.5_T1.js => js/src/tests/test262/language/white-space/string-nbsp.js
rename : js/src/tests/test262/language/white-space/S7.2_A2.4_T1.js => js/src/tests/test262/language/white-space/string-space.js
rename : js/src/tests/test262/language/white-space/S7.2_A2.2_T1.js => js/src/tests/test262/language/white-space/string-vertical-tab.js
extra : moz-landing-system : lando
2019-06-20 20:31:58 +00:00