Commit Graph

65662 Commits

Author SHA1 Message Date
Kristen Wright
19310fa39a Bug 1466979 - Separate JS::ubi::EdgeVectorTracer and JS::ubi::SimpleEdgeRange into UbiNodeUtils.h r=jimb
Separated SimpleEdgeRange into the new UbiNodeUtils.h, updated build files, changed SimpleEdgeRange::init to SimpleEdgeRange::addTracerEdges, created bool addEdge to add new edges to the vector.
2018-05-31 14:13:00 -07:00
Cosmin Sabou
26e792fe42 Merge autoland to mozilla-central. a=merge 2018-07-11 00:50:32 +03:00
André Bargull
ad359328af Bug 1474348 - Part 2: Don't use BlockOnPromise fast path with non-default resolving functions. r=arai 2018-07-09 09:49:23 -07:00
André Bargull
9fdd7e6831 Bug 1474348 - Part 1: Add accessors for Promise fixed slots and combine default resolving functions flags. r=arai 2018-07-09 09:47:27 -07:00
arthur.iakab
7bd656627d Backed out changeset caab8817cbf2 (bug 1466979)For build bustages on js/src/vm/UbiNode.cpp CLOSED TREE 2018-07-10 22:56:05 +03:00
Wander Lairson Costa
a6edc697ce Bug 1473818: Fix global constructors count regression r=jonco
Bug 1465505 moved from PRJ_Now to mozilla::TimeStamp. As a side effect,
it introduced a few extra global constructors calls.

This patch fixes it.

MozReview-Commit-ID: 9VX83JZIyds

--HG--
extra : rebase_source : 01a22a8eea3ab224dbaa1a93d2a73ebb9ab6b6ea
2018-07-06 18:28:08 -03:00
Kristen Wright
35cd421aed Bug 1466979 - Separate JS::ubi::EdgeVectorTracer and JS::ubi::SimpleEdgeRange into UbiNodeUtils.h r=jimb
Separated SimpleEdgeRange into the new UbiNodeUtils.h, updated build files, changed SimpleEdgeRange::init to SimpleEdgeRange::addTracerEdges, created bool addEdge to add new edges to the vector.
2018-05-31 14:13:00 -07:00
Boris Zbarsky
8f7c90d6be Bug 1473149. Add an external string variant that keeps a DynamicAtom alive. r=njn,rwood
The change to call AsStatic() in SetKnownLiveAtom is drive-by performance cleanup.
2018-07-10 11:21:42 -07:00
Matthew Gaudet
2a28b554e5 Bug 1471361: Add test case r=tcampbell
--HG--
extra : rebase_source : 4e020f3403fe955a3a7d5094ab680d713b5f7a8d
2018-07-09 17:50:27 -04:00
André Bargull
a5d54ec253 Bug 1473970 - Part 4: Skip creating the resolving functions in EnqueuePromiseResolveThenableBuiltinJob. r=arai
--HG--
extra : rebase_source : f991e19ba5ec75169b9f44271eda8e52a2436e42
2018-07-09 09:24:31 -07:00
André Bargull
d39a9ed675 Bug 1473970 - Part 3: Add documentation for PromiseReaction fields, strengthen assertions, and add tests. r=arai
--HG--
extra : rebase_source : de77f8f70d86bcc3ec63070087d9c2198c4af7e9
2018-07-10 02:51:15 -07:00
André Bargull
03f569c60f Bug 1473970 - Part 2: Add a different PromiseResolveThenableJob kind for the default Promise.prototype.then case. r=arai
--HG--
extra : rebase_source : 8d5af673613877cc1e34207d55e811cb9b83ac79
2018-07-07 02:47:49 -07:00
André Bargull
75b3cbac85 Bug 1473970 - Part 1: Check realm of Promise and "then" property for optimized resolve-thenable-job. r=arai
--HG--
extra : rebase_source : 096498c077f0c2be95ecb8854dac905b2096b67a
2018-07-06 12:06:18 -07:00
Jan de Mooij
b8a74f650b Bug 1473256 - Don't add a length property in AddLengthProperty if it's already present. r=anba
--HG--
extra : rebase_source : b90a1a5d93117f9533b1518821943dc95b8f30b9
2018-07-10 14:32:51 +02:00
Robin Templeton
0b89c91c62 bug 1471134 - Part 5: Support BigInt operands for basic arithmetic operators. r=jandem
Operands are converted to primitive values using ToNumeric, which can
result in either BigInt or Number values. If any operand is a BigInt,
the corresponding BigInt method is called; otherwise, the existing
behavior for Numbers is used.
2018-07-08 21:14:00 +03:00
Robin Templeton
f83f404551 bug 1471134 - Part 4: Add PowValues/PowOperation for exponentiation. r=jandem
Inline math_pow_handle into math_pow and PowValues, and replace other
uses with calls to PowValues.
2018-07-08 21:13:00 +03:00
Robin Templeton
b252fe8bdd bug 1471134 - Part 3: Make arithmetic operand arguments mutable. r=jandem
Follow the example of AddOperation, which uses MutableHandleValue for
arguments that will be passed to ToPrimitive. This allows parameters to
be converted using ToNumeric instead of ToNumber.
2018-07-08 21:13:00 +03:00
Robin Templeton
670b8fe971 bug 1471134 - Part 2: Add BigInt arithmetic methods that accept Value arguments. r=jandem 2018-07-08 21:13:00 +03:00
Robin Templeton
e7f485bfdb bug 1471134 - Part 1: Define methods for basic BigInt arithmetic. r=Waldo 2018-07-08 21:12:00 +03:00
André Bargull
f80dfbbab8 Bug 1466471 - Part 4: Update to Unicode 11 for SpiderMonkey. r=Waldo 2018-06-22 04:41:48 -07:00
André Bargull
981cf893d4 Bug 1466471 - Part 3: Update Intl tests after ICU update. r=Waldo 2018-06-22 04:40:49 -07:00
André Bargull
5f0b43c2d6 Bug 1466471 - Part 2: Update in-tree ICU to release 62.1. rs=Waldo 2018-06-22 04:40:26 -07:00
Ciure Andrei
79aa5c6ec9 Merge inbound to mozilla-central. a=merge 2018-07-10 00:59:02 +03:00
Ms2ger
edfa923af9 Bug 1333800 - Part b: Support running specific WPT tests in the JS shell; r=luke,bbouvier,jgraham 2018-07-05 14:44:41 +02:00
Ms2ger
503d09bec6 Bug 1333800 - Part a: Make non262/extensions/regress-50447-1.js more robust against changes in the filenames; rs=Waldo
The next patch will pass absolute paths to the shell, and those will end up in
the strings checked in this test.
2018-07-09 10:59:36 +02:00
Kris Maglione
8ff07d3c3f Bug 1472495: Don't report shared memmapped cache as explicit memory. r=erahm
MozReview-Commit-ID: 7xWJOdg3mfg

--HG--
extra : rebase_source : 8bb19b94495ae99ec1c4083cd88bd8915003886f
extra : amend_source : e72654de7148415e6999632a0da3f598648685a6
2018-06-30 16:33:50 -07:00
Andreea Pavel
2ef6a9ab83 Merge mozilla-central to mozilla-inbound. a=merge on a CLOSED TREE 2018-07-08 00:54:23 +03:00
Bobby Holley
4da035394a Bug 1447856 - Make the watchdog tests actually wait for completion. r=arai
MozReview-Commit-ID: KjvUxJSrmtk

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

--HG--
extra : moz-landing-system : lando
2018-07-07 07:20:50 +00:00
Kris Maglione
2ced7f0d8b Bug 1471091: Follow-up: Fix crash in devtools tests when they execute process scripts multiple times. r=bustage 2018-07-07 13:15:44 -07:00
Jacek Caban
53527f20c4 Bug 1471556 - Support mingw clang in configure scripts. r=glandium
MozReview-Commit-ID: GKLbHvYgXnL

--HG--
extra : rebase_source : 61c7c7b11373a7ef3fd6b653b1baf828c322ee0b
2018-06-26 18:53:42 +02:00
Kris Maglione
8751f930ce Bug 1471091: Avoid cloning and caching process scripts. r=mccr8
We only run process scripts once per process, so there's no need to compile
them for the compilation scope, or to keep a separate cloned copy alive for
the length of the session.

This patch changes the caching behavior of message managers to compile
single-use scripts directly for the target global, and avoid caching them for
the rest of the session. It also changes the preloader to drop references to
these scripts after they've been executed and/or encoded, as appropriate.

MozReview-Commit-ID: EfKo2aYbBxl

--HG--
extra : rebase_source : aebc5812bef4413d497ac4fdb59aced00a5a4c8e
extra : absorb_source : cf5795eb0bff47d08b1ab45f002afb3f05109c93
extra : histedit_source : e92619d2a818095241c52d8f1961ccad38300d32
2018-06-29 18:07:46 -07:00
Ciure Andrei
f61df5dc45 Backed out 4 changesets (bug 1461450, bug 1471726) for linting failure xpidl.py CLOSED TREE
Backed out changeset 6e8148c1ca7f (bug 1461450)
Backed out changeset 2a02d86bc113 (bug 1461450)
Backed out changeset 1907567a85c5 (bug 1471726)
Backed out changeset c4df8eab6d1c (bug 1471726)
2018-07-07 03:12:10 +03:00
Nika Layzell
95e4893811 Bug 1471726 - Part 2: Add basic tests for jsval array codegen, r=mccr8 2018-07-06 19:53:04 -04:00
Jason Orendorff
df5b182231 Bug 1469323 - Switch Debugger.cpp to use // comments consistently inside function bodies. r=jimb DONTBUILD
--HG--
extra : rebase_source : 47ebcb7269d5b0a315c1f1518c555b6e04d4ee53
2018-06-18 11:08:32 -05:00
Jan de Mooij
e918a3c855 Bug 1472973 part 8 - Use JS::GetNonCCWObjectGlobal in XrayAwareCalleeGlobal. r=bz 2018-07-06 18:16:24 +02:00
Jan de Mooij
396c86f339 Bug 1472973 part 7 - Use JS::GetNonCCWObjectGlobal in mozJSComponentLoader::FindTargetObject. r=bz
js::GetJSMEnvironmentOfScriptedCaller returns either nullptr or a NonSyntacticVariablesObject.
2018-07-06 18:16:24 +02:00
Jan de Mooij
b6f0af2059 Bug 1472973 part 6 - Use JS::GetNonCCWObjectGlobal in subscript loader. r=bz 2018-07-06 18:16:24 +02:00
Jan de Mooij
aa34cc8f6b Bug 1472973 part 5 - Use JS::CurrentGlobalOrNull in JS shell clone() function. r=bz 2018-07-06 18:16:23 +02:00
Jan de Mooij
09149a5c4a Bug 1472973 part 3 - Remove some GetGlobalForObjectCrossCompartment calls on globals/WindowProxy. r=bz 2018-07-06 18:16:23 +02:00
Jan de Mooij
a51f9bdda9 Bug 1472973 part 2 - Use JS::GetNonCCWObjectGlobal in some functions where we unwrapped the object. r=bz 2018-07-06 18:16:23 +02:00
Jon Coppeard
628e56f2b7 Bug 1473297 - Use inline data for stack allocated binding name vectors in the parser r=Waldo 2018-07-06 16:32:01 +01:00
Jon Coppeard
d4db28df70 Bug 1471949 - Handle OOM starting background sweep task r=sfink 2018-07-06 16:32:01 +01:00
Nicolas B. Pierron
76ff8da0e0 Bug 1472638 - Only protect the last chunk when we append a new chunk. r=tcampbell 2018-07-06 12:08:37 +00:00
André Bargull
9de28cbb8c Bug 1473231 - Part 3: Update test262 exclusions. r=sfink 2018-07-04 10:25:41 -07:00
André Bargull
61987aee99 Bug 1473231 - Part 2: Update test262 - Jul 04 2018 edition. r=sfink 2018-07-04 10:24:42 -07:00
André Bargull
7e8d066f21 Bug 1473231 - Part 1: Update test262 importer to handle new feature flags. r=sfink 2018-07-04 10:20:56 -07:00
André Bargull
b5ff39968b Bug 1472666: Fix UbiNode compilation for Clang 3.8 or older. r=Waldo 2018-07-04 09:44:49 -07:00
Jan de Mooij
3201853e80 Bug 1468752 part 4 - Remove JS_GetGlobalForObject. r=bz 2018-07-06 12:54:00 +02:00
Jan de Mooij
7d2428d8be Bug 1468752 part 3 - Introduce JS::GetNonCCWObjectGlobal to get the global object associated with a non-CCW object. r=bz 2018-07-06 12:53:49 +02:00
Jan de Mooij
4da897f207 Bug 1468752 part 2 - Define Wrapper::wrapperHandler in Wrapper.h. r=bz
IsCrossCompartmentWrapper calls IsWrapper and then had an out-of-line call to Wrapper::wrapperHandler, but that's just loading the proxy handler and we already did that in IsWrapper. Having Wrapper::wrapperHandler in the header file means the compiler can compile IsCrossCompartmentWrapper much better.
2018-07-06 12:53:38 +02:00