Граф коммитов

66568 Коммитов

Автор SHA1 Сообщение Дата
Jesse Schwartzentruber f832b4022e Bug 1475573 - Create --enable-fuzzing debug build job for Android x86 firefox. r=nalexander,froydnj
Differential Revision: https://phabricator.services.mozilla.com/D2428

--HG--
extra : moz-landing-system : lando
2018-08-31 03:35:20 +00:00
Gurzau Raul 09fe34b331 Merge inbound to mozilla-central. a=merge 2018-08-31 00:49:36 +03:00
Jon Coppeard 3921ce61cc Bug 1486782 - Remove unnecessary includes of gc/Zone.h r=sfink 2018-08-30 20:10:21 +01:00
Jon Coppeard 0d4da8dae6 Bug 1486730 - Remove some unnecessary includes from js/src/frontend r=Waldo 2018-08-30 20:10:20 +01:00
Myk Melez 7978cd2fe4 Bug 1482810 - set COMPILE_FLAGS var to hide warnings for Rust crates r=chmanchester
In conjunction with the cc crate changes in https://github.com/alexcrichton/cc-rs/pull/342 (which I'll land in https://phabricator.services.mozilla.com/D4699), this hides warnings generated by C code in Rust crates (by removing warnings flags from CFLAGS when compiling Rust libraries).

MozReview-Commit-ID: 9CZgLGbWjbA

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

--HG--
extra : moz-landing-system : lando
2018-08-30 17:29:54 +00:00
Brian Hackett d2583e1176 Backed out changeset fc437d64c831 (bug 1486556) for breaking coordination between record/replay system and helper threads.
--HG--
extra : rebase_source : 6fd771863bd14d659661553667396458c9c24eec
2018-08-30 04:24:58 -10:00
Jon Coppeard 61e5b63a8e Bug 1485698 - Check for no module meta object during JIT analysis r=jandem 2018-08-30 19:38:27 +01:00
Jon Coppeard fcea90a450 Bug 1487384 - Remove unnecessary references to Runtime::gc in GCRuntime methods r=sfink 2018-08-30 17:51:53 +01:00
Brian Hackett 4a9125345e Bug 1486556 - Avoid unlocking the helper thread state lock after looking for tasks to perform, r=jandem.
--HG--
extra : rebase_source : eda9bd0e02be2e52c08b69c1c9c1dcfd263e232b
2018-08-29 16:43:52 -10:00
Jan de Mooij 6feb6ba772 Bug 1481793 part 5 - Use JSObject::nonCCWRealm instead of JSObject::deprecatedRealm in JSContext::enterRealmOf. r=luke 2018-08-30 09:27:10 +02:00
Ms2ger 49ce0e4018 Bug 1486383 - Fix relative paths in the jstests support for external scripts in wpt tests; r=bbouvier 2018-08-30 12:10:49 +02:00
arthur.iakab 044707fc78 Merge inbound to mozilla-central a=merge 2018-08-30 07:37:00 +03:00
Emilio Cobos Álvarez 75bea4ec60 Bug 1486623 - Skip less nodes when reporting memory, and report ShadowRoot's StyleSheets. r=bzbarsky
This moves all the node-specific reporting to nsIDocument.

OrphanReporter delegates all the reporting to that and then returns the sum of
all sizes, which is not ideal but was pre-existing.

Also, I moved the main mStyleSheets size reporting to DocumentOrShadowRoot for
it to be shared between document and ShadowRoot.

I'll add memory reporting for the computed stylesheet maps and such in the
ShadowRoot in a followup.

I went through all the XBL bindings, though it seems I could just use
GetBindingWithContent(), since according to:

  https://searchfox.org/mozilla-central/rev/55da592d85c2baf8d8818010c41d9738c97013d2/dom/xbl/nsXBLBinding.cpp#615

We don't allow multiple bindings to contribute anon content. Anyway it was the
same amount of code...

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

--HG--
extra : moz-landing-system : lando
2018-08-29 22:19:42 +00:00
arthur.iakab 32fbca3814 Merge inbound to mozilla-central a=merge 2018-08-30 00:56:06 +03:00
Carl Corcoran 7da8e04c87 Bug 1467736: Add support for DllBlocklist_Shutdown;r=aklotz
Differential Revision: https://phabricator.services.mozilla.com/D4544

--HG--
extra : moz-landing-system : lando
2018-08-29 18:49:49 +00:00
Cosmin Sabou 55bf096f3d Merge mozilla-inbound to mozilla-central. a=merge 2018-08-29 20:34:13 +03:00
André Bargull b82c20b28b Bug 1487023: Replace the self-hosted SameValue function with Object.is. r=mgaudet 2018-08-29 02:41:28 -07:00
arthur.iakab c9d7c4fa05 Merge mozilla-central to mozilla-inbound 2018-08-30 01:16:38 +03:00
Benjamin Bouvier 3323938896 Bug 1486829: Make a proper enum class out of jit::FrameType; r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D4462

--HG--
extra : moz-landing-system : lando
2018-08-29 10:07:10 +00:00
Lars T Hansen d10bb30a7d Bug 1479794 - Do not expose Ref types outside the defining module. r=luke
For the time being, we do not want to expose struct types outside of
the module where they are defined, and so there must be restrictions
on how functions and global variables that traffic in struct types can
be used.

At the same time, intra-module uses of functions and globals that use
struct types must be allowed to the greatest extent possible.

Terminology: A function that takes a Ref parameter or returns a Ref
result is "exposed for Ref", as is a global of Ref type.  Anyref is OK
though, in all cases.

To keep it simple we have the following restrictions that can all be
checked statically.

 - Exported and imported functions cannot be exposed for Ref.

 - If the module has an exported or imported table then no function
   stored in that table by the module (by means of an element segment)
   can be exposed for Ref.

 - If the module has an exported or imported table then no
   call_indirect via that table may reference a type that is exposed
   for Ref.

 - An exported or imported global cannot be exposed for Ref.

Conversely,

 - If a module has a private table then it can contain private
   functions that are exposed for Ref and it is possible to call those
   functions via that table.

 - If a module has a private global then it can be exposed for ref.

Note that code generators can work around the restrictions by instead
using functions and globals that use anyref, and by using downcasts to
check that the types are indeed correct.  (Though the meaning of
downcast will change as the GC feature evolves.)

All the code implementing the restrictions is under an #ifdef so that
we can easily find it later; all the test cases testing the
restrictions are in a separate file.  Few existing tests needed to be
adapted, and none substantially.

--HG--
extra : rebase_source : 89fbbf9524dc02f627018d11861df3ef91de851b
2018-08-27 18:16:13 +02:00
Lars T Hansen 900878e741 Bug 1486553 - Only set .external on the table if necessary. r=luke
Previously we would unconditionally set the .external flag on a table
if it had an element segment, but we should only do this if the table
is initialized with an imported function and so may contain functions
from multiple instances.

--HG--
extra : rebase_source : b7712cedce26749768838f7213bf1574ef5baf48
2018-08-27 21:01:56 +02:00
Jon Coppeard 235348e9ef Bug 1486727 - Move some inline method defintions out of gc/Zone.h into new Zone-inl.h r=sfink 2018-08-29 13:23:56 +01:00
Benjamin Bouvier c7da43d2fc Bug 1486731: Guard test against profiling mode enabled; r=me on a CLOSED TREE
And also fix a build issue with the pre-declaration of ReadOnlyCompileOptions
in vm/TraceLogging.h;

--HG--
extra : rebase_source : bb17c13f370c1cef50f09370f4a5b5055dced909
2018-08-29 11:58:12 +02:00
Benjamin Bouvier f6e6cc5fcc Bug 1486731: wasm profiling: Don't look at FP's tagged bit in non-function call situations; r=luke
--HG--
extra : rebase_source : 7a7665b41ad3332aee4c4b7c9d9c8b8c1e677654
extra : amend_source : 06705b2fdab5e489f8c472ea41869e190042553f
2018-08-28 15:10:09 +02:00
Nicholas Nethercote fe34f19459 Bug 1486690 - Rename nsMemory::Clone() and remove unnecessary checks after it. r=glandium
The 'x' in the new name makes it clearer that it's infallible.

--HG--
extra : rebase_source : 51fd946c482befe8a8ca5bd88ecc967971f455da
2018-08-28 15:59:19 +10:00
Nicholas Nethercote 2fcd08a173 Bug 1486690 - Rename NS_str{,}dup and remove unnecessary checks after calls to them. r=glandium
The 'x' prefix makes it clearer that these are infallible.

A couple of nsJSID methods are now also infallible.

--HG--
extra : rebase_source : fcce44a00212d6d341afbf3827b31bd4f7355ad5
2018-08-28 15:58:54 +10:00
Nicholas Nethercote ac5efebb4b Bug 1486690 - Remove unnecessary checks after moz_xmalloc() calls. r=glandium
There are surprisingly many of them.

(Plus a couple of unnecessary checks after `new` calls that were nearby.)

--HG--
extra : rebase_source : 47b6d5d7c5c99b1b50b396daf7a3b67abfd74fc1
2018-08-28 15:56:01 +10:00
Tooru Fujisawa 1e093ed64e Bug 1328820 - Add documentation comment to Promise.h, AsyncFunction.h, and AsyncIteration.h r=anba DONTBUILD comment-only 2018-08-29 12:15:32 +09:00
Jeff Walden 64fceacad0 Bug 1486577 - Don't #include "js/CompilationAndEvaluation.h" in jsapi.h, minimizing the scope of that header and reducing translation-unit size of anything that needs JSAPI but doesn't need to compile/evaluate JavaScript. r=jandem
--HG--
extra : rebase_source : cd9a8becc15477bc5e24408159d4f061ec81c8b2
2018-08-24 22:51:49 -05:00
Jeff Walden 0dc91d3099 Bug 1486577 - Make all users of the various *CompileOptions classes #include "js/CompileOptions.h" so that nothing but that file has to know about these classes having a JS_PUBLIC_API on them, that would have to be present in forward-declarations. r=jandem
--HG--
extra : rebase_source : 432d66f1a88f85568510739917b7ab2871f22da6
2018-08-24 21:25:15 -05:00
Jeff Walden 4bdf4a3614 Bug 1486577 - Don't #include js/SourceBufferHolder.h in jsapi.h, and instead require users to do so -- a minor translation-unit size improvement for anyone who never has to use SourceBufferHolder other than by reference. r=jandem
--HG--
extra : rebase_source : df47aba0c7dac3fe80ab6ea1b9a34c7acc54850d
2018-08-24 21:01:58 -05:00
Jeff Walden f7361648b5 Bug 1486577 - Move compilation and evaluation APIs into a new public js/CompilationAndEvaluation.h header. r=jandem
--HG--
extra : rebase_source : b8ceac41b2b0c1682f8445d6ba8750eb29b27518
2018-08-24 14:55:28 -05:00
Jeff Walden 09a322c117 Bug 1486577 - Move of-thread compilation API into a new public js/OffThreadScriptCompilation.h header. r=jandem
--HG--
extra : rebase_source : d4062d59d4e76e22df29aa9dde504031e4e11dce
2018-08-24 14:44:10 -05:00
Jeff Walden f90686816a Bug 1486577 - Move script/function transcoding API into a new public js/Transcoding.h header. r=jandem
--HG--
extra : rebase_source : a0daf7931594e418b1a97ec48a3667d3dc74ff95
2018-08-24 14:44:04 -05:00
Jeff Walden da612e85ea Bug 1486577 - Move JS::SourceBufferHolder into a new public js/SourceBufferHolder.h header. r=jandem
--HG--
extra : rebase_source : 7d9b78cb427a76620c899df5a60c792f065cf7d0
2018-08-24 14:00:35 -05:00
Jeff Walden 3b35df4388 Bug 1486577 - Move all compile-options classes to a new public js/CompileOptions.h header. r=jandem
--HG--
extra : rebase_source : ed85d0769e262c7db920f7ea0d7c805c9741e2d4
2018-08-24 12:40:55 -05:00
Mike Hommey 1a6f5a62c7 Bug 1485759 - Pass --build-id=sha1 to the linker instead of --build-id. r=froydnj
BFD ld's --build-id means --build-id=sha1, but with lld it means
--build-id=fast. Both support the explicit --build-id=sha1, so use that.
Gold supports --build-id=sha1 too.
ld64, used for mac builds doesn't support neither --build-id=sha1 nor
--build-id.
2018-08-29 08:02:07 +09:00
Kris Maglione 93703861d1 Bug 1486182: Part 3 - Remove unused XPCOMUtils.enumerateCategoryEntries method. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D4280

--HG--
extra : rebase_source : 6e09e6c46cee8ebe0e942f7135408a5b075066d1
2018-08-24 17:20:50 -07:00
Kris Maglione b821d119a0 Bug 1486182: Part 2b - Update XPCOMUtils.enumerateCategoryEntries callers to use the category manager directly. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D4279

--HG--
extra : rebase_source : f57e09927871a23ed3c105325369e5c35ffd3d93
2018-08-24 17:05:41 -07:00
Kris Maglione 53f96aa226 Bug 1486182: Part 2a - Add Services.catMan getter for the category manager. r=mossop
This makes it much easier to update existing consumers of
XPCOMUtils.enumerateCategoryEntries to use the category manager directly.

It also, unfortunately, requires updating existing category manager consumers
to use the Services getter in order to avoid ESLint errors.

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

--HG--
extra : rebase_source : fb9fd9b21db80af472ff6250a2e9a35e8d538147
2018-08-24 22:13:57 -07:00
Dorel Luca c70ff33958 Backed out 2 changesets (bug 1476921) for build bustage. CLOSED TREE
Backed out changeset 25af0b19ec39 (bug 1476921)
Backed out changeset 873cd2e119b3 (bug 1476921)
2018-08-28 22:33:24 +03:00
Ashley Hauck 4cf62bfab3 Bug 1486584 - Update test262 sort-tonumber.js. r=jorendorff 2018-08-27 13:24:00 +03:00
Jan Beich 43a70dc37a Bug 1486281 - Implement js::ThisThread::GetName() on FreeBSD 11.3/12.0. r=sfink r=Build 2018-08-26 08:13:00 +03:00
Ashley Hauck 4d2db13518 Bug 1476921 - Add tests to make sure GetModuleNamespace errors are correctly handled. r=jonco
--HG--
extra : histedit_source : 72ddef3814bf638831316a3ac8e2af466b985284
2018-08-28 09:20:00 +03:00
Ashley Hauck ff648f7d51 Bug 1476921 - Don't throw an error in GetModuleNamespace for errored modules. r=jonco
--HG--
extra : histedit_source : 22e239f1cf048ee327507d2ad9cfabca2100d645
2018-08-27 10:01:00 +03:00
omersid 14f9c628c9 Bug 1472170- Added description as a property for Symbol and updated tests262. r=anba 2018-08-27 23:14:54 -04:00
Cosmin Sabou c6790f084b Merge mozilla-central to mozilla-inbound. a=merge
--HG--
extra : rebase_source : 742ef5d5df898ae0ed4c7c400d230bf6fa94645c
2018-08-29 21:05:53 +03:00
Jason Orendorff 568fc35f0d Bug 1479391 - Fix crash after forced return from a generator. r=jimb
This patch switches from GeneratorObject::finalSuspend to setClosed in order to
dodge an assertion in finalSuspend that the Generator state machine is
transitioning along an expected edge. The way the Debugger manipulates
Generator state is decidedly unexpected, from the perspective of the normal
rules, and we've decided to accept that.
2018-08-14 10:47:05 -05:00
Ashley Hauck ce8e8c5bc9 Bug 1476921 - Don't throw an error in GetModuleNamespace for errored modules. r=jonco 2018-08-28 14:07:00 +03:00
Jeff Walden c7a996e73c Bug 1486577 - Remove a spurious inclusion of js/CompileOptions.h from vm/TraceLogging.h, because the header doesn't need any *CompileOptions declaration or definition. r=me as trivial, following up on a bustage fix that got merged into the landing for bug 1486731
--HG--
extra : rebase_source : c00d0bff0942f4ab5831f7a72f96f126b264ce16
2018-08-29 13:41:14 -05:00