Commit Graph

67432 Commits

Author SHA1 Message Date
Ted Campbell
4e4300d5dd Bug 1500822 - Fix a try-note range check in the debugger r=jorendorff
This should symptomless since the extra op should always be a JSOP_GOTO
which will be skipped over anyways. Fix for our sanity.

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

--HG--
extra : moz-landing-system : lando
2018-10-22 21:47:47 +00:00
Ted Campbell
bc10597940 Bug 1500822 - Make TryNote::start relative to JSScript::code() r=jorendorff
Currently it is relative to JSScript::main(), but it is the only part of
the engine that uses this definition to describe a "pcOffset". This is
unnecessarily confusing, and fixing it is easy.

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

--HG--
extra : moz-landing-system : lando
2018-10-22 21:42:55 +00:00
Andrew McCreight
0ee66a7f4f Bug 1497707, part 5 - Inline mozilla::ModuleLoader into mozJSComponentLoader. r=froydnj
Now that the XPCOM component loader infrastructure has stopped
pretending to support other file extensions, this intermediate
interface is no longer needed.

Depends on D8171

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

--HG--
extra : moz-landing-system : lando
2018-10-23 00:46:49 +00:00
Andrew McCreight
f7cab62df4 Bug 1497707, part 4 - Only support loading JS files in the component manager. r=froydnj
JS is the only file extension actually supported, and there are a few
layers of cruft that can be eliminated if we specialize it.

This eliminates one XPCOM registration of the JS component loader.

Depends on D8170

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

--HG--
extra : moz-landing-system : lando
2018-10-23 00:47:38 +00:00
Andrew McCreight
4c274219f8 Bug 1497707, part 1 - Get rid of xpcIJSModuleLoader. r=kmag
This interface is only used for a few testing functions. Just move
them to Cu.

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

--HG--
extra : moz-landing-system : lando
2018-10-23 00:47:16 +00:00
Dorel Luca
30d59d3613 Backed out changeset d4cbc3865457 (bug 1499010) for spidermonkey failure 2018-10-23 00:24:34 +03:00
Sean Stangl
bc9aaf0cf8 Bug 1499536 - Implement CodeGeneratorARM64::visitShiftI and visitUrshD. r=mgaudet
Fixes ion/bug1000960.js.
2018-10-22 14:00:00 -04:00
Sean Stangl
a1e70818c8 Bug 1498047 - Fix generateInvalidator(). r=nbp 2018-10-10 15:41:00 -04:00
Sean Stangl
e7903c1595 Bug 1498371 - Implement visitCompareBitwise. r=nbp
Fixes basic/testScriptCloning.js.
2018-10-11 14:01:00 -04:00
Iain Ireland
d5fe62a279 Bug 1499010: Add testcase for AutoUnsafeCallWithABI recovery fuzz bugs r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D9381

--HG--
extra : moz-landing-system : lando
2018-10-22 20:42:49 +00:00
Dorel Luca
74839ec1cd Backed out 2 changesets (bug 1500822) for build bustage. CLOSED TREE
Backed out changeset cb7ced1eb7ed (bug 1500822)
Backed out changeset 2eda4a5dffcc (bug 1500822)
2018-10-22 23:41:44 +03:00
Ted Campbell
f5b084ac24 Bug 1500822 - Fix a try-note range check in the debugger r=jorendorff
This should symptomless since the extra op should always be a JSOP_GOTO
which will be skipped over anyways. Fix for our sanity.

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

--HG--
extra : moz-landing-system : lando
2018-10-22 18:39:24 +00:00
Ted Campbell
cd0e8cd66d Bug 1500822 - Make TryNote::start relative to JSScript::code() r=jorendorff
Currently it is relative to JSScript::main(), but it is the only part of
the engine that uses this definition to describe a "pcOffset". This is
unnecessarily confusing, and fixing it is easy.

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

--HG--
extra : moz-landing-system : lando
2018-10-22 18:33:54 +00:00
Sebastian Hengst
1ad50182a7 merge mozilla-central to autoland
--HG--
rename : third_party/rust/nom/.cargo-checksum.json => third_party/rust/nom-3.2.1/.cargo-checksum.json
rename : third_party/rust/nom/CHANGELOG.md => third_party/rust/nom-3.2.1/CHANGELOG.md
rename : third_party/rust/nom/Cargo.toml => third_party/rust/nom-3.2.1/Cargo.toml
rename : third_party/rust/nom/src/bits.rs => third_party/rust/nom-3.2.1/src/bits.rs
rename : third_party/rust/nom/src/branch.rs => third_party/rust/nom-3.2.1/src/branch.rs
rename : third_party/rust/nom/src/bytes.rs => third_party/rust/nom-3.2.1/src/bytes.rs
rename : third_party/rust/nom/src/character.rs => third_party/rust/nom-3.2.1/src/character.rs
rename : third_party/rust/nom/src/internal.rs => third_party/rust/nom-3.2.1/src/internal.rs
rename : third_party/rust/nom/src/lib.rs => third_party/rust/nom-3.2.1/src/lib.rs
rename : third_party/rust/nom/src/macros.rs => third_party/rust/nom-3.2.1/src/macros.rs
rename : third_party/rust/nom/src/methods.rs => third_party/rust/nom-3.2.1/src/methods.rs
rename : third_party/rust/nom/src/multi.rs => third_party/rust/nom-3.2.1/src/multi.rs
rename : third_party/rust/nom/src/nom.rs => third_party/rust/nom-3.2.1/src/nom.rs
rename : third_party/rust/nom/src/regexp.rs => third_party/rust/nom-3.2.1/src/regexp.rs
rename : third_party/rust/nom/src/sequence.rs => third_party/rust/nom-3.2.1/src/sequence.rs
rename : third_party/rust/nom/src/simple_errors.rs => third_party/rust/nom-3.2.1/src/simple_errors.rs
rename : third_party/rust/nom/src/str.rs => third_party/rust/nom-3.2.1/src/str.rs
rename : third_party/rust/nom/src/stream.rs => third_party/rust/nom-3.2.1/src/stream.rs
rename : third_party/rust/nom/src/traits.rs => third_party/rust/nom-3.2.1/src/traits.rs
rename : third_party/rust/nom/src/util.rs => third_party/rust/nom-3.2.1/src/util.rs
rename : third_party/rust/nom/src/verbose_errors.rs => third_party/rust/nom-3.2.1/src/verbose_errors.rs
rename : third_party/rust/nom/src/whitespace.rs => third_party/rust/nom-3.2.1/src/whitespace.rs
rename : third_party/rust/nom/tests/arithmetic.rs => third_party/rust/nom-3.2.1/tests/arithmetic.rs
rename : third_party/rust/nom/tests/arithmetic_ast.rs => third_party/rust/nom-3.2.1/tests/arithmetic_ast.rs
rename : third_party/rust/nom/tests/blockbuf-arithmetic.rs => third_party/rust/nom-3.2.1/tests/blockbuf-arithmetic.rs
rename : third_party/rust/nom/tests/cross_function_backtracking.rs => third_party/rust/nom-3.2.1/tests/cross_function_backtracking.rs
rename : third_party/rust/nom/tests/float.rs => third_party/rust/nom-3.2.1/tests/float.rs
rename : third_party/rust/nom/tests/ini.rs => third_party/rust/nom-3.2.1/tests/ini.rs
rename : third_party/rust/nom/tests/ini_str.rs => third_party/rust/nom-3.2.1/tests/ini_str.rs
rename : third_party/rust/nom/tests/issues.rs => third_party/rust/nom-3.2.1/tests/issues.rs
rename : third_party/rust/nom/tests/json.rs => third_party/rust/nom-3.2.1/tests/json.rs
rename : third_party/rust/nom/tests/mp4.rs => third_party/rust/nom-3.2.1/tests/mp4.rs
rename : third_party/rust/nom/tests/multiline.rs => third_party/rust/nom-3.2.1/tests/multiline.rs
rename : third_party/rust/nom/tests/named_args.rs => third_party/rust/nom-3.2.1/tests/named_args.rs
rename : third_party/rust/nom/tests/omnom.rs => third_party/rust/nom-3.2.1/tests/omnom.rs
rename : third_party/rust/nom/tests/overflow.rs => third_party/rust/nom-3.2.1/tests/overflow.rs
rename : third_party/rust/nom/tests/reborrow_fold.rs => third_party/rust/nom-3.2.1/tests/reborrow_fold.rs
rename : third_party/rust/nom/tests/test1.rs => third_party/rust/nom-3.2.1/tests/test1.rs
extra : rebase_source : 6c5b45c092fd51bf1b3ce15960416fb59311d152
2018-10-22 20:34:24 +03:00
Sebastian Hengst
602fbb8422 merge mozilla-inbound to mozilla-central. a=merge 2018-10-22 20:26:16 +03:00
Jason Orendorff
9bfc0d1143 Bug 1493560 - Change test to allow another possibility. r=arai
This also changes the test to print something informative on failure.

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

--HG--
extra : moz-landing-system : lando
2018-10-22 15:03:20 +00:00
Matthew Gaudet
3f38277268 Bug 1494473 - Using IONFLAGS=bl-ic-stats dump baseline IC statistics on script cleanup r=jandem
The output for a particular IC chain looks like this:

        box2d.js:174:250 (sub)       1009 -> 772 -> (fb) 2

Which is read like this: This sub opcode has two ICs attached. The first IC was
entered 1009 times, the second 772 and the fallback stub was hit twice.

There are some conclusions we can draw from this (and some we cannot)

- We can say with confidence the fallback stub was only hit twice, meaning 99.998%
  of queries to the IC chain hit in the IC rather than the fallback.

- We cannot however say necessarily that the first IC failed to provide a value
  771 times.

  Since new ICs are added at the front, it is possible that there was a phase
  transition that happened, and the first 771 requests were served by the first
  IC, followed by a transition to a new type and addition of a new IC, and
  subsequently 1009 queries were served by the newly added IC.

- We can conclude with confidence that there have been at least two different ICs
  involved in computation across the lifetime of the IC chain, and they are almost
  equally probable.

Though we can't do temporal reasoning with entry counters, we can still do some
reasoning.

Depends on D8859

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

--HG--
extra : moz-landing-system : lando
2018-10-19 15:33:27 +00:00
Jon Coppeard
d92d954cec Bug 1499335 - Support module specifiers containing inline data in the shell r=evilpie 2018-10-22 13:33:02 +01:00
Emilio Cobos Álvarez
3f8b370d35 Bug 1500849 - Update bindgen. r=heycam,bbouvier
This pulls a new nom version, which is slightly unfortunate, but I do want some
of the fixes upstream, and it's build-only, so I think it's not a huge deal.

Differential Revision: https://phabricator.services.mozilla.com/D9362
2018-10-22 13:20:01 +02:00
Jon Coppeard
0df5d53830 Bug 1499140 - Add OOM tests for shell dynamic module import and fix bugs r=jandem 2018-10-22 11:28:17 +01:00
Jon Coppeard
7901f411b6 Backed out changeset 41ded240a012 (bug 1342012) for wrong bug number in commit message 2018-10-22 11:38:13 +01:00
Jon Coppeard
fe31bd1a07 Bug 1342012 - Add OOM tests for shell dynamic module import and fix bugs r=jandem 2018-10-22 11:28:17 +01:00
Jon Coppeard
6343707567 Bug 1499140 - Support dynamic module import in the shell r=jandem 2018-10-22 11:28:17 +01:00
Jon Coppeard
5226b2d045 Bug 1499140 - Compile dynamic module import bytecode r=jandem 2018-10-22 11:28:17 +01:00
Jon Coppeard
c043fa70d0 Bug 1499140 - Implement support for dynamic module import in the interpreter r=jandem 2018-10-22 11:28:16 +01:00
Matthew Gaudet
524ac2df9a Bug 1494473 - Add entered counters to Baseline's CacheIR_Regular and Fallback stubs r=jandem
By adding a counter increment to the entry of an IC stub, it is possible to analyze
the IC chain for patterns that indicate how the ICs are performing, which can
influence the baseline inspector, and allow Ion to weight the choices it makes on IC
data.

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

--HG--
extra : moz-landing-system : lando
2018-10-18 15:56:53 +00:00
Iain Ireland
64ac0e5cd4 Bug 1492733: Remove jitSupportsFloatingPoint checks from Baseline/IC code r=tcampbell,jandem
Differential Revision: https://phabricator.services.mozilla.com/D8784

--HG--
extra : moz-landing-system : lando
2018-10-17 14:00:16 +00:00
Iain Ireland
72f29389c0 Bug 1491331: Check overridePc in collectJitStackScripts even if frame is not throwing r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D9151

--HG--
extra : moz-landing-system : lando
2018-10-19 01:04:31 +00:00
Tooru Fujisawa
d70b9121cc Bug 1499998 - Part 2: Disable generator and async support for BinAST. r=Yoric 2018-10-22 10:31:29 +09:00
Tooru Fujisawa
d109e5ad21 Bug 1499998 - Part 1: Prepend initial yield to the correct node. r=Yoric 2018-10-22 10:31:29 +09:00
Chris Manchester
4b9fc11dc1 Bug 1499196 - Introduce a mozilla-central-workspace-hack crate to unify features seen by rust deps. r=ted,firefox-build-system-reviewers
This is the equivalent of the rustc-workspace-hack used by the rust build to
ensure cargo and RLS see the same set of features for dependencies so that
these dependencies may be reused by invocations of cargo for these two
projects. The trivial crate added specifies the union of the set of
features activated for a particular crate for each time it appears in the
dependency tree so that cargo will understand these dependencies to be
re-usable across cargo implementations. This eliminates re-building jsrust
and some of its dependencies twice, and reduces the number of crates compiled
in the tree by about 90 in testing on linux.

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

--HG--
extra : moz-landing-system : lando
2018-10-18 10:39:05 +00:00
Chris Manchester
bc2df2539b Bug 1499196 - Update spidermonkey rust search path to look for rust artifacts rooted in the topobjdir. r=bbouvier
Differential Revision: https://phabricator.services.mozilla.com/D9040

--HG--
extra : moz-landing-system : lando
2018-10-18 10:24:28 +00:00
Jan de Mooij
31d3bb9b30 Bug 1500064 - Use GCHashSet in property enumeration code. r=jonco
This changes Maybe<IdSet> to Rooted<IdSet>. I think the Maybe<>
is not buying us much because HashTable's storage is now lazily
allocated (bug 1481998). I didn't notice any regressions in
micro-benchmarks; this patch might be a small improvement actually.

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

--HG--
extra : amend_source : 06920efff84c1c5ad11a94689e7aeb5bac5b9368
2018-10-19 10:24:17 +02:00
Daniel Varga
9a610a8759 Merge mozilla-central to mozilla-inbound. a=merge
--HG--
rename : mobile/android/extensions/webcompat/webextension/background.js => mobile/android/extensions/webcompat/injections.js
rename : mobile/android/extensions/webcompat/webextension/injections/js/bug0000000-dummy-js-injection.js => mobile/android/extensions/webcompat/injections/js/bug0000000-dummy-js-injection.js
rename : mobile/android/extensions/webcompat/webextension/injections/js/bug1452707-window.controllers-shim-ib.absa.co.za.js => mobile/android/extensions/webcompat/injections/js/bug1452707-window.controllers-shim-ib.absa.co.za.js
rename : mobile/android/extensions/webcompat/webextension/injections/js/bug1457335-histography.io-ua-change.js => mobile/android/extensions/webcompat/injections/js/bug1457335-histography.io-ua-change.js
rename : mobile/android/extensions/webcompat/webextension/injections/js/bug1472075-bankofamerica.com-ua-change.js => mobile/android/extensions/webcompat/injections/js/bug1472075-bankofamerica.com-ua-change.js
rename : mobile/android/extensions/webcompat/webextension/injections/js/bug1472081-election.gov.np-window.sidebar-shim.js => mobile/android/extensions/webcompat/injections/js/bug1472081-election.gov.np-window.sidebar-shim.js
rename : mobile/android/extensions/webcompat/webextension/injections/js/bug1482066-portalminasnet.com-window.sidebar-shim.js => mobile/android/extensions/webcompat/injections/js/bug1482066-portalminasnet.com-window.sidebar-shim.js
2018-10-20 13:32:54 +03:00
Daniel Varga
4fc7bfa931 Merge mozilla-inbound to mozilla-central. a=merge 2018-10-20 13:10:23 +03:00
Sean Stangl
9b410bc831 Bug 1500616 - The ARM64 Ion exception should work on non-simulator builds. r=tcampbell 2018-10-19 14:52:00 +03:00
Matthew Gaudet
85889543ba Bug 1500267 - Record op in SetPropIRGenerator CacheIR logs r=evilpie
Depends on D9167

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

--HG--
extra : moz-landing-system : lando
2018-10-19 15:10:55 +00:00
Matthew Gaudet
0fca84b053 Bug 1500267 - Remove dead AutoDisableSpew r=nbp
Depends on D9165

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

--HG--
extra : moz-landing-system : lando
2018-10-19 15:10:32 +00:00
Matthew Gaudet
f0b9fb55b2 Bug 1500267 - Correct out of date comments r=tcampbell
Depends on D9164

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

--HG--
extra : moz-landing-system : lando
2018-10-19 15:41:59 +00:00
Matthew Gaudet
026a672dc4 Bug 1500267 - [SMDOC] Brain transplants comment r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D9164

--HG--
extra : moz-landing-system : lando
2018-10-19 15:12:05 +00:00
Jan de Mooij
1469e4e079 Bug 1496892 - Check script compartment instead of realm in TypeScript::SetArgument. r=luke
We can call this for a cross-realm script when defining a property on an arguments object.

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

--HG--
extra : moz-landing-system : lando
2018-10-19 15:38:19 +00:00
Narcis Beleuzu
2a625fa2aa Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-10-19 16:30:39 +03:00
Mark Banner
1ffb981b68 Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (manual fixes). r=mossop
Depends on D8389

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

--HG--
extra : moz-landing-system : lando
2018-10-19 08:33:17 +00:00
Jan de Mooij
7c665c8ac4 Bug 1500121 - Give IdValueVector some inline capacity. r=luke
Differential Revision: https://phabricator.services.mozilla.com/D9117

--HG--
extra : moz-landing-system : lando
2018-10-18 18:34:13 +00:00
Ryan VanderMeulen
4dd0f3ff25 Merge m-c to inbound. a=merge 2018-10-18 20:51:18 -04:00
Cosmin Sabou
b1f89e4134 Backed out changeset 7a7d5508f873 (bug 1494537) as requested by tcampbell on irc for causing crashes in bug 1500285, 1500255. a=backout 2018-10-19 03:40:59 +03:00
Boris Zbarsky
24d8300b00 Bug 1398354 part 1. Expose StringIsArrayIndex taking a char pointer in jsfriendapi. r=waldo 2018-10-17 23:00:49 -04:00
Cosmin Sabou
a833a61a1b Merge mozilla-central to mozilla-inbound. a=merge 2018-10-19 00:59:32 +03:00
Brian Hackett
3c4231fd5b Bug 1488808 Part 10 - Notify the record/replay system when a message pump thread blocks after diverging from the recording, r=froydnj.
--HG--
extra : rebase_source : c82088f0903b618caee3b0366a8c681ff6f445a1
2018-10-17 10:05:02 -06:00
Jason Orendorff
f7f74b95e3 Bug 1499877 - Part 3: Import latest test262 tests. r=khyperia
Depends on D9109

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

--HG--
extra : moz-landing-system : lando
2018-10-18 16:43:29 +00:00