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

64089 Коммитов

Автор SHA1 Сообщение Дата
Noemi Erli da9500ef7d Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-03-15 19:44:05 +02:00
shindli b5ff200fa2 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-03-15 12:18:31 +02:00
shindli 9bfc016707 Merge inbound to mozilla-central. a=merge 2018-03-15 12:15:17 +02:00
Jan de Mooij 3a631decc0 Bug 1445610 - Clean up some enums in Value.h. r=jwalden 2018-03-15 10:38:59 +01:00
Ryan VanderMeulen 0007daf65b Backed out changeset 1ec0f839a905 (bug 1086964) for mass Win7 debug test failures. 2018-03-14 20:35:43 -04:00
Kris Maglione 4f1d6d3f42 Bug 1445551: Part 6 - Remove JSAddonId type and addonId compartment flag. r=mccr8
This compartment flag was only ever needed in order to track system-privileged
add-on code running under the compartment-per-addon system. That system, and
the legacy add-ons it supported, are gone.

WebExtension compartments have their add-on ID stored on their principal, and
are tracked in less obtrusive ways, so this code is no longer useful.

MozReview-Commit-ID: NVEd3Oawak

--HG--
extra : rebase_source : 31908a4daa5e7897ce165a5383110fb722391662
2018-03-13 21:02:34 -07:00
Kris Maglione 38156094a4 Bug 1445551: Part 5 - Remove add-on path service. r=aswan,mccr8
The path service was created to allow us to track resources that were part of
legacy add-ons, and to map URIs ponting to those resources to add-on IDs, so
that we could apply special behavior to them.

We have better ways to track resources belonging to WebExtensions, so this
code does not benefit them in any significant way.

The only remaining legacy extensions are system add-ons, which we control, and
do not need the path service in order to track.

MozReview-Commit-ID: BKXkcaM7jJx

--HG--
extra : rebase_source : c8cb0f7cec919b767bbcfe5433a6838523747676
2018-03-13 20:21:22 -07:00
Kris Maglione 83371fe0b5 Bug 1445551: Part 4 - Remove compartment-per-addon. r=mccr8
The compartment-per-addon code was added so that we could segregate at least
some of the code from system-privileged add-ons into tagged compartments, even
when it ran in browser windows. That allowed us to apply certain special
behavior to them, such as enabling e10s shims, and to track some performance
characteristics.

The only remaining chrome-privileged add-ons now are system add-ons controlled
by us, and the shim system and per-compartment performance metrics are gone,
it no longer serves a purpose.

MozReview-Commit-ID: Ap186bWAaqP

--HG--
extra : rebase_source : c5bf81b44dd42b7cebce2784b7dd98480b41b593
2018-03-13 19:43:30 -07:00
Kris Maglione 664bb69fcc Bug 1445551: Part 3 - Remove AllowCPOWsInAddon machinery. r=mccr8
This is all dead code now that the add-on manager support for shimmed add-ons
has been removed.

MozReview-Commit-ID: J6aRQDqEahs

--HG--
extra : rebase_source : 406d65b2a0be6340df6c28f42b38bd8a47b96b77
2018-03-13 19:20:17 -07:00
Ryan VanderMeulen 3f80fd8acc Bug 1086964 - Remove uses of no_pgo that are no longer needed. r=dmajor 2018-03-14 18:18:32 -04:00
Andreea Pavel 363ad2007d Merge mozilla-central to mozilla-inbound. a=merge on a CLOSED TREE 2018-03-15 00:11:42 +02:00
Andreea Pavel 067622ac36 Merge mozilla-inbound to mozilla-central. a=merge on a CLOSED TREE 2018-03-15 00:07:17 +02:00
Jan de Mooij 68d3bff395 Bug 1445592 - Generate Ion LOpcodes.h and MOpcodes.h instead of updating them manually. r=nbp,froydnj 2018-03-14 18:58:52 +01:00
Ted Campbell 554d65c99a Bug 1445704 - Fix ambiguous functions in String.cpp. r=Waldo
If RegExp.cpp and String.cpp are unified, we bust the build. This
removes the spurious namespace from RegExp and uses explicit :: global
namespace for String.cpp where cares about the difference between :: and
js::unified.

MozReview-Commit-ID: HGJOvQyzrWK

--HG--
extra : rebase_source : 7d10137730cc661beb2b6d470d03563a0df3792a
2018-03-14 11:53:00 -04:00
Henri Sivonen 0b084ac6c6 Bug 1445936 - Add JS_NewUCStringDontDeflate() that does not check for Latin1. r=jandem
MozReview-Commit-ID: ITlBcHTVvGk

--HG--
extra : rebase_source : 08993cf10fb65932aaca8a914330f3944f7e0987
2018-03-15 15:42:01 +02:00
Dragan Mladjenovic ea8d69c7ef Bug 1444834 : [MIPS] Stubout MacroAssembler::speculationBarrier; r=jandem
--HG--
extra : rebase_source : 6618a0693c43cb1623f89a12c2a8427e5f9241ca
2018-03-12 10:31:24 +01:00
Dragan Mladjenovic 89824800ac Bug 1445633 : [MIPS] Fix build after Bug 1441142; r=lth
--HG--
extra : rebase_source : c394cc46a16b0e56601fd2de764b5949b2be12de
2018-03-14 15:01:00 +01:00
Steve Fink 92a0d50e77 Bug 1442804 - heap write analysis: nsTArray owns its header, r=bholley
--HG--
extra : rebase_source : 4c8eee581e053d8994356bfb88237b27b1a86911
2018-03-06 08:46:28 -08:00
Steve Fink b2863c28d0 Bug 1442804 - heap write analysis: whitelist GetAutoArrayBuffer, which returns a pointer into |this|, r=bholley
--HG--
extra : rebase_source : 1dff1eeaa79295f960be181e6f8997ab8bcccee8
2018-03-06 08:45:56 -08:00
Steve Fink b789af80ec Bug 1442804 - heap write analysis: explicitly whitelist stringbuffer canary field, r=bholley
--HG--
extra : rebase_source : 0b1e29c9c67c0da1a75f9526ca0671415ba979cc
2018-03-06 08:44:42 -08:00
Steve Fink 763004ebd1 Bug 1442804 - heap write analysis: whitelist all atomics, r=bholley
--HG--
extra : rebase_source : 6427ca1416114a21b4fe94f23dd124c6a984bea9
2018-03-06 08:43:36 -08:00
Ted Campbell a34e9f432c Bug 1419094 - Cleanup some XDR apis. r=nbp
Avoid declaring XDR core types in vm/JSAtoms.h. Remove codeConstValue
from XDR API.

MozReview-Commit-ID: GQbLocJbW6H
2018-03-13 17:00:00 -04:00
Ryan VanderMeulen a0ced5f363 Bug 977538 - Land the attached testcase as a crashtest. r=me 2018-03-14 21:36:05 -04:00
Brian Grinstead 8c4db27eb0 Bug 1445772 - Don't worry about binding console methods to the console object r=jryans
This isn't needed since Console is an interface and not an object

MozReview-Commit-ID: ZoIo2TS9QL

--HG--
extra : rebase_source : 7ccb86dd4290e5d7ac829cab6dcf2f9548d89f11
2018-03-14 14:33:47 -07:00
Andreea Pavel 46575fad3b Merge mozilla-central to autoland. a=merge on a CLOSED TREE 2018-03-15 00:10:23 +02:00
Tom Ritter 6d43fef7f0 Bug 1443943 Do not clamp/jitter in the JS Engine if it's system context r=jorendorff,luke
MozReview-Commit-ID: LqL7xaYoHCT

--HG--
extra : rebase_source : 5e0e9de48d908d49468a40e0e067be4fdfc6a30e
2018-03-09 09:49:28 -06:00
Andi-Bogdan Postelnicu ad0f5aaafb Bug 1437532 - prevent doing memset on a non-trivial type. r=jorendorff
MozReview-Commit-ID: C8BfwJSHkWM

--HG--
extra : rebase_source : 3bd28ff459b76be79da6a518fb1da49b23aef9fe
2018-03-13 11:57:49 +02:00
dragan.mladjenovic 05ebea3d9f Bug 1445658 - [MIPS32] Implement BaseCompiler::pop2xI64ForMulI64; r=lth
--HG--
extra : rebase_source : 8584db6d6797589da4c72a91b14bff8d989c38c7
2018-03-14 22:09:22 +02:00
Luke Wagner 8a5136ff57 Bug 1435360 - Baldr: implement wasm interrupt in terms of TlsData branch and stack overflow check (r=bbouvier)
--HG--
extra : rebase_source : 77543186df0d37d7267101c0c1a6b672405be461
2018-03-12 15:10:06 -05:00
Luke Wagner 7093a7468e Bug 1435360 - Baldr: remove wasm async interrupt support (r=jandem)
--HG--
extra : rebase_source : af951434c93e1c946cad43aaae023b491fb58ef1
2018-03-12 11:12:54 -05:00
Luke Wagner a056452198 Bug 1435360 - Baldr: do baseline stack-overflow check after initializing DebugFrame (again) (r=lth)
--HG--
extra : rebase_source : 949dbafcf8a3d8a036ddb537f72c32a715b0ba83
2018-03-14 14:33:20 -05:00
Jon Coppeard 3179655c20 Bug 1445196 - Store the atom's pinned flag in the atom to simplify lookup r=jandem 2018-03-13 18:36:47 +00:00
Jan de Mooij e3df81fe0c Bug 1445181 part 3 - Use #ifdef JS_JITSPEW more to shrink opt builds a bit. r=nbp
--HG--
extra : rebase_source : 9d3f2551811d467352c5ec9e86b042722bbc18f3
2018-03-13 19:01:21 +01:00
Jan de Mooij 26fbb3253a Bug 1445181 part 2 - Use a switch statement instead of MDefinition::accept. r=nbp
--HG--
extra : rebase_source : 6032480ff9f9ef48dae2acd430be44b83d288a94
2018-03-13 19:00:38 +01:00
Jan de Mooij 92fda98f2f Bug 1445181 part 1 - Make LIR opcode an enum class. r=nbp
--HG--
extra : rebase_source : 9c4ae1a2f4b0b4f16f20902590457e5eaf4045e4
2018-03-13 19:00:15 +01:00
Nicolas B. Pierron e2b13d6466 Bug 1419094 - Result-ify XDR functions. r=tcampbell 2018-03-13 18:00:51 +00:00
Nicolas B. Pierron 51b99ad845 Bug 1401939 - Align XDR content to avoid undefined behaviours. r=kmag,tcampbell 2018-03-13 18:00:50 +00:00
Lars T Hansen 0a2c299d69 Bug 1333018 - Clean up by-ref and by-pointer arguments. r=bbouvier
--HG--
extra : rebase_source : c901b7c9109a45eadcc804210f2645bfef7f4257
2018-03-13 13:56:01 +01:00
Lars T Hansen 618e132afb Bug 1434054 - Remove unused macroassembler functions. r=bbouvier
--HG--
extra : rebase_source : 88c2c5f5e7d5cb5e0c9d6a03cfc074969f09b979
2018-03-13 13:10:36 +01:00
Lars T Hansen 8c4908c86d Bug 1440618 - Remove unused register definitions. r=bbouvier
--HG--
extra : rebase_source : 146f0805a6e92f2c71376e9af5db61ea4434cb33
2018-03-13 12:55:45 +01:00
Nathan Froyd 2f491089d2 Bug 1340588 - enable clang-cl to generate depfiles directly, rather than using a wrapper; r=build-peer
We use a wrapper script when compiling with MSVC to parse the
/showIncludes output and thereby generate a Makefile dependency
fragment.  This fragment enables us to do correct and faster incremental
builds.  But the cost of invoking the wrapper script can be significant;
it's an extra process or two to launch for every single compilation.

Instead, let's have clang-cl generate the dependencies directly, which
should be somewhat faster.
2018-03-13 09:06:00 -05:00
Narcis Beleuzu 298d1d55b5 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-03-13 12:36:54 +02:00
Lars T Hansen 4ccb30da68 Bug 1441142 - Adapt wasm stubs for ARM64. r=bbouvier
As the SP is weird on ARM64 a number of adjustments must be made to
the stubs code.  On the one hand we never have to check for stack
alignment; on the other hand we don't get to use raw Push and Pop to
manipulate the stack, the word-aligned stack in the JIT ABI requires
some unusual adjustments, and the fact that the JIT treats x28 (the
PseudoStackPointer) as non-volatile requires it to be saved and
restored, or recomputed.

On ARM64 we do not have a pop-return-address-from-memory-and-return,
and this causes a slight problem for the interrupt stub code.  On MIPS
this is fixed by using HeapPtr as a temp for the return address and
then restoring HeapPtr in the branch delay slot, but ARM64 does not
have branch delay slots either.

For now I'm using x28 to hold the return address since Wasm code does
not use x28 (it is not allocatable even in wasm code at this point)
and the interrupt stub only runs when the machine is in the wasm
state.  If this turns out not to be workable we probably need to
reserve another register just for this.

--HG--
extra : rebase_source : bc6f809305fdb8713cd93170ec434ae1d8e64243
2018-02-12 17:42:45 +01:00
Ryan VanderMeulen dde54aa578 Bug 1424281 - Use Visual Studio 2017 15.6.0 for Windows builds. r=froydnj
--HG--
extra : rebase_source : 2d5abb19c1f2b2e2f142b849bd4d0ba9ab46ccbe
2018-03-12 19:24:44 -04:00
Brindusan Cristian cc88a1d417 Backed out changeset 294a422d49b0 (bug 1401939) for sm-arm64 failures on /builds/worker/workspace/build/src/js/src/vm/Xdr.cpp CLOSED TREE 2018-03-12 20:55:23 +02:00
Jason Orendorff 468bb1ce37 Bug 1439026 - Part 4: jsbool* -> builtin/Boolean*. r=jandem.
--HG--
rename : js/src/jsboolinlines.h => js/src/builtin/Boolean-inl.h
rename : js/src/jsbool.cpp => js/src/builtin/Boolean.cpp
rename : js/src/jsbool.h => js/src/builtin/Boolean.h
extra : rebase_source : ec95a5b8ad20212c587a2400313174da2b4cfee0
extra : intermediate-source : 7e197166f04eef36c755602152dd191a85d9915c
extra : source : 5bf88c004e36ab5e624318c3ead48a9fd4c68aa6
2018-02-24 10:31:29 -06:00
Jason Orendorff 0f0edbe7f7 Bug 1439026 - Part 3: jsarray* -> builtin/Array*. r=jandem.
--HG--
rename : js/src/jsarrayinlines.h => js/src/builtin/Array-inl.h
rename : js/src/jsarray.cpp => js/src/builtin/Array.cpp
rename : js/src/jsarray.h => js/src/builtin/Array.h
extra : rebase_source : 6f38576d65c7b212f659cb6355401bd3c5eee570
extra : intermediate-source : 39d03fed10fbafafd4fbd51fac721017a13bde9f
extra : source : 8dfe2e55b75434e8fc30c872546123475b691e09
2018-02-24 10:26:24 -06:00
Nicolas B. Pierron dbd24194ed Bug 1401939 - Align XDR content to avoid undefined behaviours. r=kmag,tcampbell 2018-03-12 18:23:13 +00:00
Jason Orendorff f8a2409258 Bug 1444339 - Crash using baselineCompile() in a fresh compartment. r=nbp.
--HG--
extra : rebase_source : 7f430d80435c4c80598289bdee5c4be6dea42948
2018-03-09 09:33:30 -06:00
Dragan Mladjenovic 1cb1a1d83b Bug 1444303 : [MIPS] Fix build failures after Bug 1425580 part 17; r=jandem
--HG--
extra : rebase_source : 2eb3b1da3aaa857a0b03bce98d33149ff5d17d14
2018-03-09 07:58:43 +01:00