Commit Graph

70102 Commits

Author SHA1 Message Date
Cosmin Sabou
224fe6cff2 Merge mozilla-central to autoland. 2019-03-27 06:51:51 +02:00
Cosmin Sabou
3d469329a4 Merge mozilla-inbound to mozilla-central. a=merge 2019-03-27 06:45:13 +02:00
Jeff Walden
9c165b28d3 Bug 1537536 - Forcibly generate Rust bindings for the JS::RootedValue typedef now that it happens the Rust bindings never themselves use the typedef. r=bustage
--HG--
extra : rebase_source : 171442f8da86a99ea0d6ad5b058825db2609705f
2019-03-26 16:32:42 -07:00
André Bargull
3b306926a8 Bug 1526394: Treat self-hosted functions the same as non-interpreted functions in Debugger code. r=jorendorff 2019-03-26 12:27:54 -07:00
Paul Bone
b0496498f4 Bug 1539031 - (part 2) Add a incremental non-zonal mode r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D24850

--HG--
extra : moz-landing-system : lando
2019-03-26 23:18:05 +00:00
Paul Bone
ce0c450e03 Bug 1539031 - (part 1) Rename JSGC_MODE_INCREMENTAL r=jonco
Since this mode covers both incremental and zonal GC, let's rename it to
reflect that.  JSGC_MODE_ZONE_INCREMENTAL.

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

--HG--
extra : moz-landing-system : lando
2019-03-26 16:57:40 +00:00
Yoshi Cheng-Hao Huang
b520674b78 Bug 1521732 - Part 7: remove AutoValueVector and AutoObjectVector. r=sfink
Remove legacy AutoValueVector and AutoObjectVector.

Depends on D23187

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

--HG--
extra : moz-landing-system : lando
2019-03-25 06:39:32 +00:00
Yoshi Cheng-Hao Huang
de26884559 Bug 1521732 - Part 6: rust binding for RootedObjectVector. r=sfink
use RootedObjectVector in rust glue code.

Depends on D23186

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

--HG--
extra : moz-landing-system : lando
2019-03-25 06:39:30 +00:00
Yoshi Cheng-Hao Huang
7f012345b7 Bug 1521732 - Part 5: RootedObjectVector. r=sfink,jonco
s/AutoObjectVector/RootedObjectVector/g

Depends on D23185

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

--HG--
extra : moz-landing-system : lando
2019-03-26 14:00:51 +00:00
Yoshi Cheng-Hao Huang
813bbc9ed9 Bug 1521732 - Part 4: fix SM rust binging test. r=fitzgen
StackGCVector and RootedVector are partial template specialization and cause
cargo test failure. Bypass the classes by adding them to OPAQUE_TYPES.

Depends on D23184

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

--HG--
extra : moz-landing-system : lando
2019-03-25 06:39:25 +00:00
Yoshi Cheng-Hao Huang
edbc333422 Bug 1521732 - Part 3: Use RootedValueVector instead. r=sfink,jonco
s/AutoValueVector/RootedValueVector/g

Depends on D23183

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

--HG--
extra : moz-landing-system : lando
2019-03-26 13:58:20 +00:00
Yoshi Cheng-Hao Huang
61c7fcebcc Bug 1521732 - Part 2: convert RootedValueVector to HandleValueArray. r=sfink,jonco
Add a conversion constructor to HandleValueArray.

Depends on D23182

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

--HG--
extra : moz-landing-system : lando
2019-03-26 13:56:18 +00:00
Yoshi Cheng-Hao Huang
9125968c60 Bug 1521732 - Part 1: StackGCVector and RootedVector. r=sfink
Introduce a MOZ_STACK_CLASS StackGCVector, which is
specialization of inline capacity to 8 of GCVector.

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

--HG--
extra : moz-landing-system : lando
2019-03-25 06:39:12 +00:00
André Bargull
24bb28b814 Bug 1380031: Ensure Math.exp(1) returns Math.E. r=arai
Differential Revision: https://phabricator.services.mozilla.com/D24354

--HG--
extra : moz-landing-system : lando
2019-03-25 09:15:27 +00:00
André Bargull
d3b5c44b6b Bug 1491813: Add fast path when TypedArray.from is called with a TypedArray. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D24353

--HG--
extra : moz-landing-system : lando
2019-03-26 10:09:51 +00:00
André Bargull
b1d92147e2 Bug 1538692 - Part 3: Change bool template parameter to bool enum class. r=mgaudet
Depends on D24707

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

--HG--
extra : moz-landing-system : lando
2019-03-26 16:01:36 +00:00
André Bargull
3d274f3ace Bug 1538692 - Part 2: Support relational string comparison in CacheIR. r=mgaudet
Differential Revision: https://phabricator.services.mozilla.com/D24707

--HG--
extra : moz-landing-system : lando
2019-03-26 14:49:35 +00:00
André Bargull
0e674b927f Bug 1538692 - Part 1: Support relational string comparison in Ion. r=mgaudet
Add jit::StringsCompare to call js::CompareStrings, mirroring the existing
jit::StringsEqual and js::EqualStrings pair for equality comparison. JSOP_LE
and JSOP_GT are implemented by pushing the operands in reverse order and then
calling jit::StringsCompare for JSOP_LT resp. JSOP_GE. This avoids creating
four different VMFunction wrappers and also matches how the ECMAScript spec
defines relational comparison evaluation.

ion/compare-string.js
- Add relational comparison operators.
- Ensure string rope tests are actually using ropes.
- Lower iteration count to reduce time needed to complete test for --tbpl configuration.

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

--HG--
extra : moz-landing-system : lando
2019-03-26 14:54:34 +00:00
André Bargull
6c742bbc11 Bug 1537923 - Part 7: Enable test262 tests which no longer fail. r=jorendorff
Differential Revision: https://phabricator.services.mozilla.com/D24393

--HG--
extra : moz-landing-system : lando
2019-03-26 15:05:28 +00:00
André Bargull
8e1e862531 Bug 1537923 - Part 6: Make slow tests runnable again. r=jorendorff
Differential Revision: https://phabricator.services.mozilla.com/D24392

--HG--
extra : moz-landing-system : lando
2019-03-26 15:04:02 +00:00
André Bargull
f1ab5292b2 Bug 1537923 - Part 5: Use 'slow' instead of 'skip' for tests which time out. r=jorendorff
Adds support for "slow-if" when running jstests on the shell, browser jstests
already support "slow-if" through reftest suite, see layout/tools/reftest/README.txt.

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

--HG--
extra : moz-landing-system : lando
2019-03-26 15:03:52 +00:00
André Bargull
eee1c6f367 Bug 1537923 - Part 4: Delete tests for removed 'scatter' and 'XPCSafeJSObjectWrapper' functions instead of skipping. r=jorendorff
Differential Revision: https://phabricator.services.mozilla.com/D24390

--HG--
extra : moz-landing-system : lando
2019-03-26 15:03:46 +00:00
André Bargull
a657066cb7 Bug 1537923 - Part 3: Unskip passing tests. r=jorendorff
Differential Revision: https://phabricator.services.mozilla.com/D24389

--HG--
extra : moz-landing-system : lando
2019-03-26 15:03:42 +00:00
André Bargull
4ef1952142 Bug 1537923 - Part 2: Don't skip shell-only tests for all test configurations. r=jorendorff
Differential Revision: https://phabricator.services.mozilla.com/D24388

--HG--
extra : moz-landing-system : lando
2019-03-26 15:03:38 +00:00
André Bargull
e775fe5b2a Bug 1537923 - Part 1: Use "random" or "slow" instead of "skipped" for unreliable or slow tests. r=jorendorff
Differential Revision: https://phabricator.services.mozilla.com/D24387

--HG--
extra : moz-landing-system : lando
2019-03-26 15:02:13 +00:00
André Bargull
8e7cc2e1b8 Bug 1536228 - Part 2: Don't emit megamorphic store slot stub for JSOP_INITELEM. r=jandem
Depends on D24493

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

--HG--
extra : moz-landing-system : lando
2019-03-26 10:12:30 +00:00
André Bargull
dc1d632ffa Bug 1536228 - Part 1: Fix typos and remove unnecessary blocks. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D24493

--HG--
extra : moz-landing-system : lando
2019-03-26 10:10:45 +00:00
André Bargull
388220db51 Bug 1530754 - Part 5: Update test262 to pick up new tests for async generator changes. r=arai
Differential Revision: https://phabricator.services.mozilla.com/D23516

--HG--
extra : moz-landing-system : lando
2019-03-26 16:23:21 +00:00
André Bargull
7f7e3891f4 Bug 1530754 - Part 4: Add missing Await in yield* when 'return' method not present. r=arai
Step 7.c.iii.2. from yield* was missing in our implementation.

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

--HG--
extra : moz-landing-system : lando
2019-03-26 16:23:16 +00:00
André Bargull
6b15cdad1f Bug 1530754 - Part 3: Don't create unnecessary iterator result objects in async generators. r=arai
Per spec, IteratorValue() must be called outside of the implicit try-catch-finally
block in yield*. But when IteratorValue is already called in the generated byte
code for yield*, we no longer have an iterator result object to pass back to
AsyncGeneratorResume. So change AsyncGeneratorResume to use the already unpacked
iterator value instead of an iterator result object.
This implies other parts of async generators now also no longer can work with
iterator result objects, for example `AsyncGeneratorReturn` in AsyncIteration.js
or when generating byte code guarded with `FunctionBox::needsIteratorResult()`.

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

--HG--
extra : moz-landing-system : lando
2019-03-26 16:26:42 +00:00
André Bargull
cc82cb6112 Bug 1530754 - Part 2: Update step comments. r=arai
Differential Revision: https://phabricator.services.mozilla.com/D23513

--HG--
extra : moz-landing-system : lando
2019-03-26 16:25:37 +00:00
André Bargull
f76ba4c361 Bug 1530754 - Part 1: Remove "unwrapped" prefix from parameter name. r=jorendorff
The parameter isn't an unwrapped object from another compartment and therefore
shouldn't be prefixed with "unwrapped".

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

--HG--
extra : moz-landing-system : lando
2019-03-26 16:21:33 +00:00
André Bargull
cc456464eb Bug 1527879: Explicitly set ICU's data directory to stop ICU from trying to load individual files on Windows. r=jwalden
And change the shell to use JS_InitWithFailureDiagnostic instead of plain
JS_Init, so any ICU data loading errors will be printed to stderr instead of
simply exiting the application.

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

--HG--
extra : moz-landing-system : lando
2019-03-25 23:32:40 +00:00
Jason Orendorff
1e6f599a87 Bug 1495072 - Part 3: Implement new, faster proposed await semantics. r=arai
This patch implements the change in this pull request:
<https://github.com/tc39/ecma262/pull/1250>

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

--HG--
extra : moz-landing-system : lando
2019-03-26 18:17:15 +00:00
Jason Orendorff
1c204efb75 Bug 1495072 - Part 2: Add pref for the await fix. r=arai
Differential Revision: https://phabricator.services.mozilla.com/D24255

--HG--
extra : moz-landing-system : lando
2019-03-26 18:16:55 +00:00
Cosmin Sabou
78fc71e3c3 Backed out changeset 7fa7d6e6dedc (bug 1442778) for devtools failures on browser_webconsole_check_stubs_console_api.js CLOSED TREE 2019-03-26 20:27:55 +02:00
Csoregi Natalia
888d83038c Merge mozilla-central to autoland. CLOSED TREE 2019-03-26 19:45:08 +02:00
Csoregi Natalia
d105b005e8 Merge inbound to mozilla-central. a=merge 2019-03-26 19:43:22 +02:00
Jeff Walden
c40e81a2e9 Bug 1537536 - Move JS::ForOfIterator to its own header. r=arai,bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D24257

--HG--
rename : js/src/jsapi.h => js/public/ForOfIterator.h
extra : moz-landing-system : lando
2019-03-26 17:10:44 +00:00
Andy Wingo
baaa715e33 Bug 1538488 - Fix XPConnect/BigInt test when bigint is off r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D24667

--HG--
extra : moz-landing-system : lando
2019-03-26 07:17:47 +00:00
Eden Chuang
5e4df764d9 Bug 1442778 - Add "chromeContext" parameter to console API and console service messages. r=smaug
1. Adding a new attribute chromeContext in ConsoleEvent
2. Adding a new boolean attribute isFromChromeContext in nsIConsoleMessage
3. Sending IsFromChromeContext to the parent process

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

--HG--
extra : moz-landing-system : lando
2019-03-26 15:18:20 +00:00
Luke Wagner
c2cd4db477 Bug 1538820 - Baldr: rm dead CallFarJump (r=lth)
Actually, it's not totally dead, there is a ModuleGenerator-local use
for patching far-jump islands.

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

--HG--
extra : moz-landing-system : lando
2019-03-26 15:23:41 +00:00
Brindusan Cristian
8d646b09cd Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-03-26 02:28:46 +02:00
Brindusan Cristian
c4f15a4dae Merge inbound to mozilla-central. a=merge 2019-03-26 02:26:12 +02:00
Edwin Gao
5b28c50d53 Bug 1536362, 1536363, 1536365, 1536355, 1537997, 1537993, 1538001, 1538005, 1538009, 1538012, 1538017, 1538022, 1534717 - add conditions to reftests, crashtests and wpt reftets that experience issues on windows10-aarch64 r=jmaher
Disable or change the expected outcomes of:

- reftests
- jsreftests
- crashtest
- web-platform-reftests

for windows10-aarch64.

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

--HG--
extra : moz-landing-system : lando
2019-03-25 18:17:37 +00:00
arthur.iakab
35c8a01713 Merge mozilla-central to autoland 2019-03-25 17:54:29 +02:00
Matthew Gaudet
1894f5bdfd Bug 1538349 - Allow nullptr for the script parameter in AutoStructuredSpewer r=iain
It's useful to be able to use the AutoStructuredSpewer without necessarily
having a script at that moment.

Channels that use this won't be able to filter by script.

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

--HG--
extra : moz-landing-system : lando
2019-03-22 23:12:00 +00:00
Paul Bone
4344ae1074 Bug 1528159 - Fix the nursery size to make a test more reliable r=sfink
Differential Revision: https://phabricator.services.mozilla.com/D22288

--HG--
extra : moz-landing-system : lando
2019-03-22 05:17:15 +00:00
sakshaat
d781937a67 Bug 1517483 - Get rid of nsIScriptSecurityManager::IsSystemPrincipal r=bzbarsky
Replaced instances of callers in both C++ and JS files to query the state from the principal directly.

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

--HG--
extra : moz-landing-system : lando
2019-03-24 20:36:25 +00:00
Ashley Hauck
388d090f32 Bug 1537980 - Make CallNode::callOp const. r=jorendorff
Differential Revision: https://phabricator.services.mozilla.com/D24535

--HG--
extra : moz-landing-system : lando
2019-03-24 12:13:47 +00:00