Commit Graph

68354 Commits

Author SHA1 Message Date
khyperia
459b5b3ae0 Bug 1513040 - Change FOR_EACH_PARSE_NODE_KIND to use type instead of arity. r=jorendorff
Depends on D14321

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

--HG--
extra : moz-landing-system : lando
2018-12-17 17:05:42 +00:00
khyperia
d2784c93ca Bug 1513040 - Rename ParseNodeKinds to end with Stmt or Expr. r=jorendorff
Depends on D13991

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

--HG--
extra : moz-landing-system : lando
2018-12-17 20:00:00 +00:00
khyperia
99e241ea60 Bug 1512428 - Create a ParseNodeVisitor and use it for constant folding. r=jwalden
Differential Revision: https://phabricator.services.mozilla.com/D13991

--HG--
extra : moz-landing-system : lando
2018-12-17 17:05:38 +00:00
Tom Schuster
be525ca8b0 Bug 1462741 - Update tests. r=jorendorff
Depends on D14704

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

--HG--
extra : moz-landing-system : lando
2018-12-17 18:40:13 +00:00
Tom Schuster
008b4aef30 Bug 1462741 - Make Function.prototype a native function. r=jorendorff
Differential Revision: https://phabricator.services.mozilla.com/D14704

--HG--
extra : moz-landing-system : lando
2018-12-17 19:49:23 +00:00
Jim Blandy
2bb93ce5ff Bug 1482082: Delete JSObject::deprecatedGlobal, since it is unused. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D14691

--HG--
extra : moz-landing-system : lando
2018-12-17 18:39:23 +00:00
Jim Blandy
a9a44998b1 Bug 1482215: Make Debugger visibility per-Compartment, and ensure realms match their compartments. r=jorendorff
Debugger invisibility is only practical to enforce on compartment boundaries,
and for its proper uses, that's good enough. Unfortunately, at present, debugger
invisibility is a flag on realms. This misfit is the reason for the sole
remaining code that assumes that every object is associated with a particular
realm: Debugger.Object.prototype.unwrap consults the unwrapped object's global
to see whether it is about to reveal an object that it must not. We would like
to remove this code.

This patch:

- adds an `invisibleToDebugger` flag to JS::Compartment, and sets it from the
  Realm options (since there is no API for creating compartments directly; only
  the act of creating a Realm can create a compartment to hold it);

- changes Debugger.Object.prototype.unwrap to check the compartment's flag, thus
  removing the final use of JSObject::deprecatedRealm;

- asserts that new realms added to a compartment have a compatible visibility; and

- changes the shell primitive for creating realms to throw an error in case of
  incompatible requested visibilities, rather than crashing.

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

--HG--
extra : moz-landing-system : lando
2018-12-17 18:37:29 +00:00
Noemi Erli
c03f25ec80 Backed out changeset 4700e46a32dd (bug 1514212) for reftest failures in block-scoped-functions-annex-b-with.js CLOSED TREE 2018-12-17 20:26:40 +02:00
André Bargull
6d7530556c Bug 1514212: Global var-declarations are only configurable on nightly. r=jorendorff 2018-12-14 06:35:03 -08:00
Julian Seward
1c2b472ac1 Bug 1508550 - StackMapGenerator::createStackMap: don't clone the MachineStackTracker. r=lth.
Currently createStackMap makes a temporary clone of StackMapGenerator::mst_ on
every call.  This will cause a heap allocation and free in the case where
mst_'s vector size exceeds its inline capacity (64 booleans).  This patch
removes the cloning and instead adds a second MachineStackTracker,
augmentedMst_, to StackMapGenerator, which is used as the temporary inside
createStackMap.  The expectation is that augmentedMst_'s vector will grow in
capacity monotonically during the lifetime of the StackMapGenerator, that is,
over multiple calls to createStackMap.  This should significantly cut down on
heap (re)allocation caused by createStackMap.

--HG--
extra : rebase_source : 3a682e88571c1452f15efe711be3e403f64e0a8f
2018-12-17 08:08:13 +01:00
Gurzau Raul
2887ed4c57 Backed out changeset d3058a4b2450 (bug 1498775) for failing at promise-rejection-tracking-optimized.js on a CLOSED TREE 2018-12-17 10:05:34 +02:00
Tooru Fujisawa
7b06c0abbf Bug 1498775 - Report unhandled rejection for optimized away promise. r=jorendorff 2018-12-17 16:02:31 +09:00
Jan de Mooij
a87026ec12 Bug 1512029 part 2 - Some CompartmentPrivate changes for same-compartment realms. r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D14253

--HG--
extra : moz-landing-system : lando
2018-12-16 14:59:50 +00:00
Jan de Mooij
cccc414b7a Bug 1512029 part 1 - Stop calling JS_GetCompartmentPrincipals for system compartments. r=bzbarsky
Because it release-asserts the compartment has a single realm.

I also renamed JS_GetCompartmentPrincipals to JS_DeprecatedGetCompartmentPrincipals
to discourage people from using it.

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

--HG--
extra : moz-landing-system : lando
2018-12-16 14:59:46 +00:00
Jan de Mooij
685b6f3a62 Bug 1514263 - Enter the object's realm in UnboxedPlainObject::convertToNative. r=bhackett
We were failing the realm assert in UnboxedLayout::makeNativeGroup in the browser.
It's possible the assert is overzealous and we don't need the AutoRealm, but this
makes it much easier to reason about the code.

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

--HG--
extra : moz-landing-system : lando
2018-12-16 14:14:41 +00:00
Jan de Mooij
100a324c5b Bug 1512509 - Clone ScriptSourceObject when cloning scripts. r=tcampbell
This fixes bug 1406437. It also simplifies JSScript because it now always stores
a ScriptSourceObject directly instead of a CCW for one.

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

--HG--
extra : moz-landing-system : lando
2018-12-16 11:43:44 +00:00
Csoregi Natalia
1a4a7745fd Merge inbound to mozilla-central. a=merge 2018-12-16 11:50:49 +02:00
Boris Zbarsky
771d1e342c Bug 1514261. Skip messing around with compartments in FunctionForwarder if the forwarder is already same-compartment with the underlying callee. r=bholley 2018-12-16 00:13:53 -05:00
championshuttler
c0174a2ae5 Bug 1466155 - Remove unused labels in CacheIRCompiler::emitGuardIsInt32. r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D14688

--HG--
extra : moz-landing-system : lando
2018-12-16 01:42:25 +00:00
Bogdan Tara
f49ad79fde Backed out changeset b6d7250b9df3 (bug 1514346) for sm fuzzing build bustage CLOSED TREE 2018-12-15 18:53:26 +02:00
Steve Fink
a1308a03aa Bug 1514346 - Add --enable-gczeal to fuzzing builds, r=decoder
--HG--
extra : rebase_source : ab44f719e586a6e9d9484f3583dd5eb5447dafd6
2018-12-14 11:47:30 -08:00
Cosmin Sabou
b30ca1fd33 Merge mozilla-inbound to mozilla-central. a=merge 2018-12-15 04:47:12 +02:00
Ciure Andrei
814adb5c46 Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2018-12-15 00:03:24 +02:00
Mike Hommey
7864034d32 Bug 1514209 - Enable the crashreporter code on Windows arm64 builds. r=froydnj
But keep the crashreporter disabled at runtime because it doesn't work
yet.

This has the side effect of creating the artifacts with the
crashreporter symbols and pdbs.

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

--HG--
extra : moz-landing-system : lando
2018-12-14 14:50:30 +00:00
Jason Orendorff
5cb836b0d9 Bug 1513266 - Part 2: Fix OOM crash in ReadableStream. r=jwalden
Differential Revision: https://phabricator.services.mozilla.com/D14168

--HG--
extra : moz-landing-system : lando
2018-12-14 18:16:59 +00:00
Jason Orendorff
251efa7d15 Bug 1513266 - Part 1: Trivial fixes for oomTest. r=jwalden
Differential Revision: https://phabricator.services.mozilla.com/D14167

--HG--
extra : moz-landing-system : lando
2018-12-14 18:16:24 +00:00
Jason Orendorff
b50541ce32 Bug 1513570 - Part 4: Back out the jit-tests added in bug 1503012. r=Ms2ger
Differential Revision: https://phabricator.services.mozilla.com/D14317

--HG--
extra : moz-landing-system : lando
2018-12-14 18:15:56 +00:00
Jason Orendorff
b35f3468a1 Bug 1513570 - Part 3: setTimeout polyfill for running web-platform tests in the shell. r=Ms2ger
Differential Revision: https://phabricator.services.mozilla.com/D14316

--HG--
extra : moz-landing-system : lando
2018-12-14 18:15:28 +00:00
Sylvestre Ledru
7cf43b9bc0 Bug 1513205 - Ride along, update some code to match the Google coding style r=Ehsan
# ignore-this-changeset

Depends on D14595

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

--HG--
extra : moz-landing-system : lando
2018-12-14 18:10:08 +00:00
Razvan Maries
a4361b904b Merge mozilla-central to autoland. a=merge on a CLOSED TREE 2018-12-14 18:32:07 +02:00
Razvan Maries
87aca70b7f Merge mozilla-inbound to mozilla-central a=merge 2018-12-14 18:22:09 +02:00
Jan de Mooij
5a4109cbb9 Bug 1469082 - Always allocate CCWs in the compartment's first realm. r=jonco
CCWs are not really associated with a single realm and we assert code doesn't
enter/request the realm or global of a CCW. However they currently still have an
ObjectGroup that's associated with a single realm. Using the same realm avoids
some potential memory usage issues.

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

--HG--
extra : moz-landing-system : lando
2018-12-14 11:00:48 +00:00
Christian Holler
da1b6f795d Bug 1511599 - Allow the JS shell to dump core when run as suid/sgid in fuzzing. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D14239

--HG--
extra : moz-landing-system : lando
2018-12-14 13:46:33 +00:00
André Bargull
dcf701b66b Bug 1435829 - Part 6: Enable test262 tests for String.matchAll. r=jorendorff 2018-12-13 08:18:54 -08:00
André Bargull
03b1b37a9f Bug 1435829 - Part 5: Update xray tests for RegExp.prototype. r=peterv 2018-12-13 08:18:45 -08:00
André Bargull
d2c7438664 Bug 1435829 - Part 4: Tests for String.prototype.matchAll. r=jorendorff 2018-12-13 08:18:36 -08:00
André Bargull
1d05ecdf51 Bug 1435829 - Part 3: Add fast path to share input RegExp object. r=jorendorff 2018-12-13 08:18:27 -08:00
André Bargull
5a2bb3bb25 Bug 1435829 - Part 2: Add inline support for RegExp-String-Iterator. r=jorendorff 2018-12-13 08:18:09 -08:00
André Bargull
564dc6c495 Bug 1435829 - Part 1: Implement String.prototype.matchAll proposal. r=jorendorff 2018-12-13 08:04:00 -08:00
Jon Coppeard
5ecc7e89e4 Bug 1513842 - Fix spelling mistake in GCRuntime::markUntilBudgetExhaused r=sfink 2018-12-14 10:57:30 +00:00
André Bargull
97775e2d17 Bug 1513661 - Part 3: Update test262 exclusions. r=jorendorff 2018-12-12 11:34:56 -08:00
André Bargull
d0c5b77fff Bug 1513661 - Part 2: Update test262 - Dec 12 2018 edition. r=jorendorff 2018-12-12 11:36:00 -08:00
André Bargull
d16ddd04ec Bug 1513661 - Part 1: Update test262 importer to handle new feature flags. r=jorendorff 2018-12-12 11:36:41 -08:00
André Bargull
6c89dc30b2 Bug 1512989 - Part 2: Fix browser jstests failures. r=jorendorff
--HG--
rename : js/src/tests/ecma_6/Date/parse-from-tostring-methods.js => js/src/tests/non262/Date/parse-from-tostring-methods.js
2018-12-13 04:10:06 -08:00
Jon Coppeard
04b5512ebb Bug 1513465 - Fix bug in weak map checking where values are atoms and we aren't collecting the atoms zone r=sfink 2018-12-13 10:38:59 +00:00
Cameron Kaiser
fd32b3a6fa Bug 1512162: Disable stack protection for a portion of XPConnect on ppc64le due to a compiler bug. r=bholley 2018-12-12 18:52:08 -08:00
Cosmin Sabou
9835fdf72c Merge mozilla-inbound to mozilla-central. a=merge 2018-12-13 05:56:48 +02:00
Jim Blandy
fe0bd15edb Bug 1509420: Handle CCWs of functions properly in bindToAsyncStack shell function. r=jorendorff
In js.cpp, BindToAsyncStack used JSObject::isCallable to check the type of its
argument, and then BoundToAsyncStack (the native for the function returned)
assumed that it could call JSObject::as<JSFunction> on that value.

However, there are many things that are isCallable but not is<JSFunction>, two
examples being CCWs and function proxies.

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

--HG--
extra : moz-landing-system : lando
2018-12-12 23:58:03 +00:00
Noemi Erli
e4cf4cb51a Backed out 2 changesets (bug 1512989) for jsreftests failures
Backed out changeset 4c79e8192f9f (bug 1512989)
Backed out changeset 59a6d8169f80 (bug 1512989)

--HG--
rename : js/src/tests/non262/Date/parse-from-tostring-methods.js => js/src/tests/ecma_6/Date/parse-from-tostring-methods.js
2018-12-12 23:54:45 +02:00
André Bargull
c5507cac27 Bug 1512989 - Part 2: Fix browser jstests failures. r=jorendorff
--HG--
rename : js/src/tests/ecma_6/Date/parse-from-tostring-methods.js => js/src/tests/non262/Date/parse-from-tostring-methods.js
2018-12-12 08:45:47 -08:00